@applitools/eyes-testcafe 1.16.0 → 1.17.0

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
@@ -8,6 +8,32 @@
8
8
 
9
9
 
10
10
 
11
+
12
+
13
+
14
+ ## 1.17.0 - 2022/6/1
15
+
16
+ ### Features
17
+ - Dorp support for Node.js versions <=12
18
+ ### Bug fixes
19
+ - Fixed incorrect calculation of coded regions in classic mode when using CSS stitching
20
+
21
+ ## 1.16.2 - 2022/5/27
22
+
23
+ ### Features
24
+ ### Bug fixes
25
+ - Fixed `CheckSetting`'s `fully` being overridden by `Configuration`'s `forceFullPageScreenshot`
26
+ - Set EyesExceptions (such as new test, diffs exception and failed test exception) to exception property in TestResultsSummary
27
+ - Returned support of `showLogs` in configuration file and object
28
+ - Improve error message when failed to set viewport size
29
+
30
+ ## 1.16.1 - 2022/5/19
31
+
32
+ ### Features
33
+ - Support Galaxy S22 `DeviceName.Galaxy_S22` emulation device
34
+ ### Bug fixes
35
+ - Fixed the error with importing `testcafe` module
36
+
11
37
  ## 1.16.0 - 2022/5/17
12
38
 
13
39
  ### Features
package/dist/api.js CHANGED
@@ -1,32 +1,24 @@
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];
8
12
  }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
15
  };
24
16
  Object.defineProperty(exports, "__esModule", { value: true });
25
17
  exports.BatchClose = exports.Target = exports.CheckSettings = exports.Configuration = exports.Eyes = void 0;
26
18
  const eyes_sdk_core_1 = require("@applitools/eyes-sdk-core");
27
- const api = __importStar(require("@applitools/eyes-api"));
28
- const legacy = __importStar(require("./legacy"));
29
- const spec = __importStar(require("./spec-driver"));
19
+ const api = require("@applitools/eyes-api");
20
+ const legacy = require("./legacy");
21
+ const spec = require("./spec-driver");
30
22
  process.env.APPLITOOLS_SCRIPT_RESULT_MAX_BYTE_LENGTH = '4718592';
31
23
  process.env.APPLITOOLS_SCRIPT_REMOVE_REVERSE_PROXY_URL_PREFIXES = 'true';
