-
Notifications
You must be signed in to change notification settings - Fork 927
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add query parameter UI tests (#3342)
- Loading branch information
Showing
4 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.maestro/privacy_tests/10_-_Query_Parameters,_utm_source_and_1_standard_parameter.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,28 @@ | ||
appId: com.duckduckgo.mobile.android | ||
--- | ||
- 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.*" | ||
- inputText: "https://privacy-test-pages.glitch.me/privacy-protections/query-parameters/" | ||
- pressKey: Enter | ||
- assertVisible: | ||
text: ".*Got It.*" | ||
- tapOn: | ||
text: "HIDE" | ||
- assertVisible: | ||
text: "HIDE TIPS FOREVER" | ||
- tapOn: | ||
text: "HIDE TIPS FOREVER" | ||
- assertVisible: | ||
text: "Link with utm_source and 1 standard parameter" | ||
- tapOn: | ||
text: "Link with utm_source and 1 standard parameter" | ||
- assertNotVisible: | ||
text: "utm_source=something&q=other" | ||
- assertVisible: | ||
text: "q=other" |
28 changes: 28 additions & 0 deletions
28
.maestro/privacy_tests/11_-_Query_Parameters,_utm_source_and_utm_medium.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,28 @@ | ||
appId: com.duckduckgo.mobile.android | ||
--- | ||
- 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.*" | ||
- inputText: "https://privacy-test-pages.glitch.me/privacy-protections/query-parameters/" | ||
- pressKey: Enter | ||
- assertVisible: | ||
text: ".*Got It.*" | ||
- tapOn: | ||
text: "HIDE" | ||
- assertVisible: | ||
text: "HIDE TIPS FOREVER" | ||
- tapOn: | ||
text: "HIDE TIPS FOREVER" | ||
- assertVisible: | ||
text: "Link with utm_source and utm_medium" | ||
- tapOn: | ||
text: "Link with utm_source and utm_medium" | ||
- assertNotVisible: | ||
text: "utm_source=something&utm_medium=somethingelse" | ||
- assertVisible: | ||
text: "" |
28 changes: 28 additions & 0 deletions
28
...stro/privacy_tests/12_-_Query_Parameters,_fbclid,_fb_source_and_1_standard_parameter.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,28 @@ | ||
appId: com.duckduckgo.mobile.android | ||
--- | ||
- 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.*" | ||
- inputText: "https://privacy-test-pages.glitch.me/privacy-protections/query-parameters/" | ||
- pressKey: Enter | ||
- assertVisible: | ||
text: ".*Got It.*" | ||
- tapOn: | ||
text: "HIDE" | ||
- assertVisible: | ||
text: "HIDE TIPS FOREVER" | ||
- tapOn: | ||
text: "HIDE TIPS FOREVER" | ||
- assertVisible: | ||
text: "Link with fbclid, fb_source and 1 standard parameter" | ||
- tapOn: | ||
text: "Link with fbclid, fb_source and 1 standard parameter" | ||
- assertNotVisible: | ||
text: "fbclid=12345&fb_source=someting&u=14" | ||
- assertVisible: | ||
text: "u=14" |
26 changes: 26 additions & 0 deletions
26
.maestro/privacy_tests/13_-_Query_Parameters,_link_which_should_not_be_rewritten.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,26 @@ | ||
appId: com.duckduckgo.mobile.android | ||
--- | ||
- 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.*" | ||
- inputText: "https://privacy-test-pages.glitch.me/privacy-protections/query-parameters/" | ||
- pressKey: Enter | ||
- assertVisible: | ||
text: ".*Got It.*" | ||
- tapOn: | ||
text: "HIDE" | ||
- assertVisible: | ||
text: "HIDE TIPS FOREVER" | ||
- tapOn: | ||
text: "HIDE TIPS FOREVER" | ||
- assertVisible: | ||
text: "Link which should not be rewritten" | ||
- tapOn: | ||
text: "Link which should not be rewritten" | ||
- assertVisible: | ||
text: "q=something&id=1234" |