@@ -120,7 +120,7 @@ final class NavigationFlowUITests: XCTestCase {
120
120
121
121
private func presentModalScreen( ) {
122
122
let presentButton = app. buttons [ AccessibilityID . presentButton. rawValue]
123
- XCTAssertTrue ( presentButton. waitForExistence ( timeout: 5 ) ,
123
+ XCTAssertTrue ( presentButton. waitForExistence ( timeout: 10 ) ,
124
124
" Present button should exist on the screen before tapping " )
125
125
presentButton. tap ( )
126
126
}
@@ -131,7 +131,7 @@ final class NavigationFlowUITests: XCTestCase {
131
131
XCTFail ( " No visible dismiss button found " )
132
132
return
133
133
}
134
- XCTAssertTrue ( visibleDismissButton. waitForExistence ( timeout: 5 ) ,
134
+ XCTAssertTrue ( visibleDismissButton. waitForExistence ( timeout: 10 ) ,
135
135
" Visible dismiss button should exist on the screen before tapping " )
136
136
visibleDismissButton. tap ( )
137
137
}
@@ -142,7 +142,7 @@ final class NavigationFlowUITests: XCTestCase {
142
142
XCTFail ( " No visible push button found " )
143
143
return
144
144
}
145
- XCTAssertTrue ( visiblePushButton. waitForExistence ( timeout: 5 ) ,
145
+ XCTAssertTrue ( visiblePushButton. waitForExistence ( timeout: 10 ) ,
146
146
" Visible push button should exist on the screen before tapping " )
147
147
visiblePushButton. tap ( )
148
148
}
@@ -153,7 +153,7 @@ final class NavigationFlowUITests: XCTestCase {
153
153
XCTFail ( " No visible pop button found " )
154
154
return
155
155
}
156
- XCTAssertTrue ( visiblePopButton. waitForExistence ( timeout: 5 ) ,
156
+ XCTAssertTrue ( visiblePopButton. waitForExistence ( timeout: 10 ) ,
157
157
" Visible pop button should exist on the screen before tapping " )
158
158
visiblePopButton. tap ( )
159
159
}
@@ -164,7 +164,7 @@ final class NavigationFlowUITests: XCTestCase {
164
164
XCTFail ( " No visible PopToRoot button found " )
165
165
return
166
166
}
167
- XCTAssertTrue ( visiblePopToRootButton. waitForExistence ( timeout: 5 ) ,
167
+ XCTAssertTrue ( visiblePopToRootButton. waitForExistence ( timeout: 10 ) ,
168
168
" Visible PopToRoot button should exist on the screen before tapping " )
169
169
visiblePopToRootButton. tap ( )
170
170
}
@@ -175,28 +175,28 @@ final class NavigationFlowUITests: XCTestCase {
175
175
XCTFail ( " No visible unwind button found " )
176
176
return
177
177
}
178
- XCTAssertTrue ( visibleUnwindButton. waitForExistence ( timeout: 5 ) ,
178
+ XCTAssertTrue ( visibleUnwindButton. waitForExistence ( timeout: 10 ) ,
179
179
" Visible unwind button should exist on the screen before tapping " )
180
180
visibleUnwindButton. tap ( )
181
181
verifyNavigationBarTitle ( expectedTitle: expectedTitle)
182
182
}
183
183
184
184
private func verifyNavigationBarTitle( expectedTitle: String ) {
185
185
let navigationBar = app. navigationBars [ expectedTitle]
186
- let exists = navigationBar. waitForExistence ( timeout: 5 )
186
+ let exists = navigationBar. waitForExistence ( timeout: 10 )
187
187
XCTAssertTrue ( exists, " Navigation bar should be \" \( expectedTitle) \" " )
188
188
}
189
189
190
190
private func verifyNavigationBarTitleDoesNotExist( expectedTitle: String ) {
191
191
let navigationBar = app. navigationBars [ expectedTitle]
192
- let exists = navigationBar. waitForExistence ( timeout: 5 )
192
+ let exists = navigationBar. waitForExistence ( timeout: 10 )
193
193
XCTAssertFalse ( exists, " Navigation bar should not be \" \( expectedTitle) \" " )
194
194
}
195
195
196
196
197
197
private func verifyTitle( expectedTitle: String ) {
198
198
let titleText = app. staticTexts [ AccessibilityID . titleText. rawValue]
199
- let exists = titleText. waitForExistence ( timeout: 5 )
199
+ let exists = titleText. waitForExistence ( timeout: 10 )
200
200
XCTAssertTrue ( exists, " Title should be visible before checking text " )
201
201
XCTAssertEqual ( titleText. label, expectedTitle, " Title should be \" \( expectedTitle) \" " )
202
202
}
0 commit comments