@applitools/eyes-selenium 4.59.3 → 4.59.5

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,28 @@
8
8
 
9
9
 
10
10
 
11
+ ## 4.59.5 - 2022/9/22
12
+
13
+ ### Features
14
+ - Don't fail `eyes.open` when there is a failure to set viewport size in `UFG`.
15
+ - Added support for lazy loading views in android native apps
16
+ - Using `lazyLoad.waitingTime` as a delay between stitches by default
17
+ - Added `Sony Xperia 10 II` emulation device
18
+ - Added `iPhone 14` and `iPhone 14 Pro Max` ios devices
19
+ ### Bug fixes
20
+ - Fixed incorrect calculation of the target element position.
21
+
22
+ ## 4.59.4 - 2022/7/28
23
+
24
+ ### Features
25
+ - Added new android devices
26
+ ### Bug fixes
27
+ - Fixed bug where a failure in a single UFG environment fails all other environments in the same configuration
28
+ - Fixed various issues during taking screenshots in landscape orientation on some native devices
29
+ - Avoided unexpected touch actions during `check` on Android apps
30
+ - Better support in DOM slot element
31
+ - Fixed some issues with helper library usage
32
+
11
33
  ## 4.59.3 - 2022/7/5
12
34
 
13
35
  ### Features
package/dist/api.js CHANGED
@@ -27,14 +27,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.BatchClose = exports.Target = exports.CheckSettings = exports.Configuration = exports.Eyes = void 0;
30
- const eyes_sdk_core_1 = require("@applitools/eyes-sdk-core");
30
+ const core_1 = require("@applitools/core");
31
31
  const api = __importStar(require("@applitools/eyes-api"));
32
32
  const spec = __importStar(require("@applitools/spec-driver-selenium"));
