Skip to content

Commit 76754a4

Browse files
author
Manuel Ruck
committed
Add rating flow automation script to maestro
1 parent 257ebc2 commit 76754a4

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

.github/copilot-instructions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,12 @@ export PATH="$PATH":"$HOME/.maestro/bin"
187187

188188
```bash
189189
# All E2E tests - NEVER CANCEL, timeout: 15+ minutes
190-
pnpm test:e2e
190+
devbox run -- pnpm test:e2e
191191

192192
# Specific test flows - NEVER CANCEL, timeout: 5+ minutes each
193-
pnpm test:e2e:smoke # Basic app functionality
194-
pnpm test:e2e:verification # Phone verification flow
193+
devbox run -- pnpm test:e2e:smoke # Basic app functionality
194+
devbox run -- pnpm test:e2e:verification # Phone verification flow
195+
devbox run -- pnpm test:e2e:rating # In-app rating flow
195196
```
196197

197198
**Test Files Location**: `.maestro/flows/`

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ expo-env.d.ts
3636
/ios
3737
google-services.json
3838
key.json
39-
report.xml
39+
report.xml
40+
# Test artifacts and screenshots
41+
artifacts/
42+
/*.png

.maestro/flows/rating.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
appId: de.democracy-deutschland.clientapp.internal
2+
---
3+
- launchApp
4+
- waitForAnimationToEnd
5+
- assertVisible: "Es liegen derzeit noch keine Abstimmungsdaten vor."
6+
- swipe:
7+
start: 0, 300
8+
end: 300, 300
9+
- waitForAnimationToEnd
10+
- assertVisible: "⭐️ App Bewerten"
11+
- tapOn: "⭐️ App Bewerten"
12+
- takeScreenshot: artifacts/maestro/rating/rating_after_tap
13+
- waitForAnimationToEnd
14+
- tapOn: "Später"

docs/TESTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ Run specific test flows:
3131
```bash
3232
pnpm test:e2e:smoke # Run smoke tests
3333
pnpm test:e2e:verification # Run verification flow tests
34+
pnpm test:e2e:rating # Run rating flow tests
3435
```
3536

3637
### Test Flows
3738

3839
- `smoke.yaml`: Basic app launch and navigation tests
3940
- `verification.yaml`: Tests the phone verification flow
41+
- `rating.yaml`: Opens the drawer and exercises the in-app rating entry point
4042

4143
### Test Structure
4244

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"doctor": "expo-doctor",
1616
"test:e2e": "maestro test .maestro/flows/",
1717
"test:e2e:smoke": "maestro test .maestro/flows/smoke.yaml",
18-
"test:e2e:verification": "maestro test .maestro/flows/verification.yaml"
18+
"test:e2e:verification": "maestro test .maestro/flows/verification.yaml",
19+
"test:e2e:rating": "maestro test .maestro/flows/rating.yaml"
1920
},
2021
"dependencies": {
2122
"@apollo/client": "^3.12.6",

0 commit comments

Comments
 (0)