Fixed SwiftUI UI tests not finding the right state to tap if not already displayed on screen.

This commit is contained in:
Stefan Ceriu
2021-12-16 16:29:07 +02:00
committed by Stefan Ceriu
parent 1925a126db
commit 0f20fc54de
9 changed files with 54 additions and 43 deletions

View File

@@ -29,7 +29,7 @@ class PollEditFormUITests: XCTestCase {
app = XCUIApplication()
app.launch()
app.buttons[MockPollEditFormScreenState.screenStateKeys.first!].tap()
app.goToScreenWithIdentifier(MockPollEditFormScreenState.standard.title)
}
func testInitialStateComponents() {