Skip to content

Commit 6a19534

Browse files
authored
Update e2e tests (#400)
* Update Dockerfile per wiremock docs * Improve e2e tests - test process death * Fix e2e script
1 parent 80745ec commit 6a19534

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

app/src/maestro/flows/flow.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ appId: io.github.lordraydenmk.themoviedbapp
22
---
33
- launchApp
44
- tapOn: "Karate Kid: Legends"
5+
- assertVisible: "After a family tragedy, kung fu prodigy Li Fong.*"
6+
- runFlow: reusable/trigger-process-death.yml
7+
- assertVisible: "After a family tragedy, kung fu prodigy Li Fong.*"
58
- back
6-
- assertVisible: "Karate Kid: Legends"
9+
- assertVisible: "Movies App"
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

wiremock/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ COPY __files /home/wiremock/__files
66

77
EXPOSE 8080
88

9-
CMD ["--port", "8080", "--global-response-templating", "--verbose"]
9+
ENTRYPOINT ["/docker-entrypoint.sh", "--global-response-templating", "--disable-gzip", "--verbose"]

0 commit comments

Comments
 (0)