After updating xcode my UI tests are much more flaky. My main issue right now is that the '.waitForExistence(timeout: ) doesn't seem to be working at all. I run and watch the test run and it fails before 15 seconds pass. The test is selecting settings. The wait provides enough time for the screen to transition and the activitiy indicator to process. The indicator finishes within the first 5 seconds. When I look at the screen shot it shows that test is attempting to verify the element exists right away while the activity indicator is still pressent.
Code:
app.buttons["settingsButton"].tap()
XCTAssertTrue(app.staticTexts["Settings"].waitForExistence(timeout: 15))
let measurementsButton = app.tables.cells.buttons["Measurement"]
let measurementTitle = app.tables.cells.staticTexts["Standard"]
XCTAssertTrue(measurementTitle.isSelected)
Anyone else seeing issues like this?