-
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.
Merge branch 'main' into graeme/sanitize-location-selection
# By bwaresiak (6) and others # Via Bartek Waresiak (1) and others * main: (30 commits) Update VPN support copy (#2894) Settings experiment disabled and new Settings rolled out to all users (#2904) Release 7.122.0-2 (#2909) PrivacyPro terms of service link (#2907) Release 7.122.0-1 (#2906) Fix release branch VPN auth issues (#2903) Disable the autofill survey (#2899) fire RMF message updated notification if we make any change to the store (#2891) Fix maestro config so it runs (#2896) Disable the autofill survey (#2899) Release 7.122.0-0 (#2898) Do not refresh collection view when we are changing the display mode (#2895) Add option to crash the app with exception from debug menu (#2897) Remove default.profraw (#2893) Guard swipe tabs scroll state (#2888) Add debug pixels for data cleanup (#2890) Bump rexml from 3.2.6 to 3.2.8 (#2866) Remove VPN waitlist code (#2795) Privacy Pro Follow ups (#2882) Clean up subscriptionFeature on init (#2880) ... # Conflicts: # DuckDuckGo.xcodeproj/project.pbxproj # DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
- Loading branch information
Showing
233 changed files
with
5,293 additions
and
4,364 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 |
---|---|---|
|
@@ -69,7 +69,7 @@ jobs: | |
name: Sync End To End Tests | ||
needs: build-for-sync-end-to-end-tests | ||
runs-on: macos-13-xlarge | ||
timeout-minutes: 60 | ||
timeout-minutes: 90 | ||
strategy: | ||
matrix: | ||
os-version: [15, 16, 17] | ||
|
@@ -92,20 +92,25 @@ jobs: | |
name: duckduckgo-ios-app | ||
path: DerivedData/Build/Products/Debug-iphonesimulator/DuckDuckGo.app | ||
|
||
- name: Install Maestro | ||
run: | | ||
export MAESTRO_VERSION=1.36.0; curl -Ls "https://get.maestro.mobile.dev" | bash | ||
- name: Overwrite default config with sync one | ||
run: | | ||
cp .maestro/config-sync .maestro/config.yaml | ||
- name: Sync e2e tests | ||
uses: mobile-dev-inc/[email protected] | ||
with: | ||
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }} | ||
app-file: DerivedData/Build/Products/Debug-iphonesimulator/DuckDuckGo.app | ||
ios-version: ${{ matrix.os-version }} | ||
workspace: .maestro | ||
include-tags: sync | ||
env: | | ||
CODE=${{ steps.sync-recovery-code.outputs.recovery-code }} | ||
run: | | ||
export PATH="$PATH":"$HOME/.maestro/bin"; maestro cloud --apiKey ${{ secrets.MAESTRO_CLOUD_API_KEY }} --env=CODE=${{ steps.sync-recovery-code.outputs.recovery-code }} --fail-on-timeout=true --timeout=150 --ios-version=${{ matrix.os-version }} --include-tags=sync DerivedData/Build/Products/Debug-iphonesimulator/DuckDuckGo.app .maestro/ | ||
- name: Reset config | ||
run: | | ||
git checkout .maestro/config.yaml | ||
notify-failure: | ||
name: Notify on failure | ||
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') }} | ||
if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.ref_name == 'main' }} | ||
needs: [build-for-sync-end-to-end-tests, sync-end-to-end-tests] | ||
runs-on: ubuntu-latest | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# swipe_tabs.yaml | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- release | ||
|
||
--- | ||
|
||
# Set up | ||
- clearState | ||
- launchApp | ||
- runFlow: | ||
when: | ||
visible: | ||
text: "Let’s Do It!" | ||
index: 0 | ||
file: ../shared/onboarding.yaml | ||
|
||
# Load Site | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://www.search-company.site" | ||
- pressKey: Enter | ||
|
||
# Manage onboarding | ||
- runFlow: | ||
when: | ||
visible: | ||
text: "Got It" | ||
index: 0 | ||
file: ../shared/onboarding_browsing.yaml | ||
|
||
- assertVisible: "Search engine" | ||
|
||
# Open New Tab | ||
- tapOn: "Tab Switcher" | ||
- tapOn: | ||
id: Add | ||
|
||
# Perform a search | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://privacy-test-pages.site/features/favicon/" | ||
- pressKey: Enter | ||
|
||
- assertVisible: "Favicon Tests" | ||
|
||
# Swipe to first tab | ||
- swipe: | ||
start: 10%, 10% | ||
end: 90%, 10% | ||
|
||
- assertVisible: "Search engine" | ||
|
||
# Ensure address bar still works | ||
- assertVisible: | ||
id: "searchEntry" | ||
- tapOn: | ||
id: "searchEntry" | ||
- inputText: "https://privacy-test-pages.site/features/download/" | ||
- pressKey: Enter | ||
|
||
- assertVisible: "Download PDF" | ||
|
||
# TODO when settings experiment finishes update this test to open settings and move bar to bottom then test swipe again |
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,15 @@ | ||
appStartup: | ||
enabled: false | ||
appSize: | ||
enabled: false | ||
flows: | ||
- "**" | ||
executionOrder: | ||
flowsOrder: | ||
- 01_create_account | ||
- 02_login_account | ||
- 03_recover_account | ||
- 04_sync_data_setup | ||
- 05_sync_data_check | ||
- 06_delete_account | ||
|
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ appStartup: | |
appSize: | ||
enabled: false | ||
flows: | ||
- "**" | ||
- "**" | ||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- sync | ||
name: 01_create_account | ||
|
||
--- | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- sync | ||
name: 02_login_account | ||
|
||
--- | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- sync | ||
name: 03_recover_account | ||
|
||
--- | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- sync | ||
name: 05_sync_data_check | ||
|
||
--- | ||
# IMPORTANT: This test is strictly related to 04_sync_data_setup | ||
# and it will fail if 04 is not executed before. | ||
# The test is split in two different flow to accomodate | ||
# for Maestro CI max execution time. | ||
# Clear and launch | ||
- clearState | ||
- launchApp | ||
|
||
# Run onboarding Flow | ||
- runFlow: | ||
when: | ||
visible: | ||
text: "Let’s Do It!" | ||
index: 0 | ||
file: ../shared/onboarding.yaml | ||
|
||
# Copy Recovery Code | ||
- tapOn: Settings | ||
- runFlow: | ||
file: ../shared/copy_recovery_code_from_settings.yaml | ||
env: | ||
CODE: ${CODE} | ||
|
||
# Set Internal User | ||
- runFlow: | ||
file: ../shared/set_internal_user_from_settings.yaml | ||
|
||
# Login | ||
- assertVisible: Sync & Backup | ||
- tapOn: Sync & Backup | ||
- runFlow: | ||
file: ../shared/sync_login.yaml | ||
- assertVisible: Sync & Backup | ||
|
||
# Verify bookmarks have been merged | ||
- tapOn: Settings | ||
- runFlow: | ||
file: ../shared/sync_verify_bookmarks.yaml | ||
|
||
# Verify favorites are unified | ||
- tapOn: Done | ||
- tapOn: Settings | ||
- runFlow: | ||
file: ../shared/sync_verify_unified_favorites.yaml | ||
|
||
# Verify logins | ||
- tapOn: Settings | ||
- runFlow: | ||
file: ../shared/sync_verify_logins.yaml | ||
|
2 changes: 1 addition & 1 deletion
2
.maestro/sync_tests/05_delete_account.yaml → .maestro/sync_tests/06_delete_account.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
appId: com.duckduckgo.mobile.ios | ||
tags: | ||
- sync | ||
|
||
name: 06_delete_account | ||
--- | ||
|
||
# Clear and launch | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
MARKETING_VERSION = 7.121.0 | ||
MARKETING_VERSION = 7.122.0 |
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
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
Oops, something went wrong.