Skip to content

Commit

Permalink
Update UI tests for onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Dec 6, 2024
1 parent c8d2e97 commit 79034fd
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
1 change: 1 addition & 0 deletions .maestro/onboarding_tests/01_onboarding_contextual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ tags:
file: ../shared/setup.yaml
env:
ONBOARDING_COMPLETED: "false"
APP_VARIANT: "mh"

# Handle Search Suggestions
- assertVisible: "Ready to get started?\nTry a search!"
Expand Down
54 changes: 54 additions & 0 deletions .maestro/onboarding_tests/02_onboarding_add_to_dock_intro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
appId: com.duckduckgo.mobile.ios
tags:
- onboarding

---

# Set up
- runFlow:
file: ../shared/setup.yaml
env:
ONBOARDING_COMPLETED: "false"
APP_VARIANT: "mk"

# 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!"


Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
appId: com.duckduckgo.mobile.ios
tags:
- onboarding

---

# Set up
- runFlow:
file: ../shared/setup.yaml
env:
ONBOARDING_COMPLETED: "false"
APP_VARIANT: "mo"

# 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: "Add me to your Dock!"
- assertVisible: "Show Me How"
- tapOn: "Start Browsing"


8 changes: 8 additions & 0 deletions .maestro/shared/onboarding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ appId: com.duckduckgo.mobile.ios
- tapOn:
text: "Skip"

# Add To Dock Flow
- runFlow:
when:
visible: "Add me to your Dock!"
commands:
- assertVisible: "Show Me How"
- tapOn: "Skip"

# Customization Flow

- assertVisible: "Which color looks best on me?"
Expand Down

0 comments on commit 79034fd

Please sign in to comment.