Skip to content

Commit

Permalink
Add query parameter UI tests (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshliebe authored Jul 14, 2023
1 parent d16b2e8 commit 8dae809
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 0 deletions.
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"
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: ""
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"
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"

0 comments on commit 8dae809

Please sign in to comment.