-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task/Issue URL: https://app.asana.com/0/392891325557410/1207589902638374/f Tech Design URL: CC: @bwaresiak Description: Adds tests for backgrounding the app. Steps to test this PR: Verify end to end test job as passed https://github.com/duckduckgo/iOS/actions/runs/9766061419 In terminal cd into .maestro Run setup_ui_tests.sh Optional: run all the release tests in one go using: run_tests_tests.sh release_tests Run run_ui_tests.sh release_tests/backgrounding.yaml
- Loading branch information
Showing
2 changed files
with
76 additions
and
1 deletion.
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,75 @@ | ||
# backgrounding.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 | ||
|
||
# Go home and hover there a bit | ||
- pressKey: Home | ||
- swipe: | ||
start: 50%, 50% | ||
end: 10%, 50% | ||
- swipe: | ||
start: 10%, 50% | ||
end: 50%, 50% | ||
- tapOn: "DuckDuckGo" | ||
|
||
# Validate | ||
- assertVisible: "Privacy Test Pages" | ||
- assertVisible: "Browsing menu" | ||
- tapOn: "Browsing menu" | ||
- assertVisible: "Add Bookmark" | ||
- tapOn: "Add Bookmark" | ||
- tapOn: | ||
id: PrivacyIcon | ||
- assertVisible: "Protections are ON for this site" | ||
- tapOn: "Done" | ||
|
||
# Run background assertion from new tab page | ||
- assertVisible: "Tab Switcher" | ||
- tapOn: "Tab Switcher" | ||
- tapOn: "New Tab" | ||
|
||
# Go home and hover there a bit | ||
- pressKey: Home | ||
- swipe: | ||
start: 50%, 50% | ||
end: 10%, 50% | ||
- swipe: | ||
start: 10%, 50% | ||
end: 50%, 50% | ||
- tapOn: "DuckDuckGo" | ||
|
||
# Check menus | ||
- tapOn: "Cancel" | ||
- tapOn: "Settings" | ||
- assertVisible: "Default Browser" | ||
- tapOn: "Done" | ||
|
||
- assertVisible: "Bookmarks" | ||
- tapOn: "Bookmarks" | ||
- assertVisible: "Privacy Test Pages - Home" | ||
- tapOn: "Done" | ||
|
||
- assertVisible: "Tab Switcher" | ||
- tapOn: "Tab Switcher" | ||
|
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