Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST PR FOR #23748 #23752

Draft
wants to merge 5 commits into
base: tiagomar/ui-tests-reader-tests
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Modules/Sources/UITestsFoundation/Screens/ReaderScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class ReaderScreen: ScreenObject {

private func postContentEquals(_ expected: String) -> Bool {
let equalsPostContent = NSPredicate(format: "label == %@", expected)
let isPostContentEqual = app.staticTexts.element(matching: equalsPostContent).waitForIsHittable(timeout: 15)
let isPostContentEqual = app.staticTexts.element(matching: equalsPostContent).waitForIsHittable(timeout: 20)

return isPostContentEqual
}
Expand Down Expand Up @@ -139,7 +139,7 @@ public class ReaderScreen: ScreenObject {
private func waitForLoadingToFinish() {
let doesNotExistPredicate = NSPredicate(format: "exists == FALSE")
let expectation = XCTNSPredicateExpectation(predicate: doesNotExistPredicate, object: ghostLoading)
let result = XCTWaiter.wait(for: [expectation], timeout: 5.0)
let result = XCTWaiter.wait(for: [expectation], timeout: 20.0)
XCTAssertEqual(result, .completed)
}

Expand Down