From 3323c4a61cfe669054dc4b85c6da2a83fed5ad5a Mon Sep 17 00:00:00 2001 From: Trey t Date: Sat, 28 Feb 2026 12:57:59 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20onboarding=20voting=20test=20for=20new=20?= =?UTF-8?q?Day=E2=86=92Time=20page=20order?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The onboarding flow changed from Welcome→Time→Day to Welcome→Day→Time. Updated test to swipe once instead of twice. Co-Authored-By: Claude Opus 4.6 --- Tests iOS/OnboardingVotingTests.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Tests iOS/OnboardingVotingTests.swift b/Tests iOS/OnboardingVotingTests.swift index cdcaf37..c1eddd2 100644 --- a/Tests iOS/OnboardingVotingTests.swift +++ b/Tests iOS/OnboardingVotingTests.swift @@ -21,8 +21,7 @@ final class OnboardingVotingTests: BaseUITestCase { "Onboarding welcome screen should appear" ) - // Swipe exactly 2 times: Welcome → Time → Day - swipeToNext() + // Swipe once: Welcome → Day (Day is now page 2, before Time) swipeToNext() // Look for the "Which day should" title text to confirm we're on the day page @@ -30,11 +29,6 @@ final class OnboardingVotingTests: BaseUITestCase { NSPredicate(format: "label CONTAINS[c] 'Which day'") ).firstMatch - // If not found, try one more swipe (may need 3 depending on animation) - if !dayTitle.waitForExistence(timeout: 3) { - swipeToNext() - } - XCTAssertTrue( dayTitle.waitForExistence(timeout: 5), "Day screen title 'Which day should you rate?' should be visible"