fix: 5 failing UI tests — scroll direction, sport availability race, launch args, demo toggle conflict
- Screens.swift: selectPlanningMode scrolls UP (modes are at top of wizard) - TripWizardFlowTests: F040 selects sport before dates to avoid async availability check disabling MLB for December off-season - SportsTimeUITests: add --ui-testing/--disable-animations/--reset-state launch args to accessibility, demo, and manual flow tests - Demo test: remove -DemoMode flag that caused double-toggle (demo auto-selects + manual taps toggled sports/regions off) - Manual test: replace blind swipes with scrollIntoView + wait-for-enabled for Plan button; use waitForExistence for trip card selection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -160,7 +160,8 @@ struct TripWizardScreen {
|
||||
/// Selects a planning mode by raw value (e.g., "dateRange", "gameFirst", "locations", "followTeam", "teamFirst").
|
||||
func selectPlanningMode(_ mode: String) {
|
||||
let btn = planningModeButton(mode)
|
||||
btn.scrollIntoView(in: app.scrollViews.firstMatch)
|
||||
// Planning modes are at the top of the wizard — scroll up to find them
|
||||
btn.scrollIntoView(in: app.scrollViews.firstMatch, direction: .up)
|
||||
btn.tap()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user