-
Notifications
You must be signed in to change notification settings - Fork 949
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/5.190.0' into main
- Loading branch information
Showing
201 changed files
with
3,487 additions
and
1,114 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,76 @@ | ||
name: Autofill Feature Critical Path End-to-End tests | ||
|
||
on: | ||
schedule: | ||
- cron: '30 6 * * *' # run at 6.30 AM UTC | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
instrumentation_tests: | ||
runs-on: ubuntu-latest | ||
name: Autofill Critical Path End-to-End Tests | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Create folder | ||
if: always() | ||
run: mkdir apk | ||
|
||
- name: Decode keys | ||
uses: davidSchuppa/base64Secret-toFile-action@v2 | ||
with: | ||
secret: ${{ secrets.FAKE_RELEASE_PROPERTIES }} | ||
fileName: ddg_android_build.properties | ||
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/ | ||
|
||
- name: Decode key file | ||
uses: davidSchuppa/base64Secret-toFile-action@v2 | ||
with: | ||
secret: ${{ secrets.FAKE_RELEASE_KEY }} | ||
fileName: android | ||
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/ | ||
|
||
- name: Assemble APK which does not require auth to use Autofill | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: assemblePlayRelease -Pautofill-disable-auth-requirement -Pforce-default-variant -x lint | ||
|
||
- name: Move APK to new folder | ||
if: always() | ||
run: find . -name "*.apk" -exec mv '{}' apk/release.apk \; | ||
|
||
- name: Autofill Critical Path E2E Flows | ||
uses: mobile-dev-inc/[email protected] | ||
with: | ||
api-key: ${{ secrets.MOBILE_DEV_API_KEY }} | ||
name: ${{ github.sha }} | ||
app-file: apk/release.apk | ||
android-api-level: 30 | ||
workspace: .maestro | ||
include-tags: autofillNoAuthTests | ||
|
||
- name: Create Asana task when workflow failed | ||
if: ${{ failure() }} | ||
id: create-failure-task | ||
uses: duckduckgo/[email protected] | ||
with: | ||
asana-pat: ${{ secrets.GH_ASANA_SECRET }} | ||
asana-project: ${{ vars.GH_ANDROID_APP_PROJECT_ID }} | ||
asana-section: ${{ vars.GH_ANDROID_APP_INCOMING_SECTION_ID }} | ||
asana-task-name: GH Workflow Failure - Autofill Critical Path E2E Flows | ||
asana-task-description: Autofill critical path tests have failed. See https://github.com/duckduckgo/Android/actions/runs/${{ github.run_id }} | ||
action: 'create-asana-task' |
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,19 +1,12 @@ | ||
appId: com.duckduckgo.mobile.android | ||
name: "Autofill: Run all tests" | ||
tags: | ||
- autofillNoAuthTests | ||
--- | ||
# Pre-requisite: the app is installed on an autofill-eligible device with a special build flag set to bypass device-authentication requirement | ||
# This should only be run locally, as Maestro cloud will likely timeout trying to run them all as one flow. | ||
|
||
- launchApp: | ||
clearState: true | ||
- runFlow: ../shared/onboarding.yaml | ||
- runFlow: 1_autofill_shown_in_overflow.yaml | ||
|
||
# Everything below requires a device has device-level authentication set (e.g., a PIN/Password etc...) | ||
- runFlow: 2_autofill_reach_creds_management.yaml | ||
- runFlow: 3_autofill_manually_add_cred.yaml | ||
- runFlow: 4_search_logins.yaml | ||
- runFlow: 5_autofill_manually_updating_an_existing_credential.yaml | ||
- runFlow: 6_delete_logins.yaml | ||
- runFlow: 7_autofill_prompted_to_save_creds_on_form.yaml | ||
- runFlow: 2_autofill_add_search_update_delete_creds.yaml | ||
- runFlow: 3_autofill_prompted_to_save_creds_on_form.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,9 +1,11 @@ | ||
appId: com.duckduckgo.mobile.android | ||
name: "Autofill: Autofill screen is reachable from overflow menu" | ||
tags: | ||
- autofillNoAuthTests | ||
--- | ||
# Pre-requisite: the user has cleared onboarding and is on the new tab page | ||
# Pre-requisite: None (can be run whether auth is required or not) | ||
|
||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- assertVisible: "Passwords" | ||
- tapOn: "Passwords" | ||
- launchApp: | ||
clearState: true | ||
- runFlow: ../shared/onboarding.yaml | ||
- runFlow: steps/access_passwords_screen.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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,9 @@ | ||
appId: com.duckduckgo.mobile.android | ||
name: "Autofill: Autofill screen is reachable from overflow menu" | ||
--- | ||
# Pre-requisite: the user has cleared onboarding and is on the new tab page | ||
|
||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- assertVisible: "Passwords" | ||
- tapOn: "Passwords" |
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
File renamed without changes.
File renamed without changes.
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
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
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.