Skip to content

Commit f60c318

Browse files
committed
test(e2e): handle post-password email-code verification step
After the --env fix, sign-in flow progresses through password entry correctly but the instance routes to a "Check your email" verification screen requiring a 6-digit code. The +clerk_test@ email pattern routes mail to Clerk's test inbox and the verification code is the documented constant "424242". Add a conditional runFlow that enters 424242 if the verification screen appears. Non-verification instances skip the block via the `when: visible` guard.
1 parent 508c136 commit f60c318

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

integration-mobile/flows/common/sign-in-email-password.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ appId: com.clerk.clerkexpoquickstart
2525
index: 0
2626
- waitForAnimationToEnd:
2727
timeout: 5000
28+
# Some instances require email-code verification AFTER a successful
29+
# password submit. For +clerk_test@ emails Clerk's documented test
30+
# verification code is "424242" — see https://clerk.com/docs/testing/test-emails-and-phones
31+
- runFlow:
32+
when:
33+
visible: "Check your email"
34+
commands:
35+
- inputText: "424242"
36+
- waitForAnimationToEnd:
37+
timeout: 5000
2838
# Android Google Password Manager may prompt to save the password after
2939
# sign-in. Dismiss it so assertions on the home screen work.
3040
- runFlow:

0 commit comments

Comments
 (0)