mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
Fixes #533 - Fix integration tests
This commit is contained in:
parent
4fd24a6c16
commit
6333de802a
@ -38,7 +38,7 @@ class LoginTests: XCTestCase {
|
|||||||
private func runLoginLogoutFlow() {
|
private func runLoginLogoutFlow() {
|
||||||
let app = Application.launch()
|
let app = Application.launch()
|
||||||
|
|
||||||
let getStartedButton = app.buttons[A11yIdentifiers.onboarding.signIn]
|
let getStartedButton = app.buttons[A11yIdentifiers.onboardingScreen.signIn]
|
||||||
|
|
||||||
XCTAssertTrue(getStartedButton.waitForExistence(timeout: 5.0))
|
XCTAssertTrue(getStartedButton.waitForExistence(timeout: 5.0))
|
||||||
getStartedButton.tap()
|
getStartedButton.tap()
|
||||||
@ -47,12 +47,12 @@ class LoginTests: XCTestCase {
|
|||||||
XCTAssertTrue(editHomeserverButton.waitForExistence(timeout: 5.0))
|
XCTAssertTrue(editHomeserverButton.waitForExistence(timeout: 5.0))
|
||||||
editHomeserverButton.tap()
|
editHomeserverButton.tap()
|
||||||
|
|
||||||
let homeserverTextField = app.textFields[A11yIdentifiers.changeServer.server]
|
let homeserverTextField = app.textFields[A11yIdentifiers.changeServerScreen.server]
|
||||||
XCTAssertTrue(homeserverTextField.waitForExistence(timeout: 5.0))
|
XCTAssertTrue(homeserverTextField.waitForExistence(timeout: 5.0))
|
||||||
|
|
||||||
homeserverTextField.clearAndTypeText(app.homeserver)
|
homeserverTextField.clearAndTypeText(app.homeserver)
|
||||||
|
|
||||||
let confirmButton = app.buttons[A11yIdentifiers.changeServer.server]
|
let confirmButton = app.buttons[A11yIdentifiers.changeServerScreen.continue]
|
||||||
XCTAssertTrue(confirmButton.exists)
|
XCTAssertTrue(confirmButton.exists)
|
||||||
confirmButton.tap()
|
confirmButton.tap()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user