-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor logic to support defining App variants in tests and add onbo…
…arding tests
- Loading branch information
1 parent
2f38f75
commit 5e6b0bd
Showing
9 changed files
with
322 additions
and
26 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
.maestro/onboarding_tests/01_control_group_onboarding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- onboarding | ||
|
||
--- | ||
|
||
# Set up | ||
- runFlow: | ||
file: ../shared/setup.yaml | ||
env: | ||
ONBOARDING_COMPLETED: "false" | ||
ONBOARDING_VARIANT: "ma" | ||
|
||
# Load Site | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://www.duckduckgo.com" | ||
- pressKey: Enter | ||
|
||
# Handle Onboarding | ||
- assertVisible: "Got It" | ||
- assertVisible: "Hide" | ||
- tapOn: "Got It" | ||
- assertVisible: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
- assertVisible: "You’ve got this!\n\nRemember: Every time you browse with me, a creepy ad loses its wings. 👍" |
33 changes: 33 additions & 0 deletions
33
.maestro/onboarding_tests/02_control_group_hide_onboarding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- onboarding | ||
|
||
--- | ||
|
||
# Set up | ||
- runFlow: | ||
file: ../shared/setup.yaml | ||
env: | ||
ONBOARDING_COMPLETED: "false" | ||
ONBOARDING_VARIANT: "ma" | ||
|
||
# Load Site | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://www.duckduckgo.com" | ||
- pressKey: Enter | ||
|
||
# Handle Onboarding | ||
- assertVisible: "Got It" | ||
- assertVisible: "Hide" | ||
- tapOn: "Hide" | ||
- assertVisible: "Hide Tips Forever" | ||
- tapOn: "Hide Tips Forever" | ||
|
||
# Handle Fire Button | ||
- assertVisible: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
- assertNotVisible: "You’ve got this!\n\nRemember: Every time you browse with me, a creepy ad loses its wings. 👍" |
52 changes: 52 additions & 0 deletions
52
.maestro/onboarding_tests/03_experiment_group_linear_onboarding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- onboarding | ||
|
||
--- | ||
|
||
# Set up | ||
- runFlow: | ||
file: ../shared/setup.yaml | ||
env: | ||
ONBOARDING_COMPLETED: "false" | ||
ONBOARDING_VARIANT: "mb" | ||
|
||
# Handle Search Suggestions | ||
- assertVisible: "Ready to get started?\nTry a search!" | ||
- assertVisible: "Surprise Me!" | ||
- tapOn: "Surprise Me!" | ||
|
||
# Handle First Dax Dialog | ||
- assertVisible: "That’s DuckDuckGo Search. Private. Fast. Fewer ads." | ||
- assertVisible: "Got It!" | ||
- tapOn: "Got It!" | ||
|
||
# Handle Site Suggestions | ||
- assertVisible: "Next, try visiting a site!" | ||
- assertVisible: "Surprise Me!" | ||
- tapOn: "Surprise Me!" | ||
|
||
# Handle Privacy Dashboard | ||
- assertVisible: "Got It!" | ||
- tapOn: | ||
point: "6%,10%" # Shield icon. | ||
- assertVisible: | ||
text: "View Tracker Companies" | ||
- assertVisible: | ||
text: "Done" | ||
- tapOn: "Done" | ||
|
||
# Handle Fire Message | ||
- assertVisible: "Got It!" | ||
- tapOn: "Got It!" | ||
- assertVisible: "Instantly clear your browsing activity with the Fire Button.\n\nGive it a try! 🔥" | ||
|
||
# Handle Fire Button | ||
- assertVisible: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
- tapOn: "Close Tabs and Clear Data" | ||
|
||
# Handle End of Journey Dialog | ||
- assertVisible: "You’ve got this!" | ||
- assertVisible: "High five!" | ||
- tapOn: "High five!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.