Add F-040, F-081, F-083 UI tests for review step and polls section

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-20 00:37:34 -06:00
parent 54be5cae3e
commit be72367fb1
3 changed files with 75 additions and 2 deletions

View File

@@ -388,6 +388,37 @@ final class TripWizardFlowTests: BaseUITestCase {
)
}
// MARK: - Review Step (F-040)
/// F-040: Review step shows summary of selections.
@MainActor
func testF040_ReviewStepShowsSummary() {
let (_, wizard) = openWizard()
wizard.selectDateRangeMode()
// Fill required fields
wizard.selectDateRange(
targetMonth: "June",
targetYear: "2026",
startDay: "2026-06-11",
endDay: "2026-06-16"
)
wizard.selectSport("mlb")
wizard.selectRegion("central")
// Scroll to find the review section
let reviewSubtitle = app.staticTexts["Review your selections"]
reviewSubtitle.scrollIntoView(in: app.scrollViews.firstMatch)
XCTAssertTrue(reviewSubtitle.exists,
"Review step subtitle should be visible")
// Mode label should be present in the review
let modeLabel = app.staticTexts["Mode"]
XCTAssertTrue(modeLabel.exists, "Mode label should appear in review step")
captureScreenshot(named: "F040-ReviewStep")
}
// MARK: - Plan Button Enabled (F-041)
/// F-041: Plan My Trip button becomes enabled after filling all required fields.