Skip to content

Commit 38bd76a

Browse files
committed
test(e2e): dismiss iOS save-password prompt + diagnostic screenshots
iOS's system 'Save Password' / iCloud Keychain prompt overlays the home screen after sign-in. The flow already dismisses Android's Google Password Manager equivalent; mirror that for the iOS variants ("Save Password", "Strong Password", "AutoFill Passwords") by tapping the dismissal button ("Not Now", "Never for This Website", "Don't Save"). Also adds two screenshots so the next failure isn't blind: - debug-04-after-password-continue at the end of sign-in - debug-assert-signed-in-state at the start of assert-signed-in
1 parent 98636d2 commit 38bd76a

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

integration/mobile/flows/common/assert-signed-in.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# the timeout elapses.
55
appId: com.clerk.clerkexpoquickstart
66
---
7+
# Screenshot the state we landed in BEFORE the assertion so a future
8+
# failure here has something to look at instead of just "timed out".
9+
- takeScreenshot: debug-assert-signed-in-state
710
- extendedWaitUntil:
811
visible: "Manage Profile"
912
timeout: 20000

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,16 @@ appId: com.clerk.clerkexpoquickstart
6767
text: "Not now|Never"
6868
- waitForAnimationToEnd:
6969
timeout: 2000
70+
# iOS shows a system "Save Password" / iCloud Keychain prompt after sign-in
71+
# that overlays the home screen. Dismiss the common variants so assertions
72+
# on the home screen see the actual content rather than the modal.
73+
- runFlow:
74+
when:
75+
visible: "Save Password|Strong Password|Use Strong Password|AutoFill Passwords"
76+
commands:
77+
- tapOn:
78+
text: "Not Now|Never for This Website|Don.t Save"
79+
optional: true
80+
- waitForAnimationToEnd:
81+
timeout: 2000
82+
- takeScreenshot: debug-04-after-password-continue

0 commit comments

Comments
 (0)