33
- const sdk = (0, eyes_sdk_core_1.makeSDK)({
34
- name: 'eyes.selenium',
35
- version: `${require('../package.json').version}--${process.env.APPLITOOLS_SELENIUM_MAJOR_VERSION}`,
33
+ const sdk = (0, core_1.makeCore)({
34
+ agentId: `eyes-webdriverio/${require('../package.json').version}`,
36
35
  spec,
37
- VisualGridClient: require('@applitools/visual-grid-client'),
38
36
  });
39
37
  __exportStar(require("@applitools/eyes-api"), exports);
40
38
  class Eyes extends api.Eyes {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-selenium",
3
- "version": "4.59.3",
3
+ "version": "4.59.5",
4
4
  "description": "Applitools Eyes SDK for Selenium WebDriver",
5
5
  "keywords": [
6
6
  "eyes-selenium",
@@ -65,18 +65,17 @@
65
65
  }
66
66
  },
67
67
  "dependencies": {
68
- "@applitools/eyes-api": "1.7.3",
69
- "@applitools/eyes-sdk-core": "13.8.10",
70
- "@applitools/spec-driver-selenium": "1.3.15",
71
- "@applitools/visual-grid-client": "15.13.4"
68
+ "@applitools/core": "1.0.3",
69
+ "@applitools/eyes-api": "1.7.8",
70
+ "@applitools/spec-driver-selenium": "1.3.22"
72
71
  },
73
72
  "devDependencies": {
74
73
  "@applitools/api-extractor": "1.2.9",
75
- "@applitools/bongo": "^2.1.6",
74
+ "@applitools/bongo": "^2.2.0",
76
75
  "@applitools/scripts": "1.1.0",
77
- "@applitools/sdk-coverage-tests": "2.3.19",
78
- "@applitools/sdk-shared": "0.9.13",
79
- "@applitools/test-utils": "1.4.2",
76
+ "@applitools/sdk-coverage-tests": "2.3.20",
77
+ "@applitools/sdk-shared": "0.9.14",
78
+ "@applitools/test-utils": "1.5.1",
80
79
  "@types/node": "12",
81
80
  "@types/selenium-webdriver": "^4.1.1",
82
81
  "@typescript-eslint/eslint-plugin": "^5.27.0",
package/types/index.d.ts CHANGED
@@ -1,6 +1,12 @@
1
- export type Driver = import('selenium-webdriver').WebDriver & { __applitoolsBrand?: never; };
2
- export type Element = import('selenium-webdriver').WebElement & { __applitoolsBrand?: never; };
3
- export type Selector = (import('selenium-webdriver').By | import('selenium-webdriver').RelativeBy | import('selenium-webdriver').ByHash | { using: string; value: string; } | ((webdriver: import('selenium-webdriver').WebDriver) => Promise<any>)) & { __applitoolsBrand?: never; };
1
+ export type Driver = {
2
+ getExecutor(): {};
3
+ __applitoolsBrand?: never;
4
+ };
5
+ export type Element = {
6
+ getRect(): Promise<{ x: number; y: number; width: number; height: number; }>;
7
+ __applitoolsBrand?: never;
8
+ };
9
+ export type Selector = ({ using: string; value: string; toObject(): Object; } | {} | ({ className: string; } | { css: string; } | { id: string; } | { js: string; } | { linkText: string; } | { name: string; } | { partialLinkText: string; } | { tagName: string; } | { xpath: string; }) | { using: string; value: string; } | ((webdriver: { getExecutor(): {}; }) => Promise<any>)) & { __applitoolsBrand?: never; };
4
10
  export class Eyes {
5
11
  static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
6
12
  constructor(runner?: EyesRunner, config?: ConfigurationPlain);
@@ -23,7 +29,7 @@ export class Eyes {
23
29
  check(checkSettings?: CheckSettingsPlain): Promise<MatchResult>;
24
30
  locate<TLocator extends string>(settings: VisualLocatorSettings<TLocator>): Promise<Record<TLocator, Array<RegionPlain>>>;
25
31
  extractTextRegions<TPattern extends string>(settings: OCRSettings<TPattern>): Promise<Record<TPattern, Array<TextRegion>>>;
26
- extractText(regions: Array<OCRRegion>): Promise<Array<string>>;
32
+ extractText(settings: Array<OCRRegion>): Promise<Array<string>>;
27
33
  close(throwErr?: boolean): Promise<TestResults>;
28
34
  abort(): Promise<TestResults>;
29
35
  getViewportSize(): Promise<RectangleSize>;
@@ -112,7 +118,14 @@ export type ConfigurationPlain = {
112
118
  apiKey?: string;
113
119
  serverUrl?: string;
114
120
  proxy?: ProxySettingsPlain;
115
- autProxy?: { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; };
121
+ autProxy?: {
122
+ url: string;
123
+ username?: string;
124
+ password?: string;
125
+ isHttpOnly?: boolean;
126
+ mode?: "Allow" | "Block";
127
+ domains?: Array<string>;
128
+ };
116
129
  isDisabled?: boolean;
117
130
  appName?: string;
118
131
  testName?: string;
@@ -157,7 +170,7 @@ export type ConfigurationPlain = {
157
170
  disableBrowserFetching?: boolean;
158
171
  };
159
172
  export class Configuration implements Required<ConfigurationPlain> {
160
- constructor(config?: ConfigurationPlain);
173
+ constructor(config?: ConfigurationPlain, spec?: { isElement(element: any): element is Element; isSelector(selector: any): selector is Selector; });
161
174
  get appName(): string;
162
175
  set appName(appName: string);
163
176
  getAppName(): string;
@@ -204,10 +217,38 @@ export class Configuration implements Required<ConfigurationPlain> {
204
217
  setProxy(proxy: ProxySettingsPlain): Configuration;
205
218
  setProxy(url: string, username?: string, password?: string, isHttpOnly?: boolean): Configuration;
206
219
  setProxy(isEnabled: false): Configuration;
207
- get autProxy(): { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; };
208
- set autProxy(autProxy: { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; });
209
- getAutProxy(): { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; };
210
- setAutProxy(autProxy: { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; }): Configuration;
220
+ get autProxy(): {
221
+ url: string;
222
+ username?: string;
223
+ password?: string;
224
+ isHttpOnly?: boolean;
225
+ mode?: "Allow" | "Block";
226
+ domains?: Array<string>;
227
+ };
228
+ set autProxy(autProxy: {
229
+ url: string;
230
+ username?: string;
231
+ password?: string;
232
+ isHttpOnly?: boolean;
233
+ mode?: "Allow" | "Block";
234
+ domains?: Array<string>;
235
+ });
236
+ getAutProxy(): {
237
+ url: string;
238
+ username?: string;
239
+ password?: string;
240
+ isHttpOnly?: boolean;
241
+ mode?: "Allow" | "Block";
242
+ domains?: Array<string>;
243
+ };
244
+ setAutProxy(autProxy: {
245
+ url: string;
246
+ username?: string;
247
+ password?: string;
248
+ isHttpOnly?: boolean;
249
+ mode?: "Allow" | "Block";
250
+ domains?: Array<string>;
251
+ }): Configuration;
211
252
  get batch(): BatchInfoPlain;
212
253
  set batch(batch: BatchInfoPlain);
213
254
  getBatch(): BatchInfo;
@@ -390,13 +431,24 @@ export type CheckSettingsPlain = {
390
431
  contentRegions?: Array<(RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | { region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); padding?: number | { top?: number; right?: number; bottom?: number; left?: number; }; regionId?: string; }>;
391
432
  floatingRegions?: Array<(RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
392
433
  region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
434
+ padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
435
+ regionId?: string;
436
+ offset?: { top?: number; bottom?: number; left?: number; right?: number; };
437
+ } | {
438
+ region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
439
+ padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
440
+ regionId?: string;
393
441
  maxUpOffset?: number;
394
442
  maxDownOffset?: number;
395
443
  maxLeftOffset?: number;
396
444
  maxRightOffset?: number;
445
+ }>;
446
+ accessibilityRegions?: Array<(RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
447
+ region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
448
+ padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
397
449
  regionId?: string;
450
+ type?: AccessibilityRegionTypePlain;
398
451
  }>;
399
- accessibilityRegions?: Array<(RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | { region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); type?: AccessibilityRegionTypePlain; regionId?: string; }>;
400
452
  disableBrowserFetching?: boolean;
401
453
  layoutBreakpoints?: boolean | Array<number>;
402
454
  visualGridOptions?: { [key: string]: any; };
@@ -409,7 +461,7 @@ export type CheckSettingsPlain = {
409
461
  lazyLoad?: boolean | { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; };
410
462
  };
411
463
  export class CheckSettings {
412
- constructor(settings?: CheckSettingsPlain);
464
+ constructor(settings?: CheckSettings | CheckSettingsPlain, spec?: { isElement(value: any): value is Element; isSelector(value: any): value is Selector; });
413
465
  withName(name: string): CheckSettings;
414
466
  region(region: LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })))): CheckSettings;
415
467
  shadow(selector: string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }): CheckSettings;
@@ -425,25 +477,40 @@ export class CheckSettings {
425
477
  contentRegions(...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | { region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); padding?: number | { top?: number; right?: number; bottom?: number; left?: number; }; regionId?: string; }>): CheckSettings;
426
478
  floatingRegion(region: {
427
479
  region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
480
+ padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
481
+ regionId?: string;
482
+ offset?: { top?: number; bottom?: number; left?: number; right?: number; };
483
+ }): CheckSettings;
484
+ floatingRegion(region: {
485
+ region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
486
+ padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
487
+ regionId?: string;
428
488
  maxUpOffset?: number;
429
489
  maxDownOffset?: number;
430
490
  maxLeftOffset?: number;
431
491
  maxRightOffset?: number;
432
- regionId?: string;
433
492
  }): CheckSettings;
434
493
  floatingRegion(region: LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))), maxUpOffset?: number, maxDownOffset?: number, maxLeftOffset?: number, maxRightOffset?: number): CheckSettings;
435
494
  floatingRegions(...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
436
495
  region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
437
- maxUpOffset?: number;
438
- maxDownOffset?: number;
439
- maxLeftOffset?: number;
440
- maxRightOffset?: number;
496
+ padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
441
497
  regionId?: string;
498
+ offset?: { top?: number; bottom?: number; left?: number; right?: number; };
442
499
  }>): CheckSettings;
443
500
  floatingRegions(maxOffset: number, ...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })))>): CheckSettings;
