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 3e6ecb27bb
commit 5aa59e87fe
9 changed files with 54 additions and 43 deletions
@@ -33,8 +33,7 @@ struct ScreenList: View {
ForEach(0..<allStates.count) { i in
let state = allStates[i]
NavigationLink(destination: state.view) {
Text(state.fullScreenTitle)
.accessibilityIdentifier(state.stateKey)
Text(state.screenTitle)
}
}
}