Skip to content

Commit bcf09a1

Browse files
committed
ci(e2e): screenshot each sign-in step + retry gradle on wrapper flake
Diagnose step proved the user IS recognized by both BAPI and FAPI on the same instance (sacred-phoenix-9), with password_enabled and needs_first_factor → password as the expected response. Despite that, the AuthView pivots to the Sign Up "Email address" screen after Continue, so this is a client-side state issue, not config. Add takeScreenshot between each step of the sign-in subflow so the intermediate AuthView state is captured in artifacts — we'll see exactly which step transitions to sign-up. Also wrap expo run:android in a 3-attempt retry. The previous run failed on a transient TLS reset downloading gradle-8.14.3-bin.zip; a retry on that single curl avoids burning a 10-min cycle on a network flake.
1 parent ee71629 commit bcf09a1

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/mobile-e2e.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ jobs:
287287
script: >-
288288
cd clerk-expo-quickstart/NativeComponentQuickstart &&
289289
npx expo prebuild --clean &&
290-
npx expo run:android --variant release --no-bundler &&
290+
( ok=0; for i in 1 2 3; do
291+
if npx expo run:android --variant release --no-bundler; then ok=1; break; fi;
292+
echo "expo run:android attempt $i failed (likely gradle wrapper flake); retrying in 15s";
293+
sleep 15;
294+
done; [ "$ok" = 1 ] ) &&
291295
cd ../../integration-mobile &&
292296
find flows -type f -name "*.yaml" ! -path "*/common/*"
293297
${FLOWS_FILTER:+-path "*$FLOWS_FILTER*"} -print0

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@ appId: com.clerk.clerkexpoquickstart
44
---
55
- assertVisible:
66
text: 'Welcome! Sign in to continue\.?'
7+
- takeScreenshot: debug-01-welcome
78
- tapOn:
89
text: "Enter your email or username"
910
- eraseText: 50
1011
- inputText: ${CLERK_TEST_EMAIL}
12+
- takeScreenshot: debug-02-email-typed
1113
- tapOn:
1214
text: "Continue"
1315
index: 0
1416
- waitForAnimationToEnd:
1517
timeout: 3000
18+
- takeScreenshot: debug-03-after-continue
1619
- tapOn:
1720
text: "Enter your password"
1821
- eraseText: 50

0 commit comments

Comments
 (0)