444
- accessibilityRegion(region: { region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); type?: AccessibilityRegionTypePlain; regionId?: string; }): CheckSettings;
501
+ accessibilityRegion(region: {
502
+ region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
503
+ padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
504
+ regionId?: string;
505
+ type?: AccessibilityRegionTypePlain;
506
+ }): CheckSettings;
445
507
  accessibilityRegion(region: LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))), type?: AccessibilityRegionTypePlain): CheckSettings;
446
- accessibilityRegions(...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | { region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); type?: AccessibilityRegionTypePlain; regionId?: string; }>): CheckSettings;
508
+ accessibilityRegions(...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
509
+ region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
510
+ padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
511
+ regionId?: string;
512
+ type?: AccessibilityRegionTypePlain;
513
+ }>): CheckSettings;
447
514
  accessibilityRegions(type: AccessibilityRegionTypePlain, ...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })))>): CheckSettings;
448
515
  scrollRootElement(scrollRootElement: Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })): CheckSettings;
449
516
  fully(fully?: boolean): CheckSettings;
@@ -461,14 +528,14 @@ export class CheckSettings {
461
528
  layoutBreakpoints(layoutBreakpoints?: boolean | Array<number>): CheckSettings;
462
529
  hook(name: string, script: string): CheckSettings;
463
530
  beforeRenderScreenshotHook(script: string): CheckSettings;
464
- visualGridOption(key: string, value: any): CheckSettings;
465
- visualGridOptions(options: { [key: string]: any; }): CheckSettings;
531
+ ufgOption(key: string, value: any): CheckSettings;
532
+ ufgOptions(options: { [key: string]: any; }): CheckSettings;
466
533
  renderId(renderId: string): CheckSettings;
467
534
  pageId(pageId: string): CheckSettings;
468
535
  variationGroupId(variationGroupId: string): CheckSettings;
469
536
  timeout(timeout: number): CheckSettings;
470
537
  waitBeforeCapture(waitBeforeCapture: number): CheckSettings;
471
- lazyLoad(options: { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; }): CheckSettings;
538
+ lazyLoad(options?: boolean | { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; }): CheckSettings;
472
539
  }
