@devicecloud.dev/dcd 4.3.0 → 4.3.2
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 -1
- package/dist/commands/cloud.js +10 -1
- package/dist/config/flags/device.flags.d.ts +1 -1
- package/dist/config/flags/device.flags.js +2 -2
- package/dist/constants.d.ts +1 -1
- package/dist/services/test-submission.service.d.ts +1 -1
- package/dist/services/test-submission.service.js +2 -2
- package/oclif.manifest.json +4 -4
- package/package.json +1 -1
package/dist/commands/cloud.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export default class Cloud extends Command {
|
|
|
57
57
|
'show-crosshairs': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
58
58
|
'maestro-chrome-onboarding': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
59
59
|
'android-no-snapshot': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
60
|
-
'
|
|
60
|
+
'disable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
61
61
|
'app-binary-id': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
62
62
|
'app-file': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
63
63
|
'ignore-sha-check': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
package/dist/commands/cloud.js
CHANGED
|
@@ -164,6 +164,15 @@ class Cloud extends core_1.Command {
|
|
|
164
164
|
debug,
|
|
165
165
|
logger: this.log.bind(this),
|
|
166
166
|
});
|
|
167
|
+
const DEPRECATED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7'];
|
|
168
|
+
if (DEPRECATED_MAESTRO_VERSIONS.includes(resolvedMaestroVersion)) {
|
|
169
|
+
this.log(`\n${styling_1.dividers.light}\n` +
|
|
170
|
+
`${styling_1.colors.warning('⚠')} ${styling_1.colors.bold('Deprecation Warning')}\n` +
|
|
171
|
+
styling_1.colors.dim(`Maestro version ${resolvedMaestroVersion} is deprecated and will be removed soon. `) +
|
|
172
|
+
styling_1.colors.dim(`Please upgrade to a newer version. See: `) +
|
|
173
|
+
styling_1.colors.info('https://docs.devicecloud.dev/reference/maestro-versions') + `\n` +
|
|
174
|
+
`${styling_1.dividers.light}\n`);
|
|
175
|
+
}
|
|
167
176
|
if (retry && retry > 2) {
|
|
168
177
|
this.log(styling_1.colors.warning('⚠') + ' ' + styling_1.colors.dim("Retries are now free of charge but limited to 2. If your test is still failing after 2 retries, please ask for help on Discord."));
|
|
169
178
|
flags.retry = 2;
|
|
@@ -404,7 +413,7 @@ class Cloud extends core_1.Command {
|
|
|
404
413
|
runnerType,
|
|
405
414
|
showCrosshairs: flags['show-crosshairs'],
|
|
406
415
|
maestroChromeOnboarding: flags['maestro-chrome-onboarding'],
|
|
407
|
-
|
|
416
|
+
disableAnimations: flags['disable-animations'],
|
|
408
417
|
});
|
|
409
418
|
if (debug) {
|
|
410
419
|
this.log(`[DEBUG] Submitting flow upload request to ${apiUrl}/uploads/flow`);
|
|
@@ -12,5 +12,5 @@ export declare const deviceFlags: {
|
|
|
12
12
|
'show-crosshairs': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
13
13
|
'maestro-chrome-onboarding': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
14
14
|
'android-no-snapshot': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
-
'
|
|
15
|
+
'disable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
16
|
};
|
|
@@ -47,8 +47,8 @@ exports.deviceFlags = {
|
|
|
47
47
|
default: false,
|
|
48
48
|
description: '[Android only] Force cold boot instead of using snapshot boot. This is automatically enabled for API 35+ but can be used to force cold boot on older API levels.',
|
|
49
49
|
}),
|
|
50
|
-
'
|
|
50
|
+
'disable-animations': core_1.Flags.boolean({
|
|
51
51
|
default: false,
|
|
52
|
-
description: '[Android only]
|
|
52
|
+
description: '[Android only] Disable device animations during test execution. This reduces CPU load and may improve test reliability on resource-constrained runners.',
|
|
53
53
|
}),
|
|
54
54
|
};
|
package/dist/constants.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare const flags: {
|
|
|
44
44
|
'show-crosshairs': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
45
45
|
'maestro-chrome-onboarding': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
46
46
|
'android-no-snapshot': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
47
|
-
'
|
|
47
|
+
'disable-animations': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
48
48
|
'app-binary-id': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
49
49
|
'app-file': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
50
50
|
'ignore-sha-check': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -17,7 +17,7 @@ class TestSubmissionService {
|
|
|
17
17
|
* @returns FormData ready to be submitted to the API
|
|
18
18
|
*/
|
|
19
19
|
async buildTestFormData(config) {
|
|
20
|
-
const { appBinaryId, flowFile, executionPlan, commonRoot, cliVersion, env = [], metadata = [], googlePlay = false, androidApiLevel, androidDevice, androidNoSnapshot, iOSVersion, iOSDevice, name, runnerType, maestroVersion, deviceLocale, orientation, mitmHost, mitmPath, retry, continueOnFailure = true, report, showCrosshairs, maestroChromeOnboarding, raw,
|
|
20
|
+
const { appBinaryId, flowFile, executionPlan, commonRoot, cliVersion, env = [], metadata = [], googlePlay = false, androidApiLevel, androidDevice, androidNoSnapshot, iOSVersion, iOSDevice, name, runnerType, maestroVersion, deviceLocale, orientation, mitmHost, mitmPath, retry, continueOnFailure = true, report, showCrosshairs, maestroChromeOnboarding, raw, disableAnimations, debug = false, logger, } = config;
|
|
21
21
|
const { allExcludeTags, allIncludeTags, flowMetadata, flowOverrides, flowsToRun: testFileNames, referencedFiles, sequence, workspaceConfig, } = executionPlan;
|
|
22
22
|
const { flows: sequentialFlows = [] } = sequence ?? {};
|
|
23
23
|
const testFormData = new FormData();
|
|
@@ -83,7 +83,7 @@ class TestSubmissionService {
|
|
|
83
83
|
report,
|
|
84
84
|
showCrosshairs,
|
|
85
85
|
maestroChromeOnboarding,
|
|
86
|
-
|
|
86
|
+
disableAnimations,
|
|
87
87
|
version: cliVersion,
|
|
88
88
|
};
|
|
89
89
|
testFormData.set('config', JSON.stringify(configPayload));
|
package/oclif.manifest.json
CHANGED
|
@@ -181,9 +181,9 @@
|
|
|
181
181
|
"allowNo": false,
|
|
182
182
|
"type": "boolean"
|
|
183
183
|
},
|
|
184
|
-
"
|
|
185
|
-
"description": "[Android only]
|
|
186
|
-
"name": "
|
|
184
|
+
"disable-animations": {
|
|
185
|
+
"description": "[Android only] Disable device animations during test execution. This reduces CPU load and may improve test reliability on resource-constrained runners.",
|
|
186
|
+
"name": "disable-animations",
|
|
187
187
|
"allowNo": false,
|
|
188
188
|
"type": "boolean"
|
|
189
189
|
},
|
|
@@ -680,5 +680,5 @@
|
|
|
680
680
|
]
|
|
681
681
|
}
|
|
682
682
|
},
|
|
683
|
-
"version": "4.3.
|
|
683
|
+
"version": "4.3.2"
|
|
684
684
|
}
|