Skip to content

Commit

Permalink
Move privacy maestro test to use tags (#3459)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/0/1205258019391734/f

### Description
Move e2e privacy test to use shared onboarding flow, and use the tag `privacyTest`

### Steps to test this PR
https://github.com/duckduckgo/Android/actions/runs/5868616041/job/15911849417 passes
  • Loading branch information
aitorvs authored Aug 15, 2023
1 parent d451b7f commit 78577ca
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 81 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:
name: ${{ github.sha }}
app-file: apk/release.apk
android-api-level: 30
workspace: .maestro/privacy_tests
workspace: .maestro
include-tags: privacyTest

- name: Release Tests
if: always()
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/privacy-dashboard-end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ jobs:
api-key: ${{ secrets.MOBILE_DEV_API_KEY }}
name: ${{ github.sha }}
app-file: apk/release.apk
workspace: .maestro/privacy_tests
workspace: .maestro
include-tags: privacyTest
2 changes: 1 addition & 1 deletion .github/workflows/sync-end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'

- name: Create folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ appId: com.duckduckgo.mobile.android
- tapOn: "Allow"
- assertVisible:
text: ".*Welcome to DuckDuckGo!.*"
optional: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ appId: com.duckduckgo.mobile.android
- tapOn: "Don’t allow"
- assertVisible:
text: ".*Welcome to DuckDuckGo!.*"
optional: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://privacy-test-pages.glitch.me/privacy-protections/query-parameters/"
- pressKey: Enter
- assertVisible:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://privacy-test-pages.glitch.me/privacy-protections/query-parameters/"
- pressKey: Enter
- assertVisible:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://privacy-test-pages.glitch.me/privacy-protections/query-parameters/"
- pressKey: Enter
- assertVisible:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://privacy-test-pages.glitch.me/privacy-protections/query-parameters/"
- pressKey: Enter
- assertVisible:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down
9 changes: 3 additions & 6 deletions .maestro/privacy_tests/2_-_Single-site,_new-tab,_session.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down
9 changes: 3 additions & 6 deletions .maestro/privacy_tests/6_-_Multi-tab.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down
9 changes: 3 additions & 6 deletions .maestro/privacy_tests/7_-_Browser_restart_mid-session.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down
9 changes: 3 additions & 6 deletions .maestro/privacy_tests/8_-_Navigation_with_back_forward.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down
9 changes: 3 additions & 6 deletions .maestro/privacy_tests/9_-_Navigation_with_refresh.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
appId: com.duckduckgo.mobile.android
tags:
- privacyTest
---
- launchApp:
clearState: true
- assertVisible:
text: ".*Not to worry! Searching and browsing privately.*"
- tapOn: "let's do it!"
- tapOn: "cancel"
- assertVisible:
text: ".*I'll also upgrade the security of your connection if possible.*"
- runFlow: ../shared/onboarding.yaml
- inputText: "https://www.search-company.site/#ad-id-5"
- pressKey: Enter
- assertVisible:
Expand Down

0 comments on commit 78577ca

Please sign in to comment.