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
//
// Verifies the Schedule tab loads and displays content.
// QA Sheet: F-085, F-086, F-087, F-088, F-089, F-090, F-092
// QA Sheet: F-085, F-086, F-087, F-088, F-089, F-090, F-092, F-094
//
import XCTest
@@ -190,4 +190,33 @@ final class ScheduleTests: BaseUITestCase {
captureScreenshot(named: "F092-ScheduleEmptyState")
}
// MARK: - Diagnostics (F-094)
/// F-094: Diagnostics button opens the diagnostics sheet.
@MainActor
func testF094_ScheduleDiagnostics() {
let home = HomeScreen(app: app)
home.waitForLoad()
home.switchToTab(home.scheduleTab)
let schedule = ScheduleScreen(app: app)
schedule.assertLoaded()
// Tap the filter menu button to open the menu
schedule.filterButton.tap()
// Tap "Diagnostics" in the menu
let diagnosticsButton = app.buttons["Diagnostics"]
XCTAssertTrue(diagnosticsButton.waitForExistence(timeout: BaseUITestCase.shortTimeout),
"Diagnostics menu item should exist")
diagnosticsButton.tap()
// Diagnostics sheet should appear with game count info
let sheetContent = app.navigationBars.firstMatch
XCTAssertTrue(sheetContent.waitForExistence(timeout: BaseUITestCase.defaultTimeout),
"Diagnostics sheet should appear")
captureScreenshot(named: "F094-ScheduleDiagnostics")
}
}