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