maestro: add settings page to feature graphic

This commit is contained in:
Harsh Shandilya 2024-01-19 17:49:44 +05:30
parent feed18c33e
commit ae06a768fe
2 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,7 @@ appId: dev.msfjarvis.claw.android
index: 1
- takeScreenshot: "HottestPosts"
- tapOn: "Saved"
- waitForAnimationToEnd
- takeScreenshot: "SavedPosts"
- tapOn: "Search posts"
- inputText: "Nix"
@ -17,6 +18,12 @@ appId: dev.msfjarvis.claw.android
- waitForAnimationToEnd
- takeScreenshot: "SearchPage"
- back
- tapOn: "Settings"
- tapOn: "Export"
- takeScreenshot: "SettingsPage"
- tapOn:
point: "50%,50%"
- back
- tapOn: "Hottest"
- tapOn: "Open comments"
- waitForAnimationToEnd

View File

@ -13,12 +13,13 @@ function generate_grid() {
"${SCRIPT_DIR}"/run-maestro-flows.sh feature_graphic.yml
# Use imagemagick to stitch the screenshots in a grid
montage -tile 2x0 -geometry +0+0 \
montage -tile 3x0 -geometry +0+0 \
-border 0 -density 300 \
"${SCREENSHOT_DIR}"/HottestPosts.png \
"${SCREENSHOT_DIR}"/CommentsPage.png \
"${SCREENSHOT_DIR}"/SavedPosts.png \
"${SCREENSHOT_DIR}"/SearchPage.png \
"${SCREENSHOT_DIR}"/SettingsPage.png \
"${1:?}.png" || true
# Convert the resulting PNG to WebP