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