Skip to content

Commit

Permalink
add test wait
Browse files Browse the repository at this point in the history
  • Loading branch information
jyu115 committed Dec 8, 2023
1 parent 59ee806 commit dfaa05c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import XCTest

class SwiftSampleAppUITest: XCUITestBase {
func testElementsVisible() {
XCTAssertTrue(app.staticTexts["Coffees"].exists)
if app.staticTexts["Coffees"].waitForExistence(timeout:10) {
XCTAssertTrue(app.staticTexts["Coffees"].exists)
}
}
}

0 comments on commit dfaa05c

Please sign in to comment.