Skip to content

Commit c76ceb8

Browse files
committed
Test for process death in e2e tests
1 parent 700e666 commit c76ceb8

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

app/src/maestro/flows/flow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ appId: io.github.lordraydenmk.themoviedbapp
22
---
33
- launchApp
44
- tapOn: "Karate Kid: Legends"
5-
- back
6-
- assertVisible: "Karate Kid: Legends"
5+
- assertVisible: "After a family tragedy*"
6+
- runFlow: reusable/trigger-process-death.yml
7+
- assertVisible: "After a family tragedy*"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
appId: io.github.lordraydenmk.themoviedbapp
2+
---
3+
- pressKey: Home # Puts the app into the background
4+
- killApp # Kills the app (adb shell am kill)
5+
- launchApp: # Relaunches the app
6+
stopApp: false # Without adb shell am stop

e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ $result -ne 0 ]; then
99
echo "Printing hierarchy"
1010
maestro hierarchy
1111
echo "Printing logcat for app"
12-
adb logcat -d | grep "io.github.lordraydenmk.superheroesapp"
12+
adb logcat -d | grep "io.github.lordraydenmk.themoviedbapp"
1313
fi
1414

1515
# return the result of the first command as the result of the script

0 commit comments

Comments
 (0)