@applitools/visual-grid-cli-utils 1.21.20 → 1.21.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/visual-grid-cli-utils",
3
- "version": "1.21.20",
3
+ "version": "1.21.21",
4
4
  "description": "",
5
5
  "main": "src/visual-grid-cli-utils.js",
6
6
  "engines": {
package/src/rerender.js CHANGED
@@ -45,6 +45,7 @@ async function main({
45
45
  timeout,
46
46
  options: optionsAsString,
47
47
  selectorsToFindRegionsFor,
48
+ vhsCompatibilityParams,
48
49
  }) {
49
50
  const options = parseJson(optionsAsString, 'options')
50
51
  options.chromeHeadless = headless
@@ -74,6 +75,12 @@ async function main({
74
75
  version: canary ? 'canary' : iosVersion,
75
76
  }
76
77
  : undefined,
78
+ vhsCompatibilityParams: vhsCompatibilityParams
79
+ ? {
80
+ UIKitLinkTimeVersionNumber: vhsCompatibilityParams[0],
81
+ UIKitRunTimeVersionNumber: vhsCompatibilityParams[1],
82
+ }
83
+ : undefined,
77
84
  androidDeviceInfo: androidDeviceName
78
85
  ? {
79
86
  name: androidDeviceName,
@@ -170,6 +170,11 @@ async function main(argv, {shouldExitOnError = false} = {}) {
170
170
  choices: ['viewport', 'full-page', 'selector', 'full-selector'],
171
171
  default: 'full-page',
172
172
  })
173
+ .option('vhs-compatibility-params', {
174
+ describe:
175
+ 'should specify vhs compatibility params if running ios native jobs. Specify the value of UIKitLinkTimeVersionNumber followed by the value of UIKitRunTimeVersionNumber - e.g. --vhs-compatibility-params 4555 5067',
176
+ type: 'array',
177
+ })
173
178
  .option('selector', {
174
179
  describe: 'target a specific element (via CSS selector)',
175
180
  type: 'string',