Guest User

Untitled

a guest
May 27th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. func testExample() {
  2. app.launchArguments.append("--clearuser")
  3. app.launch()
  4.  
  5. expectation(for: exists, evaluatedWith: app.buttons["Other options"], handler: nil)
  6. waitForExpectations(timeout: 20, handler: nil)
  7. snapshot("Auth")
  8.  
  9. app.buttons["Other options"].tap()
  10. app.buttons["Sign In"].tap()
  11. let emailTextField = app.textFields.matching(identifier: "email")
  12. let passwordTextField = app.secureTextFields.matching(identifier: "password")
  13.  
  14. emailTextField.element.tap()
  15. emailTextField.element.typeText("eeeeemaaaaaiiiillll\n")
  16. passwordTextField.element.typeText("123456")
  17. sleep(1)
  18. app.buttons.matching(identifier: "final").element.tap()
  19.  
  20. expectation(for: exists, evaluatedWith: app.tabBars.buttons["Profile"], handler: nil)
  21. waitForExpectations(timeout: 5, handler: nil)
  22.  
  23. app.tabBars.buttons["Profile"].tap()
  24. sleep(2)
  25. snapshot("Profile")
  26. }
Add Comment
Please, Sign In to add comment