Skip to content

Instantly share code, notes, and snippets.

@tranhieutt
Created May 10, 2018 06:56
Show Gist options
  • Save tranhieutt/4f94b9f06c615eecf2f830d5e0b6300c to your computer and use it in GitHub Desktop.
Save tranhieutt/4f94b9f06c615eecf2f830d5e0b6300c to your computer and use it in GitHub Desktop.
testLoginWithEmptyUserNameAndPassword
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