Created
May 10, 2018 06:57
-
-
Save tranhieutt/0773bd07355dfff60bf40caed0d2a205 to your computer and use it in GitHub Desktop.
testLoginWithPasswordAndUserName
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
func testLoginWithPasswordAndUserName() { | |
let textField = app.textFields["input user name"] | |
textField.tap() | |
textField.typeText("user name") | |
let secureTextFields = app.secureTextFields[inputPassword] | |
secureTextFields.tap() secureTextFields.typeText("pass123") | |
app.buttons["login"].tap() | |
XCTAssert(app.buttons["startTest"].isEnabled) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment