diff --git a/app/src/maestro/flows/flow.yml b/app/src/maestro/flows/flow.yml index a7f6aba5..84ada886 100644 --- a/app/src/maestro/flows/flow.yml +++ b/app/src/maestro/flows/flow.yml @@ -2,5 +2,8 @@ appId: io.github.lordraydenmk.themoviedbapp --- - launchApp - tapOn: "Karate Kid: Legends" +- assertVisible: "After a family tragedy, kung fu prodigy Li Fong.*" +- runFlow: reusable/trigger-process-death.yml +- assertVisible: "After a family tragedy, kung fu prodigy Li Fong.*" - back -- assertVisible: "Karate Kid: Legends" \ No newline at end of file +- assertVisible: "Movies App" \ No newline at end of file diff --git a/app/src/maestro/flows/reusable/trigger-process-death.yml b/app/src/maestro/flows/reusable/trigger-process-death.yml new file mode 100644 index 00000000..bdd2b733 --- /dev/null +++ b/app/src/maestro/flows/reusable/trigger-process-death.yml @@ -0,0 +1,6 @@ +appId: io.github.lordraydenmk.themoviedbapp +--- +- pressKey: Home # Puts the app into the background +- killApp # Kills the app (adb shell am kill) +- launchApp: # Relaunches the app + stopApp: false # Without adb shell am stop \ No newline at end of file diff --git a/e2e.sh b/e2e.sh index 3474c901..b8dbedb2 100644 --- a/e2e.sh +++ b/e2e.sh @@ -9,7 +9,7 @@ if [ $result -ne 0 ]; then echo "Printing hierarchy" maestro hierarchy echo "Printing logcat for app" - adb logcat -d | grep "io.github.lordraydenmk.superheroesapp" + adb logcat -d | grep "io.github.lordraydenmk.themoviedbapp" fi # return the result of the first command as the result of the script diff --git a/wiremock/Dockerfile b/wiremock/Dockerfile index 12012267..c59d3211 100644 --- a/wiremock/Dockerfile +++ b/wiremock/Dockerfile @@ -6,4 +6,4 @@ COPY __files /home/wiremock/__files EXPOSE 8080 -CMD ["--port", "8080", "--global-response-templating", "--verbose"] \ No newline at end of file +ENTRYPOINT ["/docker-entrypoint.sh", "--global-response-templating", "--disable-gzip", "--verbose"] \ No newline at end of file