-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Bartek Waresiak <[email protected]>
- Loading branch information
Showing
6 changed files
with
133 additions
and
18 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,102 @@ | ||
# autoclear.yaml | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- release | ||
|
||
--- | ||
|
||
# Set up | ||
- clearState | ||
- launchApp: | ||
appId: "com.duckduckgo.mobile.ios" | ||
arguments: | ||
"autoclear-ui-test": true | ||
|
||
- runFlow: | ||
file: ../shared/onboarding.yaml | ||
|
||
# Enable autoclear | ||
|
||
- tapOn: "Settings" | ||
- assertVisible: "Default Browser" | ||
- scrollUntilVisible: | ||
centerElement: true | ||
element: | ||
text: "Data Clearing" | ||
- assertVisible: "Data Clearing" | ||
- tapOn: "Data Clearing" | ||
- assertVisible: "Off" | ||
- assertVisible: "Automatically Clear Data" | ||
- tapOn: "Automatically Clear Data" | ||
- assertVisible: | ||
id: "AutoclearEnabledToggle" | ||
- tapOn: | ||
id: "AutoclearEnabledToggle" | ||
- assertVisible: "App Exit, Inactive for 5 Minutes" | ||
- tapOn: "App Exit, Inactive for 5 Minutes" | ||
- tapOn: "Data Clearing" # Uses the name of the previous page | ||
- tapOn: "Settings" | ||
- tapOn: "Done" | ||
|
||
# Load Site | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://privacy-test-pages.site/features/local-storage.html" | ||
- pressKey: Enter | ||
|
||
# Manage onboarding | ||
- runFlow: | ||
file: ../shared/onboarding_browsing.yaml | ||
|
||
# Add a cookie | ||
- assertVisible: "Storage Counter: undefined" | ||
- assertVisible: "Cookie Counter:" | ||
- assertNotVisible: "Cookie Counter: 1" | ||
- assertNotVisible: "Storage Counter: 1" | ||
- assertVisible: "Manual Increment" | ||
- tapOn: "Manual Increment" | ||
- assertVisible: "Cookie Counter: 1" | ||
- assertVisible: "Storage Counter: 1" | ||
|
||
# Load a new tab | ||
- longPressOn: "Tab Switcher" | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://example.com" | ||
- pressKey: Enter | ||
|
||
# Go home and hover there a bit | ||
- pressKey: Home | ||
|
||
- repeat: | ||
times: 3 | ||
commands: | ||
- swipe: | ||
start: 50%, 50% | ||
end: 10%, 50% | ||
- swipe: | ||
start: 10%, 50% | ||
end: 50%, 50% | ||
|
||
- tapOn: "DuckDuckGo" | ||
|
||
- assertNotVisible: "https://example.com/" | ||
- assertVisible: "Search or enter address" | ||
- tapOn: "Tab Switcher" | ||
- assertNotVisible: "Example Domain" | ||
- assertVisible: "1 Private Tab" | ||
- tapOn: "Done" | ||
|
||
# Load Site | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://privacy-test-pages.site/features/local-storage.html" | ||
- pressKey: Enter | ||
- assertVisible: "Storage Counter: undefined" | ||
- assertVisible: "Cookie Counter:" |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ tags: | |
# Set up | ||
- clearState | ||
- launchApp | ||
|
||
- runFlow: | ||
file: ../shared/onboarding.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
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
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
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