Add F-082, F-099 UI tests and mark remaining tests RED in QA plan

Final batch: F-082 (create poll with 2+ saved trips) and F-099 (progress
percentage updates after stadium visit). Also marks 9 more impossible tests
RED (F-016, F-039, F-048, F-050, F-107, F-108, F-111, F-129, F-130).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-20 01:46:08 -06:00
parent e6584d443d
commit 6aaa3dc073
3 changed files with 104 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
// SportsTimeUITests
//
// Tests for the Progress tab (Pro-gated).
// QA Sheet: F-066, F-097, F-100, F-101, F-106, F-110
// QA Sheet: F-066, F-097, F-099, F-100, F-101, F-106, F-110
//
import XCTest
@@ -182,6 +182,51 @@ final class ProgressTests: BaseUITestCase {
captureScreenshot(named: "F106-GamesHistory")
}
/// F-099: Progress percentage updates after adding a stadium visit.
@MainActor
func testF099_ProgressPercentageUpdates() {
let home = HomeScreen(app: app)
home.waitForLoad()
home.switchToTab(home.progressTab)
let progress = ProgressScreen(app: app)
progress.waitForLoad()
// Check initial progress look for the accessibility label with "percent complete"
let progressCircle = app.descendants(matching: .any).matching(NSPredicate(
format: "label CONTAINS 'stadiums visited'"
)).firstMatch
let initialLabel = progressCircle.exists ? progressCircle.label : ""
// Add a stadium visit
progress.tapAddManualVisit()
let visitSheet = StadiumVisitSheetScreen(app: app)
visitSheet.waitForLoad()
visitSheet.pickFirstStadium()
visitSheet.tapSave()
visitSheet.navigationBar.waitForNonExistence(timeout: BaseUITestCase.defaultTimeout)
// Wait for data to reload
sleep(2)
// Progress should have updated verify the progress circle label changed
let updatedCircle = app.descendants(matching: .any).matching(NSPredicate(
format: "label CONTAINS 'stadiums visited'"
)).firstMatch
XCTAssertTrue(updatedCircle.waitForExistence(timeout: BaseUITestCase.longTimeout),
"Progress circle should exist after adding a visit")
// If we had an initial label, verify it changed
if !initialLabel.isEmpty {
// The new label should have a higher visited count
XCTAssertNotEqual(updatedCircle.label, initialLabel,
"Progress label should update after adding a visit")
}
captureScreenshot(named: "F099-ProgressPercentageUpdated")
}
/// F-110: Achievements gallery is visible with badge grid.
@MainActor
func testF110_AchievementsGalleryVisible() {