@applitools/visual-grid-cli-utils 1.21.27 → 1.21.28
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/package.json +1 -1
- package/src/job-info.js +16 -1
- package/src/visual-grid-cli-utils.js +22 -0
package/package.json
CHANGED
package/src/job-info.js
CHANGED
|
@@ -15,6 +15,10 @@ async function main({
|
|
|
15
15
|
deviceOrientation,
|
|
16
16
|
iosDeviceName,
|
|
17
17
|
iosDeviceOrientation,
|
|
18
|
+
androidDeviceName,
|
|
19
|
+
androidVersion,
|
|
20
|
+
androidDeviceOrientation,
|
|
21
|
+
androidVhsType,
|
|
18
22
|
serverUrl,
|
|
19
23
|
accountOverride,
|
|
20
24
|
canary,
|
|
@@ -44,6 +48,14 @@ async function main({
|
|
|
44
48
|
version: canary ? 'canary' : iosVersion,
|
|
45
49
|
}
|
|
46
50
|
: undefined,
|
|
51
|
+
androidDeviceInfo: androidDeviceName
|
|
52
|
+
? {
|
|
53
|
+
name: androidDeviceName,
|
|
54
|
+
version: canary ? 'canary' : androidVersion,
|
|
55
|
+
screenOrientation: androidDeviceOrientation,
|
|
56
|
+
}
|
|
57
|
+
: undefined,
|
|
58
|
+
vhsType: androidDeviceName ? androidVhsType : undefined,
|
|
47
59
|
width: deviceEmulation || iosDeviceName ? undefined : width,
|
|
48
60
|
height: deviceEmulation || iosDeviceName ? undefined : height,
|
|
49
61
|
target: 'full-page',
|
|
@@ -54,7 +66,10 @@ async function main({
|
|
|
54
66
|
: {
|
|
55
67
|
name: iosDeviceName ? 'safari' : canary ? convertBrowserNameToCanary(browser) : browser,
|
|
56
68
|
},
|
|
57
|
-
platform: {
|
|
69
|
+
platform: {
|
|
70
|
+
name: iosDeviceName ? 'ios' : androidDeviceName ? 'android' : undefined,
|
|
71
|
+
type: native ? 'native' : 'web',
|
|
72
|
+
},
|
|
58
73
|
options,
|
|
59
74
|
},
|
|
60
75
|
{
|
|
@@ -490,6 +490,28 @@ async function main(argv, {shouldExitOnError = false} = {}) {
|
|
|
490
490
|
choices: ['portrait', 'landscapeLeft', 'landscapeRight'],
|
|
491
491
|
default: 'portrait',
|
|
492
492
|
})
|
|
493
|
+
.option('android-device-name', {
|
|
494
|
+
describe: 'the name of the Android device to use',
|
|
495
|
+
type: 'string',
|
|
496
|
+
})
|
|
497
|
+
.option('android-version', {
|
|
498
|
+
describe:
|
|
499
|
+
'The Android version to use (latest, latest-1 or latest-2 - relative to the device)',
|
|
500
|
+
type: 'string',
|
|
501
|
+
default: 'latest',
|
|
502
|
+
})
|
|
503
|
+
.option('android-device-orientation', {
|
|
504
|
+
describe: 'screen orientation',
|
|
505
|
+
type: 'string',
|
|
506
|
+
choices: ['portrait', 'landscape'],
|
|
507
|
+
default: 'portrait',
|
|
508
|
+
})
|
|
509
|
+
.option('android-vhs-type', {
|
|
510
|
+
describe: 'vhs type',
|
|
511
|
+
type: 'string',
|
|
512
|
+
choices: ['android-x', 'android-support'],
|
|
513
|
+
default: 'android-x',
|
|
514
|
+
})
|
|
493
515
|
.option('browser', {
|
|
494
516
|
alias: 'b',
|
|
495
517
|
describe: 'the browser to render to',
|