Skip to content

Commit aad423d

Browse files
committed
Fix integration tests after clearAndTypeText signature change.
1 parent 98a5ee5 commit aad423d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

IntegrationTests/Sources/Common.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extension XCUIApplication {
2121
let homeserverTextField = textFields[A11yIdentifiers.changeServerScreen.server]
2222
XCTAssertTrue(homeserverTextField.waitForExistence(timeout: 10.0))
2323

24-
homeserverTextField.clearAndTypeText(homeserver)
24+
homeserverTextField.clearAndTypeText(homeserver, app: self)
2525

2626
let confirmButton = buttons[A11yIdentifiers.changeServerScreen.continue]
2727
XCTAssertTrue(confirmButton.waitForExistence(timeout: 10.0))
@@ -39,12 +39,12 @@ extension XCUIApplication {
3939
let usernameTextField = textFields[A11yIdentifiers.loginScreen.emailUsername]
4040
XCTAssertTrue(usernameTextField.waitForExistence(timeout: 10.0))
4141

42-
usernameTextField.clearAndTypeText(username)
42+
usernameTextField.clearAndTypeText(username, app: self)
4343

4444
let passwordTextField = secureTextFields[A11yIdentifiers.loginScreen.password]
4545
XCTAssertTrue(passwordTextField.waitForExistence(timeout: 10.0))
4646

47-
passwordTextField.clearAndTypeText(password)
47+
passwordTextField.clearAndTypeText(password, app: self)
4848

4949
let nextButton = buttons[A11yIdentifiers.loginScreen.continue]
5050
XCTAssertTrue(nextButton.waitForExistence(timeout: 10.0))

IntegrationTests/Sources/UserFlowTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UserFlowTests: XCTestCase {
3232
private func checkRoomFlows() {
3333
// Search for the special test room
3434
let searchField = app.searchFields.firstMatch
35-
searchField.clearAndTypeText(Self.integrationTestsRoomName)
35+
searchField.clearAndTypeText(Self.integrationTestsRoomName, app: app)
3636

3737
// And open it
3838
let firstRoom = app.buttons.matching(NSPredicate(format: "identifier CONTAINS %@", Self.integrationTestsRoomName)).firstMatch
@@ -63,7 +63,7 @@ class UserFlowTests: XCTestCase {
6363
private func sendMessages() {
6464
var composerTextField = app.textViews[A11yIdentifiers.roomScreen.messageComposer].firstMatch
6565
XCTAssertTrue(composerTextField.waitForExistence(timeout: 10.0))
66-
composerTextField.clearAndTypeText(Self.integrationTestsMessage)
66+
composerTextField.clearAndTypeText(Self.integrationTestsMessage, app: app)
6767

6868
var sendButton = app.buttons[A11yIdentifiers.roomScreen.sendButton].firstMatch
6969
XCTAssertTrue(sendButton.waitForExistence(timeout: 10.0))
@@ -77,7 +77,7 @@ class UserFlowTests: XCTestCase {
7777

7878
composerTextField = app.textViews[A11yIdentifiers.roomScreen.messageComposer].firstMatch
7979
XCTAssertTrue(composerTextField.waitForExistence(timeout: 10.0))
80-
composerTextField.clearAndTypeText(Self.integrationTestsMessage)
80+
composerTextField.clearAndTypeText(Self.integrationTestsMessage, app: app)
8181

8282
sendButton = app.buttons[A11yIdentifiers.roomScreen.sendButton].firstMatch
8383
XCTAssertTrue(sendButton.waitForExistence(timeout: 10.0))

0 commit comments

Comments
 (0)