@applitools/eyes-testcafe 1.16.1 → 1.17.1

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
@@ -10,6 +10,29 @@
10
10
 
11
11
 
12
12
 
13
+
14
+ ## 1.17.1 - 2022/6/2
15
+
16
+ ### Features
17
+ ### Bug fixes
18
+ - Fix rounding error of image size when scaling introduces fractions
19
+
20
+ ## 1.17.0 - 2022/6/1
21
+
22
+ ### Features
23
+ - Dorp support for Node.js versions <=12
24
+ ### Bug fixes
25
+ - Fixed incorrect calculation of coded regions in classic mode when using CSS stitching
26
+
27
+ ## 1.16.2 - 2022/5/27
28
+
29
+ ### Features
30
+ ### Bug fixes
31
+ - Fixed `CheckSetting`'s `fully` being overridden by `Configuration`'s `forceFullPageScreenshot`
32
+ - Set EyesExceptions (such as new test, diffs exception and failed test exception) to exception property in TestResultsSummary
33
+ - Returned support of `showLogs` in configuration file and object
34
+ - Improve error message when failed to set viewport size
35
+
13
36
  ## 1.16.1 - 2022/5/19
14
37
 
15
38
  ### Features
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)
@@ -112,12 +96,14 @@ function transformConfig(options) {
112
96
  }
113
97
  if (utils.types.isString(options.proxy))
114
98
  config.proxy = { url: options.proxy };
99
+ if (options.showLogs)
100
+ config.logs = { type: 'console' };
115
101
  return config;
116
102
  }
117
103
  exports.transformConfig = transformConfig;
