Fix the login flow and how the integration tests interact with the web authentication session
This commit is contained in:
committed by
Stefan Ceriu
parent
28556da516
commit
6bb43f4395
@@ -76,12 +76,12 @@ extension XCUIApplication {
|
||||
let webUsernameTextField = textFields["Username or Email"]
|
||||
XCTAssertTrue(webUsernameTextField.waitForExistence(timeout: 10.0))
|
||||
webUsernameTextField.clearAndTypeText(username, app: self)
|
||||
webAuthenticationView.buttons["selected"].firstMatch.tap() // Dismiss the keyboard so that the password text field is fully hittable.
|
||||
webAuthenticationView.buttons["Done"].firstMatch.tap() // Dismiss the keyboard so that the password text field is fully hittable.
|
||||
|
||||
let webPasswordTextField = secureTextFields["Password"]
|
||||
XCTAssertTrue(webPasswordTextField.waitForExistence(timeout: 10.0))
|
||||
webPasswordTextField.clearAndTypeText(password, app: self)
|
||||
webAuthenticationView.buttons["selected"].firstMatch.tap() // Dismiss the keyboard so that the continue button is fully hittable.
|
||||
webAuthenticationView.buttons["Done"].firstMatch.tap() // Dismiss the keyboard so that the continue button is fully hittable.
|
||||
|
||||
let webLoginButton = webAuthenticationView.buttons["Continue"]
|
||||
XCTAssertTrue(webLoginButton.waitForExistence(timeout: 10.0))
|
||||
|
||||
Reference in New Issue
Block a user