@devicecloud.dev/dcd 3.7.4 → 3.7.6
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 +8 -3
- package/oclif.manifest.json +9 -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.',
|
|
@@ -152,6 +156,7 @@ exports.flags = {
|
|
|
152
156
|
'1.39.4',
|
|
153
157
|
'1.39.5',
|
|
154
158
|
'1.39.7',
|
|
159
|
+
'1.39.13',
|
|
155
160
|
'1.40.0',
|
|
156
161
|
'1.40.1',
|
|
157
162
|
'1.40.2',
|
|
@@ -195,7 +200,7 @@ exports.flags = {
|
|
|
195
200
|
description: 'Output results in JSON format - note: will always provide exit code 0',
|
|
196
201
|
}),
|
|
197
202
|
'json-file': core_1.Flags.boolean({
|
|
198
|
-
description: 'Write JSON output to a file
|
|
203
|
+
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
204
|
required: false,
|
|
200
205
|
}),
|
|
201
206
|
'moropo-v1-api-key': core_1.Flags.string({
|
|
@@ -230,9 +235,9 @@ exports.AndroidCompatibilityLookup = {
|
|
|
230
235
|
'pixel-7-pro': ['33', '34', '35'],
|
|
231
236
|
};
|
|
232
237
|
exports.AndroidCompatibilityLookupPlay = {
|
|
233
|
-
'generic-tablet': [
|
|
238
|
+
'generic-tablet': [],
|
|
234
239
|
'pixel-6': ['34', '35'],
|
|
235
240
|
'pixel-6-pro': [],
|
|
236
241
|
'pixel-7': ['34', '35'],
|
|
237
|
-
'pixel-7-pro': [
|
|
242
|
+
'pixel-7-pro': [],
|
|
238
243
|
};
|
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"
|
|
@@ -284,6 +290,7 @@
|
|
|
284
290
|
"1.39.4",
|
|
285
291
|
"1.39.5",
|
|
286
292
|
"1.39.7",
|
|
293
|
+
"1.39.13",
|
|
287
294
|
"1.40.0",
|
|
288
295
|
"1.40.1",
|
|
289
296
|
"1.40.2",
|
|
@@ -371,7 +378,7 @@
|
|
|
371
378
|
"type": "option"
|
|
372
379
|
},
|
|
373
380
|
"json-file": {
|
|
374
|
-
"description": "Write JSON output to a file
|
|
381
|
+
"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
382
|
"name": "json-file",
|
|
376
383
|
"required": false,
|
|
377
384
|
"allowNo": false,
|
|
@@ -549,5 +556,5 @@
|
|
|
549
556
|
]
|
|
550
557
|
}
|
|
551
558
|
},
|
|
552
|
-
"version": "3.7.
|
|
559
|
+
"version": "3.7.6"
|
|
553
560
|
}
|