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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user