Add F-041, F-047, F-051 UI tests for wizard and trip options

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-20 00:25:50 -06:00
parent 378f65f82c
commit 61fd7f5209
3 changed files with 77 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
// SportsTimeUITests
//
// Tests the Trip Options results screen: sorting, selection, navigation.
// QA Sheet: F-052, F-053, F-054, F-055, F-058, F-059
// QA Sheet: F-051, F-052, F-053, F-054, F-055, F-058, F-059
//
import XCTest
@@ -20,6 +20,23 @@ final class TripOptionsTests: BaseUITestCase {
return options
}
// MARK: - Results Display (F-051)
/// F-051: Trip options listed with city count, game count, distance, and preview.
@MainActor
func testF051_ResultsDisplayAfterPlanning() {
let options = planTripAndGetOptions()
// At least one trip card should be visible
let firstCard = options.tripCard(0)
XCTAssertTrue(firstCard.exists, "First trip card should be visible")
// Sort dropdown should be visible (proves results header rendered)
XCTAssertTrue(options.sortDropdown.exists, "Sort dropdown should be visible on results screen")
captureScreenshot(named: "F051-ResultsDisplay")
}
// MARK: - Sort Options (F-052, F-053, F-054, F-055)
/// F-052: Sort by Recommended reorders trip options.