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:
Trey t
2026-02-17 21:34:57 -06:00
parent 9b0cb96638
commit 1488be7c1f
3 changed files with 149 additions and 146 deletions

View File

@@ -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()
}