Skip to content

Commit

Permalink
Expand maestro tests (#2691)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaresiak authored Apr 5, 2024
1 parent c7fefb8 commit e1105b7
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
65 changes: 65 additions & 0 deletions .maestro/browser_features/opening_tabs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# tabs.yaml
appId: com.duckduckgo.mobile.ios
tags:
- release

---

# Set up
- clearState
- launchApp
- runFlow:
when:
visible:
text: "Let’s Do It!"
index: 0
file: ../shared/onboarding.yaml

# Load Site
- assertVisible:
id: "searchEntry"
- tapOn:
id: "searchEntry"
- inputText: "https://privacy-test-pages.site"
- pressKey: Enter

# Manage onboarding
- runFlow:
when:
visible:
text: "Got It"
index: 0
file: ../shared/onboarding_browsing.yaml

- assertVisible: ".*Privacy Test Pages.*"
- tapOn: "Links Open in New Window"

# Validate there's one tab
- runFlow:
file: ../shared/check_number_of_tabs.yaml
env:
TITLE: "1 Private Tab"

- tapOn: "Opens in new window"
- runFlow:
file: ../shared/check_number_of_tabs.yaml
env:
TITLE: "2 Private Tabs"

- tapOn: "Close"
- assertVisible: "A link that opens in a new window"
- tapOn: "Opens in new window"
- runFlow:
file: ../shared/check_number_of_tabs.yaml
env:
TITLE: "2 Private Tabs"

- tapOn: "Browse Back"
- assertVisible: "A link that opens in a new window"

# Workaround - for some reason Tab Switcher button is not found by maestro at this point.
- tapOn: "Refresh Page"
- runFlow:
file: ../shared/check_number_of_tabs.yaml
env:
TITLE: "1 Private Tab"
2 changes: 1 addition & 1 deletion .maestro/data_clearing_tests/01_fire_proofing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
appId: com.duckduckgo.mobile.ios
tags:
- dataclearing
- privacy

---

Expand Down
7 changes: 7 additions & 0 deletions .maestro/shared/check_number_of_tabs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appId: com.duckduckgo.mobile.ios
---

- assertVisible: "Tab Switcher"
- tapOn: "Tab Switcher"
- assertVisible: ${TITLE}
- tapOn: "Done"

0 comments on commit e1105b7

Please sign in to comment.