From ed450a70f071aaa628cee554d94d28e3c146e7c4 Mon Sep 17 00:00:00 2001 From: Chris Brind Date: Wed, 25 Sep 2024 17:06:30 +0100 Subject: [PATCH 1/3] add test for tabs in suggestions --- .maestro/release_tests/tabs.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.maestro/release_tests/tabs.yaml b/.maestro/release_tests/tabs.yaml index 40ae909d64..25df531196 100644 --- a/.maestro/release_tests/tabs.yaml +++ b/.maestro/release_tests/tabs.yaml @@ -46,6 +46,27 @@ tags: - assertVisible: ".*Privacy Test Pages.*" - tapOn: "Refresh Page" +# Suggestions +- assertVisible: + id: "searchEntry" + +- tapOn: + id: "searchEntry" +- inputText: "ad click" +- assertVisible: "Switch to Tab.*search-company.site" +- tapOn: "Switch to Tab.*search-company.site" +- assertVisible: ".*Ad Click Flow.*" + +- tapOn: + id: "searchEntry" +- inputText: "privacy" +- assertVisible: "Switch to Tab.*privacy-test-pages.site" +- tapOn: "Switch to Tab.*privacy-test-pages.site" +- assertVisible: ".*Privacy Test Pages.*" + +# Needed or else test can't see the Tab Switcher button for some reason +- tapOn: "Refresh Page" + # Close Tab - assertVisible: Tab Switcher - tapOn: Tab Switcher From ca0bd1c61cceb183aed2491cfde5405790990220 Mon Sep 17 00:00:00 2001 From: Chris Brind Date: Wed, 25 Sep 2024 17:19:16 +0100 Subject: [PATCH 2/3] check switching to tab from the new tab page closes the new tab page --- .maestro/release_tests/tabs.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.maestro/release_tests/tabs.yaml b/.maestro/release_tests/tabs.yaml index 25df531196..72618da2e2 100644 --- a/.maestro/release_tests/tabs.yaml +++ b/.maestro/release_tests/tabs.yaml @@ -78,3 +78,26 @@ tags: - assertNotVisible: ".*Ad Click Flow.*" - assertVisible: "1 Private Tab" - tapOn: "Done" + +# Switch tabs from new tab +- tapOn: "Refresh Page" +- assertVisible: Tab Switcher +- tapOn: Tab Switcher +- assertVisible: ".*Privacy Test Pages.*" +- assertVisible: + id: "Add" +- tapOn: + id: "Add" +- assertVisible: + id: "searchEntry" +- tapOn: + id: "searchEntry" +- inputText: "privacy" +- assertVisible: "Switch to Tab.*privacy-test-pages.site" +- tapOn: "Switch to Tab.*privacy-test-pages.site" +- assertVisible: ".*Privacy Test Pages.*" +- tapOn: "Refresh Page" +- assertVisible: Tab Switcher +- tapOn: Tab Switcher +- assertVisible: "1 Private Tab" + From 676b9523e0bce3a774b0e3402d2b00e0019963a6 Mon Sep 17 00:00:00 2001 From: Chris Brind Date: Wed, 25 Sep 2024 17:32:27 +0100 Subject: [PATCH 3/3] remove if from the steps --- .github/workflows/end-to-end.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/end-to-end.yml b/.github/workflows/end-to-end.yml index 3576b629c8..3e6b9b658b 100644 --- a/.github/workflows/end-to-end.yml +++ b/.github/workflows/end-to-end.yml @@ -103,7 +103,6 @@ jobs: steps: - name: Create Asana task when workflow failed - if: ${{ failure() }} run: | curl -s "https://app.asana.com/api/1.0/tasks" \ --header "Accept: application/json" \