mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
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
d130dffaf3
commit
bc7ced11cb
@@ -76,12 +76,12 @@ extension XCUIApplication {
|
|||||||
let webUsernameTextField = textFields["Username or Email"]
|
let webUsernameTextField = textFields["Username or Email"]
|
||||||
XCTAssertTrue(webUsernameTextField.waitForExistence(timeout: 10.0))
|
XCTAssertTrue(webUsernameTextField.waitForExistence(timeout: 10.0))
|
||||||
webUsernameTextField.clearAndTypeText(username, app: self)
|
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"]
|
let webPasswordTextField = secureTextFields["Password"]
|
||||||
XCTAssertTrue(webPasswordTextField.waitForExistence(timeout: 10.0))
|
XCTAssertTrue(webPasswordTextField.waitForExistence(timeout: 10.0))
|
||||||
webPasswordTextField.clearAndTypeText(password, app: self)
|
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"]
|
let webLoginButton = webAuthenticationView.buttons["Continue"]
|
||||||
XCTAssertTrue(webLoginButton.waitForExistence(timeout: 10.0))
|
XCTAssertTrue(webLoginButton.waitForExistence(timeout: 10.0))
|
||||||
|
|||||||
Reference in New Issue
Block a user