@devicecloud.dev/dcd 3.7.4 → 3.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/cloud.d.ts +1 -0
- package/dist/commands/cloud.js +3 -8
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +7 -3
- package/oclif.manifest.json +8 -2
- package/package.json +1 -1
package/dist/commands/cloud.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export default class Cloud extends Command {
|
|
|
35
35
|
'android-api-level': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
36
36
|
'android-device': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
37
37
|
'skip-chrome-onboarding': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
38
|
+
'show-crosshairs': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
38
39
|
apiKey: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
39
40
|
apiUrl: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
40
41
|
'app-binary-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
package/dist/commands/cloud.js
CHANGED
|
@@ -100,7 +100,7 @@ class Cloud extends core_1.Command {
|
|
|
100
100
|
let jsonFile = false;
|
|
101
101
|
try {
|
|
102
102
|
const { args, flags, raw } = await this.parse(Cloud);
|
|
103
|
-
let { 'additional-app-binary-ids': nonFlatAdditionalAppBinaryIds, 'additional-app-files': nonFlatAdditionalAppFiles, 'android-api-level': androidApiLevel, 'android-device': androidDevice, apiKey: apiKeyFlag, apiUrl, 'app-binary-id': appBinaryId, 'app-file': appFile, 'artifacts-path': artifactsPath, async, config: configFile, debug, 'device-locale': deviceLocale, 'download-artifacts': downloadArtifacts, env, 'exclude-flows': excludeFlows, 'exclude-tags': excludeTags, flows, 'google-play': googlePlay, 'include-tags': includeTags, 'ignore-sha-check': ignoreShaCheck, 'ios-device': iOSDevice, 'ios-version': iOSVersion, 'maestro-version': maestroVersion, name, orientation, quiet, retry, report, 'runner-type': runnerType, 'x86-arch': x86Arch, json, mitmHost, mitmPath, 'moropo-v1-api-key': moropoApiKey, 'dry-run': dryRun, ...rest } = flags;
|
|
103
|
+
let { 'additional-app-binary-ids': nonFlatAdditionalAppBinaryIds, 'additional-app-files': nonFlatAdditionalAppFiles, 'android-api-level': androidApiLevel, 'android-device': androidDevice, apiKey: apiKeyFlag, apiUrl, 'app-binary-id': appBinaryId, 'app-file': appFile, 'artifacts-path': artifactsPath, async, config: configFile, debug, 'device-locale': deviceLocale, 'download-artifacts': downloadArtifacts, env, 'exclude-flows': excludeFlows, 'exclude-tags': excludeTags, flows, 'google-play': googlePlay, 'include-tags': includeTags, 'ignore-sha-check': ignoreShaCheck, 'ios-device': iOSDevice, 'ios-version': iOSVersion, 'maestro-version': maestroVersion, name, orientation, quiet, retry, report, 'runner-type': runnerType, 'show-crosshairs': showCrosshairs, 'x86-arch': x86Arch, json, mitmHost, mitmPath, 'moropo-v1-api-key': moropoApiKey, 'dry-run': dryRun, ...rest } = flags;
|
|
104
104
|
// Store debug flag for use in catch block
|
|
105
105
|
debugFlag = debug === true;
|
|
106
106
|
jsonFile = flags['json-file'] === true;
|
|
@@ -187,7 +187,7 @@ class Cloud extends core_1.Command {
|
|
|
187
187
|
fileStream.write(value);
|
|
188
188
|
}
|
|
189
189
|
fileStream.end();
|
|
190
|
-
await new Promise((resolve) => fileStream.on('finish', resolve));
|
|
190
|
+
await new Promise((resolve) => fileStream.on('finish', () => resolve()));
|
|
191
191
|
if (!quiet && !json) {
|
|
192
192
|
core_1.ux.action.status = 'Extracting tests...';
|
|
193
193
|
}
|
|
@@ -229,12 +229,6 @@ class Cloud extends core_1.Command {
|
|
|
229
229
|
this.log(`DEBUG: API URL: ${apiUrl}`);
|
|
230
230
|
this.log(`DEBUG: API Key provided: ${apiKey ? 'Yes' : 'No'}`);
|
|
231
231
|
}
|
|
232
|
-
const [maestroMajorString, maestroMinorString] = maestroVersion.split('.');
|
|
233
|
-
if (report === 'html' &&
|
|
234
|
-
maestroMajorString === '1' &&
|
|
235
|
-
Number(maestroMinorString) < 39) {
|
|
236
|
-
throw new Error('HTML report is not supported for Maestro 1.38 and below. Please use --maestro-version flag to specify a newer runtime.');
|
|
237
|
-
}
|
|
238
232
|
if (retry && retry > 2) {
|
|
239
233
|
this.log("Retries are now free of charge but limited to 2. If you're test is still failing after 2 retries, please ask for help on Discord.");
|
|
240
234
|
flags.retry = 2;
|
|
@@ -494,6 +488,7 @@ class Cloud extends core_1.Command {
|
|
|
494
488
|
uploadedBinaryIds,
|
|
495
489
|
version: this.config.version,
|
|
496
490
|
skipChromeOnboarding: flags['skip-chrome-onboarding'],
|
|
491
|
+
showCrosshairs: flags['show-crosshairs'],
|
|
497
492
|
mitmHost,
|
|
498
493
|
mitmPath,
|
|
499
494
|
};
|
package/dist/constants.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const flags: {
|
|
|
5
5
|
'android-api-level': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
6
6
|
'android-device': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
7
|
'skip-chrome-onboarding': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
'show-crosshairs': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
9
|
apiKey: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
10
|
apiUrl: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
11
|
'app-binary-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
package/dist/constants.js
CHANGED
|
@@ -35,6 +35,10 @@ exports.flags = {
|
|
|
35
35
|
description: '[Android only] Skip Chrome browser onboarding screens when running tests',
|
|
36
36
|
default: false,
|
|
37
37
|
}),
|
|
38
|
+
'show-crosshairs': core_1.Flags.boolean({
|
|
39
|
+
description: '[Android only] Display crosshairs for screen interactions during test execution',
|
|
40
|
+
default: false,
|
|
41
|
+
}),
|
|
38
42
|
apiKey: core_1.Flags.string({
|
|
39
43
|
aliases: ['api-key'],
|
|
40
44
|
description: 'API key for devicecloud.dev (find this in the console UI). You can also set the DEVICE_CLOUD_API_KEY environment variable.',
|
|
@@ -195,7 +199,7 @@ exports.flags = {
|
|
|
195
199
|
description: 'Output results in JSON format - note: will always provide exit code 0',
|
|
196
200
|
}),
|
|
197
201
|
'json-file': core_1.Flags.boolean({
|
|
198
|
-
description: 'Write JSON output to a file
|
|
202
|
+
description: 'Write JSON output to a file. If you supply the --name flag, file <name>_dcd.json will be written, otherwise file <upload_id>_dcd.json will be written - note: will always exit with code 0',
|
|
199
203
|
required: false,
|
|
200
204
|
}),
|
|
201
205
|
'moropo-v1-api-key': core_1.Flags.string({
|
|
@@ -230,9 +234,9 @@ exports.AndroidCompatibilityLookup = {
|
|
|
230
234
|
'pixel-7-pro': ['33', '34', '35'],
|
|
231
235
|
};
|
|
232
236
|
exports.AndroidCompatibilityLookupPlay = {
|
|
233
|
-
'generic-tablet': [
|
|
237
|
+
'generic-tablet': [],
|
|
234
238
|
'pixel-6': ['34', '35'],
|
|
235
239
|
'pixel-6-pro': [],
|
|
236
240
|
'pixel-7': ['34', '35'],
|
|
237
|
-
'pixel-7-pro': [
|
|
241
|
+
'pixel-7-pro': [],
|
|
238
242
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -77,6 +77,12 @@
|
|
|
77
77
|
"allowNo": false,
|
|
78
78
|
"type": "boolean"
|
|
79
79
|
},
|
|
80
|
+
"show-crosshairs": {
|
|
81
|
+
"description": "[Android only] Display crosshairs for screen interactions during test execution",
|
|
82
|
+
"name": "show-crosshairs",
|
|
83
|
+
"allowNo": false,
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
},
|
|
80
86
|
"apiKey": {
|
|
81
87
|
"aliases": [
|
|
82
88
|
"api-key"
|
|
@@ -371,7 +377,7 @@
|
|
|
371
377
|
"type": "option"
|
|
372
378
|
},
|
|
373
379
|
"json-file": {
|
|
374
|
-
"description": "Write JSON output to a file
|
|
380
|
+
"description": "Write JSON output to a file. If you supply the --name flag, file <name>_dcd.json will be written, otherwise file <upload_id>_dcd.json will be written - note: will always exit with code 0",
|
|
375
381
|
"name": "json-file",
|
|
376
382
|
"required": false,
|
|
377
383
|
"allowNo": false,
|
|
@@ -549,5 +555,5 @@
|
|
|
549
555
|
]
|
|
550
556
|
}
|
|
551
557
|
},
|
|
552
|
-
"version": "3.7.
|
|
558
|
+
"version": "3.7.5"
|
|
553
559
|
}
|