Skip to content

Commit 825a246

Browse files
committed
Increased timeout for UI tests
1 parent be2fd29 commit 825a246

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

NavigationUITests/NavigationFlowUITests.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ final class NavigationFlowUITests: XCTestCase {
120120

121121
private func presentModalScreen() {
122122
let presentButton = app.buttons[AccessibilityID.presentButton.rawValue]
123-
XCTAssertTrue(presentButton.waitForExistence(timeout: 5),
123+
XCTAssertTrue(presentButton.waitForExistence(timeout: 10),
124124
"Present button should exist on the screen before tapping")
125125
presentButton.tap()
126126
}
@@ -131,7 +131,7 @@ final class NavigationFlowUITests: XCTestCase {
131131
XCTFail("No visible dismiss button found")
132132
return
133133
}
134-
XCTAssertTrue(visibleDismissButton.waitForExistence(timeout: 5),
134+
XCTAssertTrue(visibleDismissButton.waitForExistence(timeout: 10),
135135
"Visible dismiss button should exist on the screen before tapping")
136136
visibleDismissButton.tap()
137137
}
@@ -142,7 +142,7 @@ final class NavigationFlowUITests: XCTestCase {
142142
XCTFail("No visible push button found")
143143
return
144144
}
145-
XCTAssertTrue(visiblePushButton.waitForExistence(timeout: 5),
145+
XCTAssertTrue(visiblePushButton.waitForExistence(timeout: 10),
146146
"Visible push button should exist on the screen before tapping")
147147
visiblePushButton.tap()
148148
}
@@ -153,7 +153,7 @@ final class NavigationFlowUITests: XCTestCase {
153153
XCTFail("No visible pop button found")
154154
return
155155
}
156-
XCTAssertTrue(visiblePopButton.waitForExistence(timeout: 5),
156+
XCTAssertTrue(visiblePopButton.waitForExistence(timeout: 10),
157157
"Visible pop button should exist on the screen before tapping")
158158
visiblePopButton.tap()
159159
}
@@ -164,7 +164,7 @@ final class NavigationFlowUITests: XCTestCase {
164164
XCTFail("No visible PopToRoot button found")
165165
return
166166
}
167-
XCTAssertTrue(visiblePopToRootButton.waitForExistence(timeout: 5),
167+
XCTAssertTrue(visiblePopToRootButton.waitForExistence(timeout: 10),
168168
"Visible PopToRoot button should exist on the screen before tapping")
169169
visiblePopToRootButton.tap()
170170
}
@@ -175,28 +175,28 @@ final class NavigationFlowUITests: XCTestCase {
175175
XCTFail("No visible unwind button found")
176176
return
177177
}
178-
XCTAssertTrue(visibleUnwindButton.waitForExistence(timeout: 5),
178+
XCTAssertTrue(visibleUnwindButton.waitForExistence(timeout: 10),
179179
"Visible unwind button should exist on the screen before tapping")
180180
visibleUnwindButton.tap()
181181
verifyNavigationBarTitle(expectedTitle: expectedTitle)
182182
}
183183

184184
private func verifyNavigationBarTitle(expectedTitle: String) {
185185
let navigationBar = app.navigationBars[expectedTitle]
186-
let exists = navigationBar.waitForExistence(timeout: 5)
186+
let exists = navigationBar.waitForExistence(timeout: 10)
187187
XCTAssertTrue(exists, "Navigation bar should be \"\(expectedTitle)\"")
188188
}
189189

190190
private func verifyNavigationBarTitleDoesNotExist(expectedTitle: String) {
191191
let navigationBar = app.navigationBars[expectedTitle]
192-
let exists = navigationBar.waitForExistence(timeout: 5)
192+
let exists = navigationBar.waitForExistence(timeout: 10)
193193
XCTAssertFalse(exists, "Navigation bar should not be \"\(expectedTitle)\"")
194194
}
195195

196196

197197
private func verifyTitle(expectedTitle: String) {
198198
let titleText = app.staticTexts[AccessibilityID.titleText.rawValue]
199-
let exists = titleText.waitForExistence(timeout: 5)
199+
let exists = titleText.waitForExistence(timeout: 10)
200200
XCTAssertTrue(exists, "Title should be visible before checking text")
201201
XCTAssertEqual(titleText.label, expectedTitle, "Title should be \"\(expectedTitle)\"")
202202
}

0 commit comments

Comments
 (0)