-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task/Issue URL: https://app.asana.com/0/0/1207007045746915/f https://app.asana.com/0/856498667320406/1207007045746915
- Loading branch information
Showing
3 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
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,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" |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- dataclearing | ||
- privacy | ||
|
||
--- | ||
|
||
|
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,7 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
--- | ||
|
||
- assertVisible: "Tab Switcher" | ||
- tapOn: "Tab Switcher" | ||
- assertVisible: ${TITLE} | ||
- tapOn: "Done" |