-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui tests for content blocking and toggling protections (#3060)
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
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,54 @@ | ||
# content-blocking.yaml | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- release | ||
|
||
--- | ||
|
||
# Set up | ||
- clearState | ||
- launchApp | ||
- runFlow: | ||
file: ../shared/onboarding.yaml | ||
|
||
# Load Site | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://privacy-test-pages.site/" | ||
- pressKey: Enter | ||
|
||
# Manage onboarding | ||
- runFlow: | ||
file: ../shared/onboarding_browsing.yaml | ||
|
||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://privacy-test-pages.site/tracker-reporting/1major-via-script.html" | ||
- pressKey: Enter | ||
|
||
- assertVisible: "1 major tracker loaded via script src" | ||
- tapOn: | ||
id: PrivacyIcon | ||
- assertVisible: "Protections are ON for this site" | ||
|
||
- assertVisible: "We blocked Google Ads (Google) from loading tracking requests on this page." | ||
|
||
- tapOn: "View Tracker Companies" | ||
- assertVisible: "doubleclick.net" | ||
- assertVisible: "Back" | ||
- tapOn: "Back" | ||
|
||
- assertVisible: "Disable Protections" | ||
- tapOn: "Disable Protections" | ||
- assertVisible: "Site not working? Let us know." | ||
- assertVisible: "Don't Send" | ||
- tapOn: "Don't Send" | ||
|
||
- tapOn: "Refresh Page" | ||
- assertVisible: "1 major tracker loaded via script src" | ||
|
||
- tapOn: | ||
id: PrivacyIcon | ||
- assertVisible: "Protections are OFF for this site" |