From 63a18b721a332072afd7b32c264300f84c0bab6c Mon Sep 17 00:00:00 2001 From: Christopher Brind Date: Thu, 26 Sep 2024 00:06:04 +0100 Subject: [PATCH] add assertions for tabs in suggestions (#3394) Task/Issue URL: https://app.asana.com/0/392891325557410/1208350972189287/f Tech Design URL: CC: @ayoy **Description**: Adds assertions that validate tabs in suggestions and switching tabs Fixes failure check for sending notification in the workflow **Steps to test this PR**: 1. Check this test run passes: https://github.com/duckduckgo/iOS/actions/runs/11037282165 (However End to End tests have not passed for some time so as long as tabs.yaml passes that is the main thing) 3. Run the release/tabs.yaml test locally --- .github/workflows/end-to-end.yml | 1 - .maestro/release_tests/tabs.yaml | 44 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 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" \ diff --git a/.maestro/release_tests/tabs.yaml b/.maestro/release_tests/tabs.yaml index 40ae909d64..72618da2e2 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 @@ -57,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" +