Skip to content

Commit 2702cc7

Browse files
romtsnclaude
andcommitted
fix(test): Use half-screen swipe and pressKey:back to reliably open notification shade
The full-screen swipe (90%,0% -> 90%,100%) was expanding into quick settings on API 34 instead of showing the notification shade. Changed to a half-screen swipe (90%,0% -> 90%,50%) which is long enough to open the shade on API 36 but short enough to avoid quick settings on API 34. Also uses pressKey:back + pressKey:home to reliably collapse any open shade/quick settings before retrying, and increased retries from 3 to 5. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4b8afe7 commit 2702cc7

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

sentry-android-integration-tests/sentry-uitest-android-critical/maestro/.maestro/config.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ onFlowStart:
88
visible: "Close app"
99
commands:
1010
- tapOn: "Close app"
11-
# Collapse notification shade if left open from a previous test
12-
- swipe:
13-
start: 50%, 50%
14-
end: 50%, 1%
15-
duration: 300
11+
# Close notification shade if left open from a previous test
12+
- pressKey: back
1613
- pressKey: home

sentry-android-integration-tests/sentry-uitest-android-critical/maestro/appStart.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,19 @@ name: App Start Tests
3333
- assertNotVisible: "Welcome!"
3434
- waitForAnimationToEnd
3535
- repeat:
36-
times: 3
36+
times: 5
3737
while:
3838
notVisible: "Sentry Test Notification"
3939
commands:
40-
# Reset to home screen to prevent swipes from accumulating
41-
# into quick settings expansion
40+
# Reset to home screen to collapse any open shade/quick settings
41+
- pressKey: back
4242
- pressKey: home
4343
- waitForAnimationToEnd
44+
# Half-screen swipe: long enough to open shade, short enough to avoid quick settings
4445
- swipe:
4546
start: 90%, 0%
46-
end: 90%, 100%
47-
duration: 4000
47+
end: 90%, 50%
48+
duration: 2000
4849
- tapOn: "Sentry Test Notification"
4950
- assertVisible: "App Start Type: WARM"
5051

@@ -66,18 +67,19 @@ name: App Start Tests
6667
- killApp
6768
- waitForAnimationToEnd
6869
- repeat:
69-
times: 3
70+
times: 5
7071
while:
7172
notVisible: "Sentry Test Notification"
7273
commands:
73-
# Reset to home screen to prevent swipes from accumulating
74-
# into quick settings expansion
74+
# Reset to home screen to collapse any open shade/quick settings
75+
- pressKey: back
7576
- pressKey: home
7677
- waitForAnimationToEnd
78+
# Half-screen swipe: long enough to open shade, short enough to avoid quick settings
7779
- swipe:
7880
start: 90%, 0%
79-
end: 90%, 100%
80-
duration: 4000
81+
end: 90%, 50%
82+
duration: 2000
8183
- tapOn: "Sentry Test Notification"
8284
- assertVisible: "App Start Type: COLD"
8385
# Test 5: Launch app after a broadcast receiver already created the application

0 commit comments

Comments
 (0)