Last active
August 2, 2020 10:29
-
-
Save cipolleschi/80c83572e120b3bc151f820ae07ca6e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let tosButton = app.staticTexts["Tap to accept TOS"] | |
| let privacyButton = app.staticTexts["Tap to Accept Privacy Policy"] | |
| let continueButton = app.staticTexts["Continue"] | |
| XCTAssertFalse(tosButton.isSelected) | |
| XCTAssertFalse(privacyButton.isSelected) | |
| XCTAssertFalse(continueButton.isEnabled) | |
| tosButton.tap() | |
| XCTAssertTrue(tosButton.isSelected) | |
| XCTAssertFalse(privacyButton.isSelected) | |
| XCTAssertFalse(continueButton.isEnabled) | |
| privacyButton.tap() | |
| XCTAssertTrue(tosButton.isSelected) | |
| XCTAssertTrue(privacyButton.isSelected) | |
| XCTAssertTrue(continueButton.isEnabled) | |
| continueButton.tap() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment