Skip to content

Commit 601be57

Browse files
committed
skip chrome onboarding
1 parent e5e81b5 commit 601be57

5 files changed

Lines changed: 23 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,18 @@ For iOS tests, you can run your flows against x86 architecture simulators instea
330330
x86-arch: true
331331
```
332332

333+
# Skip Chrome Onboarding (Android)
334+
335+
For Android tests, you can skip Chrome browser onboarding screens when running tests:
336+
337+
```yaml
338+
- uses: devicecloud-dev/device-cloud-for-maestro@v1
339+
with:
340+
api-key: ${{ secrets.DCD_API_KEY }}
341+
app-file: app.apk
342+
skip-chrome-onboarding: true
343+
```
344+
333345
# Runner Types (Experimental)
334346

335347
You can specify a custom runner type using the `runner-type` parameter:
@@ -464,6 +476,7 @@ Here's a complete example showing all available options:
464476
orientation: 0 # 0|90|180|270 (Android only)
465477
google-play: false # Use Google Play devices (Android)
466478
x86-arch: false # Use x86 architecture (iOS)
479+
skip-chrome-onboarding: false # Skip Chrome onboarding screens (Android)
467480
468481
# Flow Configuration
469482
workspace: myFlows/

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ inputs:
9797
description: '[experimental] The type of runner to use <options: m1|m4> - note: anything other than default will incur premium pricing tiers. See https://docs.devicecloud.dev/reference/runner-type for more information'
9898
required: false
9999
default: 'default'
100+
skip-chrome-onboarding:
101+
description: '[Android only] Skip Chrome browser onboarding screens when running tests'
102+
required: false
100103

101104
outputs:
102105
DEVICE_CLOUD_CONSOLE_URL:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dcd-github-action",
33
"description": "run maestro tests on devicecloud.dev",
44
"author": "devicecloud.dev",
5-
"version": "1.3.6",
5+
"version": "1.3.7",
66
"main": "src/index.ts",
77
"license": "MIT",
88
"engines": {

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ const run = async (): Promise<void> => {
109109
workspaceFolder,
110110
x86Arch,
111111
runnerType,
112+
skipChromeOnboarding,
112113
} = await getParameters();
113114

114115
const params: Record<string, any> = {
@@ -140,6 +141,7 @@ const run = async (): Promise<void> => {
140141
'x86-arch': x86Arch,
141142
'runner-type': runnerType,
142143
'json-file': jsonFile,
144+
'skip-chrome-onboarding': skipChromeOnboarding,
143145
};
144146

145147
let paramsString = Object.keys(params).reduce((acc, key) => {

src/methods/params.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export type Params = {
3131
config?: string;
3232
runnerType?: string;
3333
jsonFile?: boolean;
34+
skipChromeOnboarding?: boolean;
3435
};
3536

3637
function getAndroidApiLevel(apiLevel?: string): number | undefined {
@@ -172,6 +173,8 @@ export async function getParameters(): Promise<Params> {
172173
const config = core.getInput('config', { required: false });
173174
const runnerType = core.getInput('runner-type', { required: false });
174175
const jsonFile = core.getInput('json-file', { required: false }) === 'true';
176+
const skipChromeOnboarding =
177+
core.getInput('skip-chrome-onboarding', { required: false }) === 'true';
175178

176179
if (!(appFilePath !== '') !== (appBinaryId !== '')) {
177180
throw new Error('Either app-file or app-binary-id must be used');
@@ -215,5 +218,6 @@ export async function getParameters(): Promise<Params> {
215218
config,
216219
runnerType,
217220
jsonFile,
221+
skipChromeOnboarding,
218222
};
219223
}

0 commit comments

Comments
 (0)