473
540
  export const Target: {
474
541
  window(): CheckSettings;
@@ -535,7 +602,7 @@ export enum CorsIframeHandle {
535
602
  KEEP = 'KEEP',
536
603
  SNAPSHOT = 'SNAPSHOT'
537
604
  }
538
- 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";
605
+ 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" | "Sony Xperia 10 II";
539
606
  export enum DeviceName {
540
607
  Blackberry_PlayBook = 'Blackberry PlayBook',
541
608
  BlackBerry_Z30 = 'BlackBerry Z30',
@@ -600,15 +667,18 @@ export enum DeviceName {
600
667
  Pixel_3_XL = 'Pixel 3 XL',
601
668
  Pixel_4 = 'Pixel 4',
602
669
  Pixel_4_XL = 'Pixel 4 XL',
603
- Pixel_5 = 'Pixel 5'
670
+ Pixel_5 = 'Pixel 5',
671
+ Sony_Xperia_10_II = 'Sony Xperia 10 II'
604
672
  }
605
673
  export type FailureReportPlain = "IMMEDIATE" | "ON_CLOSE";
606
674
  export enum FailureReport {
607
675
  IMMEDIATE = 'IMMEDIATE',
608
676
  ON_CLOSE = 'ON_CLOSE'
609
677
  }
610
- export type IosDeviceNamePlain = "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)";
678
+ export type IosDeviceNamePlain = "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "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)";
611
679
  export enum IosDeviceName {
680
+ iPhone_14_Pro_Max = 'iPhone 14 Pro Max',
681
+ iPhone_14 = 'iPhone 14',
612
682
  iPhone_13_Pro_Max = 'iPhone 13 Pro Max',
613
683
  iPhone_13_Pro = 'iPhone 13 Pro',
614
684
  iPhone_13 = 'iPhone 13',
@@ -638,11 +708,13 @@ export enum IosVersion {
638
708
  ONE_VERSION_BACK = 'latest-1',
639
709
  LATEST_ONE_VERSION_BACK = 'latest-1'
640
710
  }
641
- export type AndroidDeviceNamePlain = "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Galaxy S20 Plus" | "Galaxy S21" | "Galaxy S21 Plus" | "Galaxy S21 Ultra";
711
+ export type AndroidDeviceNamePlain = "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21" | "Galaxy S21 Plus" | "Galaxy S21 Ultra" | "Galaxy S22 Plus" | "Galaxy Tab S8" | "Xiaomi Redmi Note 11" | "Xiaomi Redmi Note 11 Pro";
642
712
  export enum AndroidDeviceName {
643
713
  Pixel_3_XL = 'Pixel 3 XL',
644
714
  Pixel_4 = 'Pixel 4',
645
715
  Pixel_4_XL = 'Pixel 4 XL',
716
+ Pixel_5 = 'Pixel 5',
717
+ Pixel_6 = 'Pixel 6',
646
718
  Galaxy_Note_8 = 'Galaxy Note 8',
647
719
  Galaxy_Note_9 = 'Galaxy Note 9',
648
720
  Galaxy_S8 = 'Galaxy S8',
@@ -657,7 +729,13 @@ export enum AndroidDeviceName {
657
729
  Galaxy_S20_Plus = 'Galaxy S20 Plus',
658
730
  Galaxy_S21 = 'Galaxy S21',
659
731
  Galaxy_S21_Plus = 'Galaxy S21 Plus',
660
- Galaxy_S21_Ultra = 'Galaxy S21 Ultra'
732
+ Galaxy_S21_Ultra = 'Galaxy S21 Ultra',
733
+ Galaxy_S22 = 'Galaxy S22',
734
+ Galaxy_S22_Plus = 'Galaxy S22 Plus',
735
+ Galaxy_Tab_S7 = 'Galaxy Tab S7',
736
+ Galaxy_Tab_S8 = 'Galaxy Tab S8',
737
+ Xiaomi_Redmi_Note_11 = 'Xiaomi Redmi Note 11',
738
+ Xiaomi_Redmi_Note_11_Pro = 'Xiaomi Redmi Note 11 Pro'
661
739
  }
662
740
  export type AndroidVersionPlain = "latest" | "latest-1" | "latest-2";
663
741
  export enum AndroidVersion {
@@ -1249,71 +1327,17 @@ export class TestResults implements Required<TestResultsPlain> {
1249
1327
  isPassed(): boolean;
1250
1328
  delete(): Promise<void>;
1251
1329
  }
1252
- export type TestResultContainerPlain = { readonly exception?: Error; readonly testResults?: {
1253
- readonly id?: string;
1254
- readonly name?: string;
1255
- readonly secretToken?: string;
1256
- readonly status?: "Passed" | "Failed" | "Unresolved";
1257
- readonly appName?: string;
1258
- readonly batchId?: string;
1259
- readonly batchName?: string;
1260
- readonly branchName?: string;
1261
- readonly hostOS?: string;
1262
- readonly hostApp?: string;
1263
- readonly hostDisplaySize?: { width: number; height: number; };
1264
- readonly accessibilityStatus?: { readonly level: "AA" | "AAA"; readonly version: "WCAG_2_0" | "WCAG_2_1"; readonly status: "Passed" | "Failed"; };
1265
- readonly startedAt?: string | Date;
1266
- readonly duration?: number;
1267
- readonly isNew?: boolean;
1268
- readonly isDifferent?: boolean;
1269
- readonly isAborted?: boolean;
1270
- readonly appUrls?: { readonly batch?: string; readonly session?: string; };
1271
- readonly apiUrls?: { readonly batch?: string; readonly session?: string; };
1272
- readonly stepsInfo?: Array<{
1273
- readonly name?: string;
1274
- readonly isDifferent?: boolean;
1275
- readonly hasBaselineImage?: boolean;
1276
- readonly hasCurrentImage?: boolean;
1277
- readonly appUrls?: { readonly step?: string; readonly stepEditor?: string; };
1278
- readonly apiUrls?: {
1279
- readonly baselineImage?: string;
1280
- readonly currentImage?: string;
1281
- readonly checkpointImage?: string;
1282
- readonly checkpointImageThumbnail?: string;
1283
- readonly diffImage?: string;
1284
- };
1285
- readonly renderId?: Array<string>;
1286
- }>;
1287
- readonly steps?: number;
1288
- readonly matches?: number;
1289
- readonly mismatches?: number;
1290
- readonly missing?: number;
1291
- readonly exactMatches?: number;
1292
- readonly strictMatches?: number;
1293
- readonly contentMatches?: number;
1294
- readonly layoutMatches?: number;
1295
- readonly noneMatches?: number;
1296
- readonly url?: string;
1297
- }; 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"; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Galaxy S20 Plus" | "Galaxy S21" | "Galaxy S21 Plus" | "Galaxy S21 Ultra"; version?: "latest" | "latest-1" | "latest-2"; screenOrientation?: "portrait" | "landscape"; }; }; };
1330
+ export type TestResultContainerPlain = { readonly exception: Error; readonly testResults: TestResultsPlain; readonly browserInfo: DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo | AndroidDeviceInfo; };
1298
1331
  export class TestResultContainer implements Required<TestResultContainerPlain> {
1299
1332
  get testResults(): TestResultsPlain;
1300
1333
  getTestResults(): TestResults;
1301
1334
  get exception(): Error;
1302
1335
  getException(): Error;
1303
- 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"; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Galaxy S20 Plus" | "Galaxy S21" | "Galaxy S21 Plus" | "Galaxy S21 Ultra"; version?: "latest" | "latest-1" | "latest-2"; screenOrientation?: "portrait" | "landscape"; }; };
1304
- 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"; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Galaxy S20 Plus" | "Galaxy S21" | "Galaxy S21 Plus" | "Galaxy S21 Ultra"; version?: "latest" | "latest-1" | "latest-2"; screenOrientation?: "portrait" | "landscape"; }; };
1336
+ get browserInfo(): DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo | AndroidDeviceInfo;
1337
+ getBrowserInfo(): DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo | AndroidDeviceInfo;
1305
1338
  }
1306
- export type TestResultsSummaryPlain = {
1307
- results: Array<TestResultContainerPlain>;
1308
- passed: number;
1309
- unresolved: number;
1310
- failed: number;
1311
- exceptions: number;
1312
- mismatches: number;
1313
- missing: number;
1314
- matches: number;
1315
- };
1316
- export class TestResultsSummary implements Iterable<TestResultContainerPlain> {
1339
+ export type TestResultsSummaryPlain = Iterable<TestResultContainerPlain>;
1340
+ export class TestResultsSummary implements Iterable<TestResultContainer> {
1317
1341
  getAllResults(): Array<TestResultContainer>;
1318
1342
  [Symbol.iterator](): Iterator<TestResultContainer, any, undefined>;
1319
1343
  }