Add F-018, F-060, F-062 UI tests and update QA test plan

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-20 00:06:38 -06:00
parent 2d759274a8
commit 0f0e534214
3 changed files with 71 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
// SportsTimeUITests
//
// Tests for the Home tab: hero card, start planning, toolbar button, and recent trips.
// QA Sheet: F-012, F-013, F-014, F-017, F-019, F-020
// QA Sheet: F-012, F-013, F-014, F-017, F-018, F-019, F-020
//
import XCTest
@@ -121,6 +121,28 @@ final class HomeTests: BaseUITestCase {
captureScreenshot(named: "F017-RecentTripsSection")
}
/// F-018: Fresh launch with no saved trips Recent Trips section should not appear.
@MainActor
func testF018_RecentTripsSectionHiddenNoSavedTrips() {
let home = HomeScreen(app: app)
home.waitForLoad()
// Scroll down to check the full home tab
var scrollAttempts = 0
while scrollAttempts < 5 {
app.swipeUp(velocity: .slow)
scrollAttempts += 1
}
// Recent trips section should NOT exist on a fresh launch
XCTAssertFalse(
home.recentTripsSection.exists,
"Recent trips section should not appear when no trips are saved"
)
captureScreenshot(named: "F018-NoRecentTrips")
}
/// F-019: Planning tips section is visible at bottom of home tab.
@MainActor
func testF019_PlanningTipsSectionVisible() {