Switch the CI to code 14 and the iOS 14 simulator, fix UI tests

This commit is contained in:
Stefan Ceriu
2022-10-26 13:27:26 +03:00
committed by Stefan Ceriu
parent 8334fa1e69
commit 7daa4f121e
8 changed files with 113 additions and 72 deletions
@@ -21,10 +21,7 @@ class UserSuggestionUITests: MockScreenTestCase {
func testUserSuggestionScreen() throws {
app.goToScreenWithIdentifier(MockUserSuggestionScreenState.multipleResults.title)
XCTAssert(app.tables.firstMatch.waitForExistence(timeout: 1))
let firstButton = app.tables.firstMatch.buttons.firstMatch
_ = firstButton.waitForExistence(timeout: 10)
XCTAssert(firstButton.identifier == "displayNameText-userIdText")
let firstButton = app.buttons["displayNameText-userIdText"].firstMatch
XCTAssert(firstButton.waitForExistence(timeout: 10))
}
}