32
24
  const sdk = (0, eyes_sdk_core_1.makeSDK)({
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,48 +1,21 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __rest = (this && this.__rest) || function (s, e) {
22
- var t = {};
23
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
24
- t[p] = s[p];
25
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
26
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
27
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
28
- t[p[i]] = s[p[i]];
29
- }
30
- return t;
31
- };
32
2
  Object.defineProperty(exports, "__esModule", { value: true });
33
3
  exports.transformCheckSettings = exports.transformConfig = exports.LegacyTestCafeEyesMixin = void 0;
34
- const utils = __importStar(require("@applitools/utils"));
35
- const api = __importStar(require("@applitools/eyes-api"));
36
- const fs = __importStar(require("fs"));
37
- const path = __importStar(require("path"));
38
- const spec = __importStar(require("./spec-driver"));
4
+ const utils = require("@applitools/utils");
5
+ const api = require("@applitools/eyes-api");
6
+ const fs = require("fs");
7
+ const path = require("path");
8
+ const spec = require("./spec-driver");
39
9
  const eyes_sdk_core_1 = require("@applitools/eyes-sdk-core");
40
10
  function LegacyTestCafeEyesMixin(Eyes) {
41
11
  return class TestCafeEyes extends Eyes {
42
12
  constructor(runnerOrConfigOrOptions, configOrRunner) {
43
13
  var _a, _b, _c;
44
14
  if (utils.types.isNull(runnerOrConfigOrOptions) || utils.types.has(runnerOrConfigOrOptions, 'configPath')) {
45
- 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
+ });
46
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 });
47
20
  super(runner, transformConfig(testcafeConfig));
48
21
  this._testcafeConfig = testcafeConfig;
@@ -54,8 +27,8 @@ function LegacyTestCafeEyesMixin(Eyes) {
54
27
  async open(driverOrOptions, configOrAppName, testName, viewportSize, sessionType) {
55
28
  let driver, config;
56
29
  if (utils.types.has(driverOrOptions, 't')) {
57
- const { t } = driverOrOptions, testcafeConfig = __rest(driverOrOptions, ["t"]);
58
- this._testcafeConfig = Object.assign(Object.assign({}, this._testcafeConfig), testcafeConfig);
30
+ const { t, ...testcafeConfig } = driverOrOptions;
31
+ this._testcafeConfig = { ...this._testcafeConfig, ...testcafeConfig };
59
32
  driver = t;
60
33
  config = transformConfig(this._testcafeConfig);
61
34
  }
@@ -77,12 +50,13 @@ function LegacyTestCafeEyesMixin(Eyes) {
77
50
  return super.checkWindow(nameOrSetting, timeout, fully);
78
51
  }
79
52
  async close(throwErr = true) {
80
- 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));
81
55
  }
82
56
  async waitForResults(throwErr = true) {
83
- var _a;
84
- const resultsSummary = await this.runner.getAllTestResults(throwErr && getFailTestcafeOnDiff(this._testcafeConfig));
85
- 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) {
86
60
  const results = resultsSummary.getAllResults().map(r => r.getTestResults());
87
61
  const includeSubTests = false;
88
62
  const markNewAsPassed = true;
@@ -94,17 +68,8 @@ function LegacyTestCafeEyesMixin(Eyes) {
94
68
  };
95
69
  }
96
70
  exports.LegacyTestCafeEyesMixin = LegacyTestCafeEyesMixin;
97
- function getFailTestcafeOnDiff(_testcafeConfig) {
98
- if (utils.general.isDefined(process.env.APPLITOOLS_FAIL_TESTCAFE_ON_DIFF)) {
99
- return String(process.env.APPLITOOLS_FAIL_TESTCAFE_ON_DIFF).toLowerCase() === 'true';
100
- }
101
- if (_testcafeConfig && utils.general.isDefined(_testcafeConfig.failTestcafeOnDiff)) {
102
- return String(_testcafeConfig.failTestcafeOnDiff).toLowerCase() === 'true';
103
- }
104
- return true;
105
- }
106
71
  function transformConfig(options) {
107
- const config = Object.assign({}, options);
72
+ const config = { ...options };
108
73
  if (options.concurrency)
109
74
  config.concurrentSessions = options.concurrency;
110
75
  if (options.envName)
@@ -131,12 +96,14 @@ function transformConfig(options) {
131
96
  }
132
97
  if (utils.types.isString(options.proxy))
133
98
  config.proxy = { url: options.proxy };
99
+ if (options.showLogs)
100
+ config.logs = { type: 'console' };
134
101
  return config;
135
102
  }
136
103
  exports.transformConfig = transformConfig;
137
104
  function transformCheckSettings(options) {
138
105
  var _a;
139
- const settings = Object.assign({}, options);
106
+ const settings = { ...options };
140
107
  settings.name = options.tag;
141
108
  settings.hooks = options.scriptHooks;
142
109
  settings.fully = (_a = options.fully) !== null && _a !== void 0 ? _a : options.target !== 'region';
@@ -148,7 +115,7 @@ function transformCheckSettings(options) {
148
115
  ? options.accessibility
149
116
  : [options.accessibility];
150
117
  settings.accessibilityRegions = accessibilityRegions.map(accessibilityRegion => {
151
- const { accessibilityType } = accessibilityRegion, region = __rest(accessibilityRegion, ["accessibilityType"]);
118
+ const { accessibilityType, ...region } = accessibilityRegion;
152
119
  if (utils.types.has(region, 'selector') && !utils.types.has(region, 'type')) {
153
120
  return { region: region.selector, accessibilityType };
154
121
  }
@@ -160,7 +127,7 @@ function transformCheckSettings(options) {
160
127
  if (options.floating) {
161
128
  const floatingRegions = utils.types.isArray(options.floating) ? options.floating : [options.floating];
162
129
  settings.floatingRegions = floatingRegions.map(floatingRegion => {
163
- const { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset } = floatingRegion, region = __rest(floatingRegion, ["maxUpOffset", "maxDownOffset", "maxLeftOffset", "maxRightOffset"]);
130
+ const { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset, ...region } = floatingRegion;
164
131
  if (utils.types.has(region, 'selector') && !utils.types.has(region, 'type')) {
165
132
  return { maxUpOffset, maxDownOffset, maxLeftOffset, maxRightOffset, region: region.selector };
166
133
  }
@@ -1,28 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
2
  Object.defineProperty(exports, "__esModule", { value: true });
22
3
  exports.build = exports.waitUntilDisplayed = exports.scrollIntoView = exports.hover = exports.type = exports.click = exports.takeScreenshot = exports.visit = exports.getUrl = exports.getTitle = exports.getDriverInfo = exports.setViewportSize = exports.findElements = exports.findElement = exports.childContext = exports.mainContext = exports.executeScript = exports.isStaleElementError = exports.extractSelector = exports.transformSelector = exports.transformElement = exports.isSelector = exports.isElement = exports.isDriver = void 0;
23
- const testcafe = __importStar(require("testcafe"));
24
- const fs = __importStar(require("fs"));
25
- const utils = __importStar(require("@applitools/utils"));
4
+ const testcafe = require("testcafe");
5
+ const fs = require("fs");
6
+ const utils = require("@applitools/utils");
26
7
  function XPathSelector(selector, options) {
27
8
  const getElementsByXPath = testcafe.Selector(xpath => {
28
9
  const iterator = document.evaluate(xpath, document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-testcafe",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
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.0",
73
- "@applitools/eyes-sdk-core": "13.6.11",
74
- "@applitools/utils": "1.3.0",
75
- "@applitools/visual-grid-client": "15.12.23"
72
+ "@applitools/eyes-api": "1.5.0",
73
+ "@applitools/eyes-sdk-core": "13.6.25",
74
+ "@applitools/utils": "1.3.1",
75
+ "@applitools/visual-grid-client": "15.12.36"
76
76
  },
77
77
  "devDependencies": {
78
- "@applitools/api-extractor": "1.2.7",
79
- "@applitools/bongo": "^2.0.3",
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.9",
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;
@@ -673,7 +674,7 @@ export enum CorsIframeHandle {
673
674
  KEEP = 'KEEP',
674
675
  SNAPSHOT = 'SNAPSHOT'
675
676
  }
676
- export type DeviceNamePlain = "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 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";
677
+ export type DeviceNamePlain = "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";
677
678
  export enum DeviceName {
678
679
  Blackberry_PlayBook = 'Blackberry PlayBook',
679
680
  BlackBerry_Z30 = 'BlackBerry Z30',
@@ -694,6 +695,7 @@ export enum DeviceName {
694
695
  Galaxy_S10 = 'Galaxy S10',
695
696
  Galaxy_S10_Plus = 'Galaxy S10 Plus',
696
697
  Galaxy_S20 = 'Galaxy S20',
698
+ Galaxy_S22 = 'Galaxy S22',
697
699
  Galaxy_Tab_S7 = 'Galaxy Tab S7',
698
700
  iPad = 'iPad',
699
701
  iPad_6th_Gen = 'iPad 6th Gen',
@@ -785,7 +787,7 @@ export enum MatchLevel {
785
787
  Strict = 'Strict',
786
788
  Exact = 'Exact'
787
789
  }
788
- export type ScreenOrientationPlain = "portrait" | "landscape";
790
+ export type ScreenOrientationPlain = "landscape" | "portrait";
789
791
  export enum ScreenOrientation {
790
792
  PORTRAIT = 'portrait',
791
793
  LANDSCAPE = 'landscape'
@@ -795,7 +797,7 @@ export enum SessionType {
795
797
  SEQUENTIAL = 'SEQUENTIAL',
796
798
  PROGRESSION = 'PROGRESSION'
797
799
  }
798
- export type StitchModePlain = "Scroll" | "CSS";
800
+ export type StitchModePlain = "CSS" | "Scroll";
799
801
  export enum StitchMode {
800
802
  SCROLL = 'Scroll',
801
803
  CSS = 'CSS'
@@ -983,8 +985,8 @@ export type ImageMatchSettingsPlain = {
983
985
  layoutRegions?: Array<RegionPlain>;
984
986
  strictRegions?: Array<RegionPlain>;
985
987
  contentRegions?: Array<RegionPlain>;
986
- floatingRegions?: Array<FloatingMatchSettingsPlain | RegionPlain>;
987
- accessibilityRegions?: Array<AccessibilityMatchSettingsPlain | RegionPlain>;
988
+ floatingRegions?: Array<RegionPlain | FloatingMatchSettingsPlain>;
989
+ accessibilityRegions?: Array<RegionPlain | AccessibilityMatchSettingsPlain>;
988
990
  accessibilitySettings?: AccessibilitySettings;
989
991
  };
990
992
  export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
@@ -1035,16 +1037,16 @@ export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
1035
1037
  set content(content: Array<RegionPlain>);
1036
1038
  getContentRegions(): Array<Region>;
1037
1039
  setContentRegions(contentRegions: Array<RegionPlain>): void;
1038
- get floatingRegions(): Array<FloatingMatchSettingsPlain | RegionPlain>;
1039
- set floatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain | RegionPlain>);
1040
- get floating(): Array<FloatingMatchSettingsPlain | RegionPlain>;
1041
- 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>);
1042
1044
  getFloatingRegions(): Array<FloatingMatchSettings>;
1043
1045
  setFloatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain>): void;
1044
- get accessibilityRegions(): Array<AccessibilityMatchSettingsPlain | RegionPlain>;
1045
- set accessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain | RegionPlain>);
1046
- get accessibility(): Array<AccessibilityMatchSettingsPlain | RegionPlain>;
1047
- 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>);
1048
1050
  getAccessibilityRegions(): Array<AccessibilityMatchSettings>;
1049
1051
  setAccessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain>): void;
1050
1052
  get accessibilitySettings(): AccessibilitySettings;
@@ -1073,7 +1075,7 @@ export class Location implements Required<LocationPlain> {
1073
1075
  getY(): number;
1074
1076
  setY(y: number): void;
1075
1077
  }
1076
- export type LogHandlerPlain = CustomLogHandlerPlain | FileLogHandlerPlain | ConsoleLogHandlerPlain;
1078
+ export type LogHandlerPlain = CustomLogHandlerPlain | ConsoleLogHandlerPlain | FileLogHandlerPlain;
1077
1079
  export type CustomLogHandlerPlain = {
1078
1080
  log(message: any): void;
1079
1081
  warn?(message: any): void;
@@ -1452,14 +1454,14 @@ export type TestResultContainerPlain = { readonly exception?: Error; readonly te
1452
1454
  readonly layoutMatches?: number;
1453
1455
  readonly noneMatches?: number;
1454
1456
  readonly url?: string;
1455
- }; 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 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"; }; }; };
1456
1458
  export class TestResultContainer implements Required<TestResultContainerPlain> {
1457
1459
  get testResults(): TestResultsPlain;
1458
1460
  getTestResults(): TestResults;
1459
1461
  get exception(): Error;
1460
1462
  getException(): Error;
1461
- 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 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"; }; };
1462
- 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 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"; }; };
1463
1465
  }
1464
1466
  export type TestResultsSummaryPlain = {
1465
1467
  results: Array<TestResultContainerPlain>;
@@ -1508,7 +1510,6 @@ export class Logger {
1508
1510
  open(): void;
1509
1511
  close(): void;
1510
1512
  tag(name: string, value: any): void;
1511
- extend(options?: import('node_modules/@applitools/eyes-api/node_modules/@applitools/logger/types/logger.d.ts').ExtendOptions): Logger;
1512
1513
  extend(label?: string): Logger;
1513
1514
  }
1514
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>;