118
104
  function transformCheckSettings(options) {
119
105
  var _a;
120
- const settings = Object.assign({}, options);
106
+ const settings = { ...options };
121
107
  settings.name = options.tag;
122
108
  settings.hooks = options.scriptHooks;
123
109
  settings.fully = (_a = options.fully) !== null && _a !== void 0 ? _a : options.target !== 'region';
@@ -129,7 +115,7 @@ function transformCheckSettings(options) {
129
115
  ? options.accessibility
130
116
  : [options.accessibility];
131
117
  settings.accessibilityRegions = accessibilityRegions.map(accessibilityRegion => {
132
- const { accessibilityType } = accessibilityRegion, region = __rest(accessibilityRegion, ["accessibilityType"]);
118
+ const { accessibilityType, ...region } = accessibilityRegion;
133
119
  if (utils.types.has(region, 'selector') && !utils.types.has(region, 'type')) {
134
120
  return { region: region.selector, accessibilityType };
135
121
  }
@@ -141,7 +127,7 @@ function transformCheckSettings(options) {
141
127
  if (options.floating) {
142
128
  const floatingRegions = utils.types.isArray(options.floating) ? options.floating : [options.floating];
143
129
  settings.floatingRegions = floatingRegions.map(floatingRegion => {
144
- const { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset } = floatingRegion, region = __rest(floatingRegion, ["maxUpOffset", "maxDownOffset", "maxLeftOffset", "maxRightOffset"]);
130
+ const { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset, ...region } = floatingRegion;
145
131
  if (utils.types.has(region, 'selector') && !utils.types.has(region, 'type')) {
146
132
  return { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset, region: region.selector };
147
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-testcafe",
3
- "version": "1.16.1",
3
+ "version": "1.17.1",
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.16",
74
- "@applitools/utils": "1.3.0",
75
- "@applitools/visual-grid-client": "15.12.28"
72
+ "@applitools/eyes-api": "1.5.1",
73
+ "@applitools/eyes-sdk-core": "13.6.28",
74
+ "@applitools/utils": "1.3.3",
75
+ "@applitools/visual-grid-client": "15.12.37"
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.1",
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.8",
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; };
@@ -607,6 +607,7 @@ export type TestCafeConfiguration = {
607
607
  concurrency?: number;
608
608
  failTestcafeOnDiff?: boolean;
609
609
  tapDirPath?: string;
610
+ showLogs?: boolean;
610
611
  };
611
612
  export type TestCafeCheckSettings = {
612
613
  tag?: string;
@@ -786,7 +787,7 @@ export enum MatchLevel {
786
787
  Strict = 'Strict',
787
788
  Exact = 'Exact'
788
789
  }
789
- export type ScreenOrientationPlain = "portrait" | "landscape";
790
+ export type ScreenOrientationPlain = "landscape" | "portrait";
790
791
  export enum ScreenOrientation {
791
792
  PORTRAIT = 'portrait',
792
793
  LANDSCAPE = 'landscape'
@@ -796,7 +797,7 @@ export enum SessionType {
796
797
  SEQUENTIAL = 'SEQUENTIAL',
797
798
  PROGRESSION = 'PROGRESSION'
798
799
  }
799
- export type StitchModePlain = "Scroll" | "CSS";
800
+ export type StitchModePlain = "CSS" | "Scroll";
800
801
  export enum StitchMode {
801
802
  SCROLL = 'Scroll',
802
803
  CSS = 'CSS'
@@ -984,8 +985,8 @@ export type ImageMatchSettingsPlain = {
984
985
  layoutRegions?: Array<RegionPlain>;
985
986
  strictRegions?: Array<RegionPlain>;
986
987
  contentRegions?: Array<RegionPlain>;
987
- floatingRegions?: Array<FloatingMatchSettingsPlain | RegionPlain>;
988
- accessibilityRegions?: Array<AccessibilityMatchSettingsPlain | RegionPlain>;
988
+ floatingRegions?: Array<RegionPlain | FloatingMatchSettingsPlain>;
989
+ accessibilityRegions?: Array<RegionPlain | AccessibilityMatchSettingsPlain>;
989
990
  accessibilitySettings?: AccessibilitySettings;
990
991
  };
991
992
  export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
@@ -1036,16 +1037,16 @@ export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
1036
1037
  set content(content: Array<RegionPlain>);
1037
1038
  getContentRegions(): Array<Region>;
1038
1039
  setContentRegions(contentRegions: Array<RegionPlain>): void;
1039
- get floatingRegions(): Array<FloatingMatchSettingsPlain | RegionPlain>;
1040
- set floatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain | RegionPlain>);
1041
- get floating(): Array<FloatingMatchSettingsPlain | RegionPlain>;
1042
- 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>);
1043
1044
  getFloatingRegions(): Array<FloatingMatchSettings>;
1044
1045
  setFloatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain>): void;
1045
- get accessibilityRegions(): Array<AccessibilityMatchSettingsPlain | RegionPlain>;
1046
- set accessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain | RegionPlain>);
1047
- get accessibility(): Array<AccessibilityMatchSettingsPlain | RegionPlain>;
1048
- 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>);
1049
1050
  getAccessibilityRegions(): Array<AccessibilityMatchSettings>;
1050
1051
  setAccessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain>): void;
1051
1052
  get accessibilitySettings(): AccessibilitySettings;
@@ -1074,7 +1075,7 @@ export class Location implements Required<LocationPlain> {
1074
1075
  getY(): number;
1075
1076
  setY(y: number): void;
1076
1077
  }
1077
- export type LogHandlerPlain = CustomLogHandlerPlain | FileLogHandlerPlain | ConsoleLogHandlerPlain;
1078
+ export type LogHandlerPlain = CustomLogHandlerPlain | ConsoleLogHandlerPlain | FileLogHandlerPlain;
1078
1079
  export type CustomLogHandlerPlain = {
1079
1080
  log(message: any): void;
1080
1081
  warn?(message: any): void;
@@ -1453,14 +1454,14 @@ export type TestResultContainerPlain = { readonly exception?: Error; readonly te
1453
1454
  readonly layoutMatches?: number;
1454
1455
  readonly noneMatches?: number;
1455
1456
  readonly url?: string;
1456
- }; 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"; }; }; };
1457
1458
  export class TestResultContainer implements Required<TestResultContainerPlain> {
1458
1459
  get testResults(): TestResultsPlain;
1459
1460
  getTestResults(): TestResults;
1460
1461
  get exception(): Error;
1461
1462
  getException(): Error;
1462
- 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"; }; };
1463
- 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"; }; };
1464
1465
  }
1465
1466
  export type TestResultsSummaryPlain = {
1466
1467
  results: Array<TestResultContainerPlain>;
@@ -1509,7 +1510,6 @@ export class Logger {
1509
1510
  open(): void;
1510
1511
  close(): void;
1511
1512
  tag(name: string, value: any): void;
1512
- extend(options?: import('node_modules/@applitools/logger/types/logger.d.ts').ExtendOptions): Logger;
1513
1513
  extend(label?: string): Logger;
1514
1514
  }
1515
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>;