@applitools/eyes-testcafe 1.16.2 → 1.17.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/CHANGELOG.md CHANGED
@@ -11,6 +11,28 @@
11
11
 
12
12
 
13
13
 
14
+
15
+ ## 1.17.2 - 2022/6/8
16
+
17
+ ### Features
18
+ - Allowed `` values in custom properties
19
+ ### Bug fixes
20
+ - Fixed broken links to enums implementation in the README.md
21
+ - Fixed `forceFullPageScreenshot` option behavior
22
+
23
+ ## 1.17.1 - 2022/6/2
24
+
25
+ ### Features
26
+ ### Bug fixes
27
+ - Fix rounding error of image size when scaling introduces fractions
28
+
29
+ ## 1.17.0 - 2022/6/1
30
+
31
+ ### Features
32
+ - Dorp support for Node.js versions <=12
33
+ ### Bug fixes
34
+ - Fixed incorrect calculation of coded regions in classic mode when using CSS stitching
35
+
14
36
  ## 1.16.2 - 2022/5/27
15
37
 
16
38
  ### Features
package/README.md CHANGED
@@ -624,7 +624,7 @@ eyes.open({
624
624
  })
625
625
  ```
626
626
 
627
- The list of devices is available at https://github.com/applitools/eyes.sdk.javascript1/blob/master/packages/eyes-sdk-core/lib/config/IosDeviceName.js
627
+ The list of devices is available at https://github.com/applitools/eyes.sdk.javascript1/blob/master/packages/eyes-api/src/enums/IosDeviceName.ts
628
628
 
629
629
  Possible values for `iosVersion` are:
630
630
 
package/dist/api.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/legacy.js CHANGED
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.transformCheckSettings = exports.transformConfig = exports.LegacyTestCafeEyesMixin = void 0;
15
4
  const utils = require("@applitools/utils");
@@ -23,7 +12,10 @@ function LegacyTestCafeEyesMixin(Eyes) {
23
12
  constructor(runnerOrConfigOrOptions, configOrRunner) {
24
13
  var _a, _b, _c;
25
14
  if (utils.types.isNull(runnerOrConfigOrOptions) || utils.types.has(runnerOrConfigOrOptions, 'configPath')) {
26
- const testcafeConfig = eyes_sdk_core_1.ConfigUtils.getConfig({ configPath: runnerOrConfigOrOptions === null || runnerOrConfigOrOptions === void 0 ? void 0 : runnerOrConfigOrOptions.configPath });
15
+ const testcafeConfig = utils.config.getConfig({
16
+ paths: (runnerOrConfigOrOptions === null || runnerOrConfigOrOptions === void 0 ? void 0 : runnerOrConfigOrOptions.configPath) && [runnerOrConfigOrOptions.configPath],
17
+ params: ['failTestcafeOnDiff'],
18
+ });
27
19
  const runner = (_a = runnerOrConfigOrOptions === null || runnerOrConfigOrOptions === void 0 ? void 0 : runnerOrConfigOrOptions.runner) !== null && _a !== void 0 ? _a : new api.VisualGridRunner({ testConcurrency: (_c = (_b = testcafeConfig.concurrency) !== null && _b !== void 0 ? _b : testcafeConfig.testConcurrency) !== null && _c !== void 0 ? _c : 1 });
28
20
  super(runner, transformConfig(testcafeConfig));
29
21
  this._testcafeConfig = testcafeConfig;
@@ -35,8 +27,8 @@ function LegacyTestCafeEyesMixin(Eyes) {
35
27
  async open(driverOrOptions, configOrAppName, testName, viewportSize, sessionType) {
36
28
  let driver, config;
37
29
  if (utils.types.has(driverOrOptions, 't')) {
38
- const { t } = driverOrOptions, testcafeConfig = __rest(driverOrOptions, ["t"]);
39
- this._testcafeConfig = Object.assign(Object.assign({}, this._testcafeConfig), testcafeConfig);
30
+ const { t, ...testcafeConfig } = driverOrOptions;
31
+ this._testcafeConfig = { ...this._testcafeConfig, ...testcafeConfig };
40
32
  driver = t;
41
33
  config = transformConfig(this._testcafeConfig);
42
34
  }
@@ -58,12 +50,13 @@ function LegacyTestCafeEyesMixin(Eyes) {
58
50
  return super.checkWindow(nameOrSetting, timeout, fully);
59
51
  }
60
52
  async close(throwErr = true) {
61
- return super.close(throwErr && getFailTestcafeOnDiff(this._testcafeConfig));
53
+ var _a, _b;
54
+ return super.close(throwErr && ((_b = (_a = this._testcafeConfig) === null || _a === void 0 ? void 0 : _a.failTestcafeOnDiff) !== null && _b !== void 0 ? _b : true));
62
55
  }
63
56
  async waitForResults(throwErr = true) {
64
- var _a;
65
- const resultsSummary = await this.runner.getAllTestResults(throwErr && getFailTestcafeOnDiff(this._testcafeConfig));
66
- if ((_a = this._testcafeConfig) === null || _a === void 0 ? void 0 : _a.tapDirPath) {
57
+ var _a, _b, _c;
58
+ const resultsSummary = await this.runner.getAllTestResults(throwErr && ((_b = (_a = this._testcafeConfig) === null || _a === void 0 ? void 0 : _a.failTestcafeOnDiff) !== null && _b !== void 0 ? _b : true));
59
+ if ((_c = this._testcafeConfig) === null || _c === void 0 ? void 0 : _c.tapDirPath) {
67
60
  const results = resultsSummary.getAllResults().map(r => r.getTestResults());
68
61
  const includeSubTests = false;
69
62
  const markNewAsPassed = true;
@@ -75,17 +68,8 @@ function LegacyTestCafeEyesMixin(Eyes) {
75
68
  };
76
69
  }
77
70
  exports.LegacyTestCafeEyesMixin = LegacyTestCafeEyesMixin;
78
- function getFailTestcafeOnDiff(_testcafeConfig) {
79
- if (utils.general.isDefined(process.env.APPLITOOLS_FAIL_TESTCAFE_ON_DIFF)) {
80
- return String(process.env.APPLITOOLS_FAIL_TESTCAFE_ON_DIFF).toLowerCase() === 'true';
81
- }
82
- if (_testcafeConfig && utils.general.isDefined(_testcafeConfig.failTestcafeOnDiff)) {
83
- return String(_testcafeConfig.failTestcafeOnDiff).toLowerCase() === 'true';
84
- }
85
- return true;
86
- }
87
71
  function transformConfig(options) {
88
- const config = Object.assign({}, options);
72
+ const config = { ...options };
89
73
  if (options.concurrency)
90
74
  config.concurrentSessions = options.concurrency;
91
75
  if (options.envName)
@@ -119,7 +103,7 @@ function transformConfig(options) {
119
103
  exports.transformConfig = transformConfig;
120
104
  function transformCheckSettings(options) {
121
105
  var _a;
122
- const settings = Object.assign({}, options);
106
+ const settings = { ...options };
123
107
  settings.name = options.tag;
124
108
  settings.hooks = options.scriptHooks;
125
109
  settings.fully = (_a = options.fully) !== null && _a !== void 0 ? _a : options.target !== 'region';
@@ -131,7 +115,7 @@ function transformCheckSettings(options) {
131
115
  ? options.accessibility
132
116
  : [options.accessibility];
133
117
  settings.accessibilityRegions = accessibilityRegions.map(accessibilityRegion => {
134
- const { accessibilityType } = accessibilityRegion, region = __rest(accessibilityRegion, ["accessibilityType"]);
118
+ const { accessibilityType, ...region } = accessibilityRegion;
135
119
  if (utils.types.has(region, 'selector') && !utils.types.has(region, 'type')) {
136
120
  return { region: region.selector, accessibilityType };
137
121
  }
@@ -143,7 +127,7 @@ function transformCheckSettings(options) {
143
127
  if (options.floating) {
144
128
  const floatingRegions = utils.types.isArray(options.floating) ? options.floating : [options.floating];
145
129
  settings.floatingRegions = floatingRegions.map(floatingRegion => {
146
- const { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset } = floatingRegion, region = __rest(floatingRegion, ["maxUpOffset", "maxDownOffset", "maxLeftOffset", "maxRightOffset"]);
130
+ const { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset, ...region } = floatingRegion;
147
131
  if (utils.types.has(region, 'selector') && !utils.types.has(region, 'type')) {
148
132
  return { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset, region: region.selector };
149
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-testcafe",
3
- "version": "1.16.2",
3
+ "version": "1.17.2",
4
4
  "description": "Applitools Eyes SDK for TestCafe",
5
5
  "keywords": [
6
6
  "eyes-testcafe",
@@ -15,22 +15,22 @@
15
15
  "tests",
16
16
  "testcafe"
17
17
  ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/applitools/eyes.sdk.javascript1.git",
21
+ "directory": "packages/eyes-testcafe"
22
+ },
18
23
  "license": "SEE LICENSE IN LICENSE",
19
24
  "author": {
20
25
  "name": "Applitools Team",
21
26
  "email": "team@applitools.com"
22
27
  },
28
+ "main": "./dist/index-legacy.js",
29
+ "types": "./types/index-legacy.d.ts",
23
30
  "files": [
24
31
  "dist",
25
32
  "types"
26
33
  ],
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/applitools/eyes.sdk.javascript1.git",
30
- "directory": "packages/eyes-testcafe"
31
- },
32
- "main": "./dist/index-legacy.js",
33
- "types": "./types/index-legacy.d.ts",
34
34
  "scripts": {
35
35
  "perf": "testcafe chrome:headless test/perf/perf.spec.js",
36
36
  "perf:full": "yarn perf && yarn perf -c 5",
@@ -69,45 +69,45 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@applitools/eyes-api": "1.4.1",
73
- "@applitools/eyes-sdk-core": "13.6.23",
74
- "@applitools/utils": "1.3.0",
75
- "@applitools/visual-grid-client": "15.12.35"
72
+ "@applitools/eyes-api": "1.5.4",
73
+ "@applitools/eyes-sdk-core": "13.6.32",
74
+ "@applitools/utils": "1.3.6",
75
+ "@applitools/visual-grid-client": "15.12.40"
76
76
  },
77
77
  "devDependencies": {
78
- "@applitools/api-extractor": "1.2.7",
79
- "@applitools/bongo": "^2.1.0",
78
+ "@applitools/api-extractor": "1.2.8",
79
+ "@applitools/bongo": "^2.1.4",
80
80
  "@applitools/scripts": "1.1.0",
81
81
  "@applitools/sdk-coverage-tests": "^2.3.18",
82
82
  "@applitools/sdk-shared": "0.9.11",
83
- "@applitools/test-server": "1.0.9",
83
+ "@applitools/test-server": "1.0.10",
84
84
  "@applitools/test-utils": "1.3.2",
85
- "@types/yargs": "^17.0.10",
86
- "@typescript-eslint/eslint-plugin": "^4.15.1",
87
- "@typescript-eslint/parser": "^4.15.1",
88
- "eslint": "^7.9.0",
89
- "eslint-config-prettier": "^7.2.0",
85
+ "@types/node": "12",
86
+ "@typescript-eslint/eslint-plugin": "^5.27.0",
87
+ "@typescript-eslint/parser": "^5.27.0",
88
+ "eslint": "^8.16.0",
89
+ "eslint-config-prettier": "^8.5.0",
90
90
  "eslint-plugin-mocha-no-only": "^1.1.1",
91
91
  "eslint-plugin-node": "^11.1.0",
92
- "eslint-plugin-prettier": "^3.3.1",
92
+ "eslint-plugin-prettier": "^4.0.0",
93
93
  "eslint-plugin-testcafe": "0.2.1",
94
94
  "husky": "^4.3.8",
95
- "mocha": "^8.0.1",
96
- "prettier": "^2.1.2",
97
- "testcafe": "^1.18.1",
95
+ "mocha": "^10.0.0",
96
+ "prettier": "^2.6.2",
97
+ "testcafe": "^1.19.0",
98
98
  "testcafe-10": "npm:testcafe@^1.10.0",
99
99
  "testcafe-7": "npm:testcafe@1.7.1",
100
100
  "testcafe-8": "npm:testcafe@1.8.8",
101
101
  "testcafe-9": "npm:testcafe@1.9.4",
102
102
  "testcafe-browser-provider-browserstack": "^1.13.2-alpha.1",
103
- "ts-node": "^10.4.0",
104
- "ttypescript": "^1.5.12",
105
- "typescript": "^4.5.4"
103
+ "ts-node": "^10.8.0",
104
+ "ttypescript": "^1.5.13",
105
+ "typescript": "^4.7.2"
106
106
  },
107
107
  "peerDependencies": {
108
108
  "testcafe": "^1.7.1"
109
109
  },
110
110
  "engines": {
111
- "node": ">=8.9.0"
111
+ "node": ">=12.13.0"
112
112
  }
113
113
  }
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export default Eyes;
2
2
  export type Driver = TestController & { __applitoolsBrand?: never; };
3
- export type Element = (globalThis.Selector | NodeSnapshot) & { __applitoolsBrand?: never; };
3
+ export type Element = (NodeSnapshot | globalThis.Selector) & { __applitoolsBrand?: never; };
4
4
  export type Selector = globalThis.Selector & { __applitoolsBrand?: never; };
5
5
  export class Eyes {
6
6
  static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
@@ -419,10 +419,10 @@ export class Configuration implements Required<ConfigurationPlain> {
419
419
  setConcurrentSessions(concurrentSessions: number): Configuration;
420
420
  get browsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo>;
421
421
  set browsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo>);
422
- getBrowsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }>;
423
- setBrowsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }>): Configuration;
424
- addBrowsers(...browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }>): Configuration;
425
- addBrowser(browserInfo: DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }): Configuration;
422
+ getBrowsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>;
423
+ setBrowsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>): Configuration;
424
+ addBrowsers(...browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>): Configuration;
425
+ addBrowser(browserInfo: DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo): Configuration;
426
426
  addBrowser(width: number, height: number, name?: BrowserTypePlain): Configuration;
427
427
  addDeviceEmulation(deviceName: DeviceNamePlain, screenOrientation?: ScreenOrientationPlain): Configuration;
428
428
  get visualGridOptions(): { [key: string]: any; };
@@ -787,7 +787,7 @@ export enum MatchLevel {
787
787
  Strict = 'Strict',
788
788
  Exact = 'Exact'
789
789
  }
790
- export type ScreenOrientationPlain = "portrait" | "landscape";
790
+ export type ScreenOrientationPlain = "landscape" | "portrait";
791
791
  export enum ScreenOrientation {
792
792
  PORTRAIT = 'portrait',
793
793
  LANDSCAPE = 'landscape'
@@ -797,7 +797,7 @@ export enum SessionType {
797
797
  SEQUENTIAL = 'SEQUENTIAL',
798
798
  PROGRESSION = 'PROGRESSION'
799
799
  }
800
- export type StitchModePlain = "Scroll" | "CSS";
800
+ export type StitchModePlain = "CSS" | "Scroll";
801
801
  export enum StitchMode {
802
802
  SCROLL = 'Scroll',
803
803
  CSS = 'CSS'
@@ -985,8 +985,8 @@ export type ImageMatchSettingsPlain = {
985
985
  layoutRegions?: Array<RegionPlain>;
986
986
  strictRegions?: Array<RegionPlain>;
987
987
  contentRegions?: Array<RegionPlain>;
988
- floatingRegions?: Array<FloatingMatchSettingsPlain | RegionPlain>;
989
- accessibilityRegions?: Array<AccessibilityMatchSettingsPlain | RegionPlain>;
988
+ floatingRegions?: Array<RegionPlain | FloatingMatchSettingsPlain>;
989
+ accessibilityRegions?: Array<RegionPlain | AccessibilityMatchSettingsPlain>;
990
990
  accessibilitySettings?: AccessibilitySettings;
991
991
  };
992
992
  export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
@@ -1037,16 +1037,16 @@ export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
1037
1037
  set content(content: Array<RegionPlain>);
1038
1038
  getContentRegions(): Array<Region>;
1039
1039
  setContentRegions(contentRegions: Array<RegionPlain>): void;
1040
- get floatingRegions(): Array<FloatingMatchSettingsPlain | RegionPlain>;
1041
- set floatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain | RegionPlain>);
1042
- get floating(): Array<FloatingMatchSettingsPlain | RegionPlain>;
1043
- set floating(floating: Array<FloatingMatchSettingsPlain | RegionPlain>);
1040
+ get floatingRegions(): Array<RegionPlain | FloatingMatchSettingsPlain>;
1041
+ set floatingRegions(floatingRegions: Array<RegionPlain | FloatingMatchSettingsPlain>);
1042
+ get floating(): Array<RegionPlain | FloatingMatchSettingsPlain>;
1043
+ set floating(floating: Array<RegionPlain | FloatingMatchSettingsPlain>);
1044
1044
  getFloatingRegions(): Array<FloatingMatchSettings>;
1045
1045
  setFloatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain>): void;
1046
- get accessibilityRegions(): Array<AccessibilityMatchSettingsPlain | RegionPlain>;
1047
- set accessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain | RegionPlain>);
1048
- get accessibility(): Array<AccessibilityMatchSettingsPlain | RegionPlain>;
1049
- set accessibility(accessibility: Array<AccessibilityMatchSettingsPlain | RegionPlain>);
1046
+ get accessibilityRegions(): Array<RegionPlain | AccessibilityMatchSettingsPlain>;
1047
+ set accessibilityRegions(accessibilityRegions: Array<RegionPlain | AccessibilityMatchSettingsPlain>);
1048
+ get accessibility(): Array<RegionPlain | AccessibilityMatchSettingsPlain>;
1049
+ set accessibility(accessibility: Array<RegionPlain | AccessibilityMatchSettingsPlain>);
1050
1050
  getAccessibilityRegions(): Array<AccessibilityMatchSettings>;
1051
1051
  setAccessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain>): void;
1052
1052
  get accessibilitySettings(): AccessibilitySettings;
@@ -1075,7 +1075,7 @@ export class Location implements Required<LocationPlain> {
1075
1075
  getY(): number;
1076
1076
  setY(y: number): void;
1077
1077
  }
1078
- export type LogHandlerPlain = CustomLogHandlerPlain | FileLogHandlerPlain | ConsoleLogHandlerPlain;
1078
+ export type LogHandlerPlain = CustomLogHandlerPlain | ConsoleLogHandlerPlain | FileLogHandlerPlain;
1079
1079
  export type CustomLogHandlerPlain = {
1080
1080
  log(message: any): void;
1081
1081
  warn?(message: any): void;
@@ -1454,14 +1454,14 @@ export type TestResultContainerPlain = { readonly exception?: Error; readonly te
1454
1454
  readonly layoutMatches?: number;
1455
1455
  readonly noneMatches?: number;
1456
1456
  readonly url?: string;
1457
- }; readonly browserInfo?: { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "portrait" | "landscape"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "portrait" | "landscape"; }; }; };
1457
+ }; readonly browserInfo?: { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "landscape" | "portrait"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "landscape" | "portrait"; }; }; };
1458
1458
  export class TestResultContainer implements Required<TestResultContainerPlain> {
1459
1459
  get testResults(): TestResultsPlain;
1460
1460
  getTestResults(): TestResults;
1461
1461
  get exception(): Error;
1462
1462
  getException(): Error;
1463
- get browserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "portrait" | "landscape"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "portrait" | "landscape"; }; };
1464
- getBrowserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "portrait" | "landscape"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "portrait" | "landscape"; }; };
1463
+ get browserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "landscape" | "portrait"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "landscape" | "portrait"; }; };
1464
+ getBrowserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "landscape" | "portrait"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "landscape" | "portrait"; }; };
1465
1465
  }
1466
1466
  export type TestResultsSummaryPlain = {
1467
1467
  results: Array<TestResultContainerPlain>;
@@ -1510,7 +1510,6 @@ export class Logger {
1510
1510
  open(): void;
1511
1511
  close(): void;
1512
1512
  tag(name: string, value: any): void;
1513
- extend(options?: import('node_modules/@applitools/logger/types/logger.d.ts').ExtendOptions): Logger;
1514
1513
  extend(label?: string): Logger;
1515
1514
  }
1516
1515
  export function closeBatch(spec: { closeBatches(options: { settings: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }; }): Promise<void>; }): (options: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }) => Promise<void>;