From 29934c320744b7dc0668e67319cafc44349d3145 Mon Sep 17 00:00:00 2001 From: Chris Brind Date: Tue, 30 Jul 2024 18:01:10 +0100 Subject: [PATCH] add tab switcher test --- .maestro/release_tests/tabswitcher.yaml | 60 +++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .maestro/release_tests/tabswitcher.yaml diff --git a/.maestro/release_tests/tabswitcher.yaml b/.maestro/release_tests/tabswitcher.yaml new file mode 100644 index 0000000000..0dfa479ae8 --- /dev/null +++ b/.maestro/release_tests/tabswitcher.yaml @@ -0,0 +1,60 @@ +# tabswitcher.yaml +appId: com.duckduckgo.mobile.ios +tags: + - release + +--- + +# Set up +- runFlow: + file: ../shared/setup.yaml + +# Load Site +- assertVisible: + id: "searchEntry" +- tapOn: + id: "searchEntry" +- inputText: "https://privacy-test-pages.site" +- pressKey: Enter + +# Manage onboarding +- runFlow: + file: ../shared/onboarding_browsing.yaml + +- assertVisible: ".*Privacy Test Pages.*" + +# Add tab +- assertVisible: Tab Switcher +- tapOn: Tab Switcher +- assertVisible: ".*Privacy Test Pages.*" +- assertVisible: + id: "Add" +- tapOn: + id: "Add" +- assertVisible: + id: "searchEntry" +- tapOn: + id: "searchEntry" +- inputText: "https://www.search-company.site" +- pressKey: Enter +- assertVisible: "Search engine" + +# Bookmark all +- assertVisible: Tab Switcher +- tapOn: Tab Switcher +- tapOn: "Add all tabs as bookmarks" +- assertVisible: "Bookmark All Tabs?" +- tapOn: "Bookmark" + +# can't really tell if it works, but at least it won't crash +- tapOn: "Toggle between grid and list view" + +# Check bookmarks were added +- tapOn: "Done" + +- tapOn: "Browsing menu" +- tapOn: "Bookmarks" +- assertVisible: "Privacy Test Pages - Home" +- assertVisible: "Ad Click Flow" + +