Add F-015, F-076, F-094 UI tests for home refresh, trip detail, diagnostics

- F-015: Featured trips refresh button works without crash
- F-076: Trip detail loads correctly with single-stop trip
- F-094: Schedule diagnostics sheet opens from filter menu

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-20 01:03:12 -06:00
parent 56c17e79a4
commit ab1d7bc6b6
4 changed files with 91 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
// SportsTimeUITests
//
// Tests the Trip Options results screen: sorting, selection, navigation.
// QA Sheet: F-051, 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, F-076
//
import XCTest
@@ -107,6 +107,29 @@ final class TripOptionsTests: BaseUITestCase {
captureScreenshot(named: "F058-SelectTripOpensDetail")
}
// MARK: - Trip Detail Variants (F-076)
/// F-076: Trip detail works correctly with a single-stop (minimal) trip.
@MainActor
func testF076_TripDetailWithSingleStop() {
let options = planTripAndGetOptions()
// Select the first trip option
options.selectTrip(at: 0)
// Trip detail should load with itinerary
let detail = TripDetailScreen(app: app)
detail.waitForLoad()
detail.assertItineraryVisible()
// Verify the detail screen is functional (favorite button exists)
XCTAssertTrue(detail.favoriteButton.waitForExistence(
timeout: BaseUITestCase.shortTimeout),
"Favorite button should exist on trip detail")
captureScreenshot(named: "F076-TripDetailSingleStop")
}
// MARK: - Back Navigation (F-059)
/// F-059: Back button on Trip Options returns to wizard with selections preserved.