Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func testExample() {
- app.launchArguments.append("--clearuser")
- app.launch()
- expectation(for: exists, evaluatedWith: app.buttons["Other options"], handler: nil)
- waitForExpectations(timeout: 20, handler: nil)
- snapshot("Auth")
- app.buttons["Other options"].tap()
- app.buttons["Sign In"].tap()
- let emailTextField = app.textFields.matching(identifier: "email")
- let passwordTextField = app.secureTextFields.matching(identifier: "password")
- emailTextField.element.tap()
- emailTextField.element.typeText("eeeeemaaaaaiiiillll\n")
- passwordTextField.element.typeText("123456")
- sleep(1)
- app.buttons.matching(identifier: "final").element.tap()
- expectation(for: exists, evaluatedWith: app.tabBars.buttons["Profile"], handler: nil)
- waitForExpectations(timeout: 5, handler: nil)
- app.tabBars.buttons["Profile"].tap()
- sleep(2)
- snapshot("Profile")
- }
Add Comment
Please, Sign In to add comment