-
Notifications
You must be signed in to change notification settings - Fork 912
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.201.0' into main
- Loading branch information
Showing
133 changed files
with
2,574 additions
and
206 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: Custom Tabs nightly tests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 5 * * *' # run at 5 AM UTC | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
instrumentation_tests: | ||
runs-on: ubuntu-latest | ||
name: Custom Tabs nightly 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 internal release APK | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: assembleInternalRelease -Pforce-default-variant -x lint | ||
|
||
- name: Move APK to new folder | ||
if: always() | ||
run: find . -name "*.apk" -exec mv '{}' apk/release.apk \; | ||
|
||
- name: Custom Tabs 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: customTabsTest | ||
|
||
- 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 - Custom Tabs Flows | ||
asana-task-description: The Custom Tabs nightly workflow has 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
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,64 @@ | ||
appId: com.duckduckgo.mobile.android | ||
name: "Custom Tabs navigation" | ||
tags: | ||
- customTabsTest | ||
--- | ||
- launchApp: | ||
clearState: true | ||
stopApp: true | ||
|
||
- assertVisible: | ||
text: ".*Not to worry! Searching and browsing privately.*" | ||
- tapOn: "let's do it!" | ||
- runFlow: | ||
when: | ||
visible: "set as default" | ||
commands: | ||
- tapOn: "duckduckgo" | ||
- tapOn: "set as default" | ||
- assertVisible: | ||
text: ".*I'll also upgrade the security of your connection if possible.*" | ||
|
||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- tapOn: | ||
text: "settings" | ||
- scrollUntilVisible: | ||
element: | ||
text: "developer settings" | ||
direction: DOWN | ||
- tapOn: | ||
text: "developer settings" | ||
- scrollUntilVisible: | ||
element: | ||
text: "custom tabs" | ||
direction: DOWN | ||
- tapOn: | ||
text: "custom tabs" | ||
- tapOn: | ||
text: "add your url here" | ||
- inputText: "https://www.search-company.site" | ||
- tapOn: | ||
text: "load custom tab" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- assertVisible: | ||
text: "running in duckduckgo" | ||
- action: back | ||
- tapOn: | ||
text: "[Ad 1] SERP Ad (heuristic)" | ||
- action: back | ||
- tapOn: | ||
text: "[Ad 1] SERP Ad (heuristic)" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/backMenuItem" | ||
- assertVisible: | ||
text: "Search engine" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/forwardMenuItem" | ||
- assertVisible: | ||
text: "Publisher site" |
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,70 @@ | ||
appId: com.duckduckgo.mobile.android | ||
name: "Custom Tabs navigation in new tab" | ||
tags: | ||
- customTabsTest | ||
--- | ||
- launchApp: | ||
clearState: true | ||
stopApp: true | ||
|
||
- assertVisible: | ||
text: ".*Not to worry! Searching and browsing privately.*" | ||
- tapOn: "let's do it!" | ||
- runFlow: | ||
when: | ||
visible: "set as default" | ||
commands: | ||
- tapOn: "duckduckgo" | ||
- tapOn: "set as default" | ||
- assertVisible: | ||
text: ".*I'll also upgrade the security of your connection if possible.*" | ||
|
||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- tapOn: | ||
text: "settings" | ||
- scrollUntilVisible: | ||
element: | ||
text: "developer settings" | ||
direction: DOWN | ||
- tapOn: | ||
text: "developer settings" | ||
- scrollUntilVisible: | ||
element: | ||
text: "custom tabs" | ||
direction: DOWN | ||
- tapOn: | ||
text: "custom tabs" | ||
- tapOn: | ||
text: "add your url here" | ||
- inputText: "https://www.search-company.site" | ||
- tapOn: | ||
text: "load custom tab" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- assertVisible: | ||
text: "running in duckduckgo" | ||
- action: back | ||
- tapOn: | ||
text: "[Ad 2] Shopping Tab Ad (heuristic)" | ||
- assertVisible: | ||
text: "Publisher site" | ||
- action: back | ||
- tapOn: | ||
text: "[Ad 2] Shopping Tab Ad (heuristic)" | ||
- tapOn: | ||
text: "Red shoes" | ||
- assertVisible: | ||
text: "Checkout" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/backMenuItem" | ||
- assertVisible: | ||
text: "Red shoes" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/browserMenuImageView" | ||
- tapOn: | ||
id: "com.duckduckgo.mobile.android:id/forwardMenuItem" | ||
- assertVisible: | ||
text: "Checkout" |
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.