Guest User

Untitled

a guest
Nov 28th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. func testLoginFailure() {
  2. let app = XCUIApplication()
  3.  
  4. let username = app.textFields["Username"]
  5. username.tap()
  6. username.typeText("wrongUsername")
  7.  
  8. let password = app.secureTextFields["Password"]
  9. password.tap()
  10. password.typeText("wrongPassword")
  11.  
  12. XCUIApplication().buttons["Login"].tap()
  13.  
  14. XCTAssertTrue(app.staticTexts["❌ username or password not match"].exists)
  15. }
Add Comment
Please, Sign In to add comment