Skip to content

Commit

Permalink
Wait for bookmark text to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayterDev committed Dec 5, 2023
1 parent 4da07f5 commit a451e62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion FingerprintingUITests/FingerprintUITest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ class FingerprintUITest: XCTestCase {
} else {
XCTFail("Bookmarks button missing")
}
app.tables.staticTexts["DuckDuckGo — Privacy, simplified."].tap()
if app.tables.staticTexts["DuckDuckGo — Privacy, simplified."].waitForExistence(timeout: 25) {
app.staticTexts["DuckDuckGo — Privacy, simplified."].tap()
} else {
XCTFail("Could not find bookmark")
}

// Verify the test passed
XCTAssertTrue(webview.staticTexts["TEST PASSED"].waitForExistence(timeout: 25), "Test not run")
Expand Down

0 comments on commit a451e62

Please sign in to comment.