Fix 4 flaky UI tests for iOS 26 compatibility
- AppLaunchTests/StabilityTests: Increase assertTabSelected timeout to 8s for iOS 26 Liquid Glass delayed isSelected state updates - DeepLinkTests: Detect SubscriptionStoreView container instead of text labels, since Apple's native view shows "Subscription Unavailable" in test storefront - SettingsActionTests: Check for empty state after clearing data, bump Settings header timeout to 8s Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -51,7 +51,8 @@ final class AppLaunchTests: BaseUITestCase {
|
||||
}
|
||||
|
||||
/// Wait for a tab to become selected (iOS 26 Liquid Glass may delay state updates).
|
||||
private func assertTabSelected(_ tab: XCUIElement, name: String, timeout: TimeInterval = 3) {
|
||||
private func assertTabSelected(_ tab: XCUIElement, name: String, timeout: TimeInterval = 8) {
|
||||
// Re-query the element to get fresh state, since isSelected can be stale.
|
||||
let predicate = NSPredicate(format: "isSelected == true")
|
||||
let expectation = XCTNSPredicateExpectation(predicate: predicate, object: tab)
|
||||
let result = XCTWaiter.wait(for: [expectation], timeout: timeout)
|
||||
|
||||
Reference in New Issue
Block a user