Add F-084, F-133, F-134 UI tests; mark F-131, F-132 red (toggle unreliable)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// SportsTimeUITests
|
||||
//
|
||||
// Tests for the Home tab: hero card, start planning, toolbar button, recent trips, polls.
|
||||
// QA Sheet: F-012, F-013, F-014, F-017, F-018, F-019, F-020, F-081, F-083
|
||||
// QA Sheet: F-012, F-013, F-014, F-017, F-018, F-019, F-020, F-081, F-083, F-084
|
||||
//
|
||||
|
||||
import XCTest
|
||||
@@ -204,4 +204,35 @@ final class HomeTests: BaseUITestCase {
|
||||
|
||||
captureScreenshot(named: "F083-CreatePollHidden")
|
||||
}
|
||||
|
||||
// MARK: - Pull to Refresh (F-084)
|
||||
|
||||
/// F-084: Pull to refresh on My Trips tab doesn't crash.
|
||||
@MainActor
|
||||
func testF084_PullToRefresh() {
|
||||
let home = HomeScreen(app: app)
|
||||
home.waitForLoad()
|
||||
home.switchToTab(home.myTripsTab)
|
||||
|
||||
// Wait briefly for My Trips content to load
|
||||
sleep(1)
|
||||
|
||||
// Pull down to refresh
|
||||
app.swipeDown(velocity: .slow)
|
||||
|
||||
// Wait for any refresh to complete
|
||||
sleep(2)
|
||||
|
||||
// Verify the tab is still functional (no crash)
|
||||
let groupPolls = app.staticTexts["Group Polls"]
|
||||
var scrollAttempts = 0
|
||||
while !groupPolls.exists && scrollAttempts < 5 {
|
||||
app.swipeUp(velocity: .slow)
|
||||
scrollAttempts += 1
|
||||
}
|
||||
XCTAssertTrue(groupPolls.exists,
|
||||
"My Trips tab should remain functional after pull to refresh")
|
||||
|
||||
captureScreenshot(named: "F084-PullToRefresh")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user