My UI-test fails because the test waits endless until the app idles. I can not see that there is anything happening in the background, like a loading spinner.
It just oc
let tabBarsQuery = self.app.tabBars
let button = tabBarsQuery.buttons[@"Screen2"]
while writing UI test cases, system taking time to make it hittable so we are creating a predicate for it and waiting for the button.
let predicate = NSPredicate(format: "isHittable == 1") expectation(for:
predicate, evaluatedWith: button, handler: nil)
waitForExpectations(timeout:10, handler: nil)
button.tap()