mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix integration tests
This commit is contained in:
parent
4fdc80b67d
commit
50417ee8fc
@ -31,7 +31,7 @@ class ApplicationTests: XCTestCase {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let expectedDuration = 5.0
|
let expectedDuration = 10.0
|
||||||
XCTAssertLessThanOrEqual(actualDuration, expectedDuration)
|
XCTAssertLessThanOrEqual(actualDuration, expectedDuration)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
class LoginTests: XCTestCase {
|
class LoginTests: XCTestCase {
|
||||||
let expectedDuration = 40.0
|
let expectedDuration = 100.0
|
||||||
|
|
||||||
func testLoginFlow() throws {
|
func testLoginFlow() throws {
|
||||||
let parser = TestMeasurementParser()
|
let parser = TestMeasurementParser()
|
||||||
@ -53,21 +53,21 @@ class LoginTests: XCTestCase {
|
|||||||
homeserverTextField.clearAndTypeText(app.homeserver)
|
homeserverTextField.clearAndTypeText(app.homeserver)
|
||||||
|
|
||||||
let confirmButton = app.buttons[A11yIdentifiers.changeServerScreen.continue]
|
let confirmButton = app.buttons[A11yIdentifiers.changeServerScreen.continue]
|
||||||
XCTAssertTrue(confirmButton.exists)
|
XCTAssertTrue(confirmButton.waitForExistence(timeout: 5.0))
|
||||||
confirmButton.tap()
|
confirmButton.tap()
|
||||||
|
|
||||||
let usernameTextField = app.textFields[A11yIdentifiers.loginScreen.emailUsername]
|
let usernameTextField = app.textFields[A11yIdentifiers.loginScreen.emailUsername]
|
||||||
XCTAssertTrue(usernameTextField.exists)
|
XCTAssertTrue(usernameTextField.waitForExistence(timeout: 5.0))
|
||||||
|
|
||||||
usernameTextField.clearAndTypeText(app.username)
|
usernameTextField.clearAndTypeText(app.username)
|
||||||
|
|
||||||
let passwordTextField = app.secureTextFields[A11yIdentifiers.loginScreen.password]
|
let passwordTextField = app.secureTextFields[A11yIdentifiers.loginScreen.password]
|
||||||
XCTAssertTrue(passwordTextField.exists)
|
XCTAssertTrue(passwordTextField.waitForExistence(timeout: 5.0))
|
||||||
|
|
||||||
passwordTextField.clearAndTypeText(app.password)
|
passwordTextField.clearAndTypeText(app.password)
|
||||||
|
|
||||||
let nextButton = app.buttons[A11yIdentifiers.loginScreen.continue]
|
let nextButton = app.buttons[A11yIdentifiers.loginScreen.continue]
|
||||||
XCTAssertTrue(nextButton.exists)
|
XCTAssertTrue(nextButton.waitForExistence(timeout: 5.0))
|
||||||
XCTAssertTrue(nextButton.isEnabled)
|
XCTAssertTrue(nextButton.isEnabled)
|
||||||
|
|
||||||
nextButton.tap()
|
nextButton.tap()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user