Add F-058, F-059, F-090 UI tests for trip options and schedule search

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-20 00:19:28 -06:00
parent 0f0e534214
commit 378f65f82c
3 changed files with 63 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-092
// QA Sheet: F-085, F-086, F-087, F-088, F-089, F-090, F-092
//
import XCTest
@@ -134,6 +134,29 @@ final class ScheduleTests: BaseUITestCase {
captureScreenshot(named: "F089-SearchByTeam")
}
/// F-090: Search by venue name filters schedule results.
@MainActor
func testF090_SearchByVenueName() {
let home = HomeScreen(app: app)
home.waitForLoad()
home.switchToTab(home.scheduleTab)
let schedule = ScheduleScreen(app: app)
schedule.assertLoaded()
// Tap search field and type venue name
let searchField = schedule.searchField
XCTAssertTrue(searchField.waitForExistence(timeout: BaseUITestCase.defaultTimeout),
"Search field should exist")
searchField.tap()
searchField.typeText("Wrigley")
// Wait for results to filter
sleep(1)
captureScreenshot(named: "F090-SearchByVenue")
}
/// F-092: Empty state appears when filters match no games.
@MainActor
func testF092_ScheduleEmptyState() {