Skip to content

Commit 6f80b6f

Browse files
committed
fix(e2e): harden cold-launch-no-flash assertion against slow boot
Bare assertVisible at the end of the flow has no retry, so a slow emulator that hasn't finished AuthView render by t=10s post-launch fails the assertion even though the screen shows up a few seconds later. The no-flash regression check is the cold-launch-immediate screenshot captured before this assertion; the assertion only confirms we landed on the AuthView at all. Switch to extendedWaitUntil 30s to match open-app.yaml's pattern. Same flow has been intermittently green for weeks because the timing race resolves differently per boot.
1 parent ee89dfd commit 6f80b6f

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

integration/mobile/flows/smoke/cold-launch-no-flash.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ tags:
5050
text: "Sign Out"
5151
- waitForAnimationToEnd:
5252
timeout: 3000
53-
- assertVisible:
54-
text: 'Welcome! Sign in to continue\.?'
53+
# The no-flash regression check is the `cold-launch-immediate` screenshot
54+
# captured above, BEFORE this assertion. This final check only confirms
55+
# we landed on the AuthView at all. Use extendedWaitUntil instead of a
56+
# bare assertVisible because on cold Android emulators (and slow iOS sims
57+
# with cache misses) the AuthView's JS bundle can still be parsing at
58+
# t=10s post-launch — assertVisible races bundle-load and flakes, even
59+
# though the AuthView shows up a few seconds later. 30s mirrors the
60+
# matching wait in flows/common/open-app.yaml.
61+
- extendedWaitUntil:
62+
visible: 'Welcome! Sign in to continue\.?'
63+
timeout: 30000
5564
- takeScreenshot: cold-launch-settled

0 commit comments

Comments
 (0)