Created
May 10, 2018 06:56
-
-
Save tranhieutt/4f94b9f06c615eecf2f830d5e0b6300c to your computer and use it in GitHub Desktop.
testLoginWithEmptyUserNameAndPassword
This file contains 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
func testLoginWithEmptyUserNameAndPassword() { | |
let secureTextFields = app.secureTextFields["input password"] | |
secureTextFields.tap() secureTextFields.typeText("pass123") | |
app.buttons["login"].tap() | |
XCTAssert(app.alerts.element.staticTexts["pass is correct"].exists) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment