From ae06a768fe9583d75a419b89f97960520bad183d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 19 Jan 2024 17:49:44 +0530 Subject: [PATCH] maestro: add settings page to feature graphic --- maestro/feature_graphic.yml | 7 +++++++ scripts/refresh-feature-graphic.sh | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/maestro/feature_graphic.yml b/maestro/feature_graphic.yml index 08568afc..4a928235 100644 --- a/maestro/feature_graphic.yml +++ b/maestro/feature_graphic.yml @@ -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 diff --git a/scripts/refresh-feature-graphic.sh b/scripts/refresh-feature-graphic.sh index 9d2d236d..3d1915cb 100755 --- a/scripts/refresh-feature-graphic.sh +++ b/scripts/refresh-feature-graphic.sh @@ -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