Skip to content

Commit 5bf59f4

Browse files
antonisclaude
andcommitted
fix(e2e): Add scrolling to find crash control buttons in Android test
The crash control buttons are off-screen, so the Maestro flow needs to scroll to find them before tapping. This matches the pattern used in other Android E2E tests. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 40f0d2f commit 5bf59f4

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

samples/react-native/e2e/tests/captureAppStartCrash/captureAppStartCrash.test.android.manual.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@ appId: io.sentry.reactnative.sample
55
clearState: true
66
stopApp: true
77

8-
- tapOn: "Errors"
8+
# App launches on ErrorsTab by default, wait for screen to load
9+
- waitForAnimationToEnd:
10+
timeout: 2000
11+
12+
# Scroll down to find the "Enable Crash on Start" button (Android only)
13+
- scrollUntilVisible:
14+
element: "Enable Crash on Start"
15+
timeout: 10000
16+
direction: DOWN
17+
918
- tapOn: "Enable Crash on Start"
1019
- stopApp
1120

@@ -24,5 +33,14 @@ appId: io.sentry.reactnative.sample
2433
clearState: false
2534
stopApp: false
2635

27-
- tapOn: "Errors"
36+
# Wait for app to stabilize
37+
- waitForAnimationToEnd:
38+
timeout: 2000
39+
40+
# Scroll down to find the "Disable Crash on Start" button
41+
- scrollUntilVisible:
42+
element: "Disable Crash on Start"
43+
timeout: 10000
44+
direction: DOWN
45+
2846
- tapOn: "Disable Crash on Start"

0 commit comments

Comments
 (0)