Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add query parameter UI tests #3342

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"