diff --git a/.maestro/browser_features/opening_tabs.yaml b/.maestro/browser_features/opening_tabs.yaml new file mode 100644 index 0000000000..8b2aa60e1a --- /dev/null +++ b/.maestro/browser_features/opening_tabs.yaml @@ -0,0 +1,65 @@ +# tabs.yaml +appId: com.duckduckgo.mobile.ios +tags: + - release + +--- + +# Set up +- clearState +- launchApp +- runFlow: + when: + visible: + text: "Let’s Do It!" + index: 0 + file: ../shared/onboarding.yaml + +# Load Site +- assertVisible: + id: "searchEntry" +- tapOn: + id: "searchEntry" +- inputText: "https://privacy-test-pages.site" +- pressKey: Enter + +# Manage onboarding +- runFlow: + when: + visible: + text: "Got It" + index: 0 + file: ../shared/onboarding_browsing.yaml + +- assertVisible: ".*Privacy Test Pages.*" +- tapOn: "Links Open in New Window" + +# Validate there's one tab +- runFlow: + file: ../shared/check_number_of_tabs.yaml + env: + TITLE: "1 Private Tab" + +- tapOn: "Opens in new window" +- runFlow: + file: ../shared/check_number_of_tabs.yaml + env: + TITLE: "2 Private Tabs" + +- tapOn: "Close" +- assertVisible: "A link that opens in a new window" +- tapOn: "Opens in new window" +- runFlow: + file: ../shared/check_number_of_tabs.yaml + env: + TITLE: "2 Private Tabs" + +- tapOn: "Browse Back" +- assertVisible: "A link that opens in a new window" + +# Workaround - for some reason Tab Switcher button is not found by maestro at this point. +- tapOn: "Refresh Page" +- runFlow: + file: ../shared/check_number_of_tabs.yaml + env: + TITLE: "1 Private Tab" diff --git a/.maestro/data_clearing_tests/01_fire_proofing.yml b/.maestro/data_clearing_tests/01_fire_proofing.yml index 706fabe76e..9dd1d4b5a3 100644 --- a/.maestro/data_clearing_tests/01_fire_proofing.yml +++ b/.maestro/data_clearing_tests/01_fire_proofing.yml @@ -1,6 +1,6 @@ appId: com.duckduckgo.mobile.ios tags: - - dataclearing + - privacy --- diff --git a/.maestro/shared/check_number_of_tabs.yaml b/.maestro/shared/check_number_of_tabs.yaml new file mode 100644 index 0000000000..1ee4302570 --- /dev/null +++ b/.maestro/shared/check_number_of_tabs.yaml @@ -0,0 +1,7 @@ +appId: com.duckduckgo.mobile.ios +--- + +- assertVisible: "Tab Switcher" +- tapOn: "Tab Switcher" +- assertVisible: ${TITLE} +- tapOn: "Done" \ No newline at end of file