Fix flaky UI tests: increase calendar wait timeouts and disable parallel UI testing
Calendar navigation buttons used shortTimeout (5s) which was too tight under simulator load, causing cascading failures in wizard and trip saving tests. Bumped to defaultTimeout (15s) and disabled parallel execution for UI tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -92,7 +92,7 @@ final class TripWizardFlowTests: BaseUITestCase {
|
||||
// Navigate forward 3 times
|
||||
for _ in 0..<3 {
|
||||
wizard.nextMonthButton.scrollIntoView(in: app.scrollViews.firstMatch)
|
||||
wizard.nextMonthButton.waitUntilHittable(timeout: BaseUITestCase.shortTimeout).tap()
|
||||
wizard.nextMonthButton.waitUntilHittable(timeout: BaseUITestCase.defaultTimeout).tap()
|
||||
}
|
||||
|
||||
// Month label should have changed
|
||||
@@ -113,14 +113,14 @@ final class TripWizardFlowTests: BaseUITestCase {
|
||||
// Go forward 3 months
|
||||
for _ in 0..<3 {
|
||||
wizard.nextMonthButton.scrollIntoView(in: app.scrollViews.firstMatch)
|
||||
wizard.nextMonthButton.waitUntilHittable(timeout: BaseUITestCase.shortTimeout).tap()
|
||||
wizard.nextMonthButton.waitUntilHittable(timeout: BaseUITestCase.defaultTimeout).tap()
|
||||
}
|
||||
|
||||
let afterForward = wizard.monthLabel.label
|
||||
|
||||
// Go back 1 month
|
||||
wizard.previousMonthButton.scrollIntoView(in: app.scrollViews.firstMatch)
|
||||
wizard.previousMonthButton.waitUntilHittable(timeout: BaseUITestCase.shortTimeout).tap()
|
||||
wizard.previousMonthButton.waitUntilHittable(timeout: BaseUITestCase.defaultTimeout).tap()
|
||||
|
||||
XCTAssertNotEqual(wizard.monthLabel.label, afterForward,
|
||||
"Month should change after navigating backward")
|
||||
|
||||
Reference in New Issue
Block a user