@applitools/eyes-puppeteer 1.11.0 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -11,6 +11,19 @@
11
11
 
12
12
 
13
13
 
14
+ ## 1.11.2 - 2022/10/4
15
+
16
+ ### Features
17
+ - Deprecated "Content" match level value in favor of "IgnoreColors"
18
+ ### Bug fixes
19
+ - Fixed the issue with screenshots being taken on chrome-emulated devices
20
+
21
+ ## 1.11.1 - 2022/9/26
22
+
23
+ ### Features
24
+ ### Bug fixes
25
+ - Fixed minor issues
26
+
14
27
  ## 1.11.0 - 2022/9/23
15
28
 
16
29
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-puppeteer",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "Applitools Eyes SDK for Puppeteer",
5
5
  "keywords": [
6
6
  "eyes-puppeteer",
@@ -62,14 +62,14 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@applitools/core": "1.0.5",
66
- "@applitools/eyes-api": "1.7.9",
67
- "@applitools/spec-driver-puppeteer": "1.1.11"
65
+ "@applitools/core": "1.1.2",
66
+ "@applitools/eyes-api": "1.8.2",
67
+ "@applitools/spec-driver-puppeteer": "1.1.14"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@applitools/api-extractor": "1.2.11",
71
71
  "@applitools/bongo": "^2.2.0",
72
- "@applitools/scripts": "1.1.0",
72
+ "@applitools/scripts": "1.2.0",
73
73
  "@applitools/sdk-coverage-tests": "2.3.20",
74
74
  "@applitools/sdk-shared": "0.9.14",
75
75
  "@applitools/test-utils": "1.5.1",
package/types/index.d.ts CHANGED
@@ -391,7 +391,7 @@ export class Configuration implements Required<ConfigurationPlain> {
391
391
  addBrowser(width: number, height: number, name?: BrowserTypePlain): Configuration;
392
392
  addDeviceEmulation(deviceName: DeviceNamePlain, screenOrientation?: ScreenOrientationPlain): Configuration;
393
393
  addMobileDevice(deviceName: AndroidDeviceNamePlain, screenOrientation: ScreenOrientationPlain, version?: AndroidVersionPlain): Configuration;
394
- addMobileDevice(deviceName: IosDeviceNamePlain, screenOrientation: ScreenOrientationPlain, version?: IosVersionPlain): Configuration;
394
+ addMobileDevice(deviceName: IosDeviceNamePlain, screenOrientation: ScreenOrientationPlain, version?: AndroidVersionPlain): Configuration;
395
395
  get visualGridOptions(): { [key: string]: any; };
396
396
  set visualGridOptions(visualGridOptions: { [key: string]: any; });
397
397
  getVisualGridOptions(): { [key: string]: any; };
@@ -453,6 +453,7 @@ export type CheckSettingsPlain = {
453
453
  timeout?: number;
454
454
  waitBeforeCapture?: number;
455
455
  lazyLoad?: boolean | { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; };
456
+ webview?: string | boolean;
456
457
  };
457
458
  export class CheckSettings {
458
459
  constructor(settings?: CheckSettings | CheckSettingsPlain, spec?: { isElement(value: any): value is Element; isSelector(value: any): value is Selector; });
@@ -530,6 +531,7 @@ export class CheckSettings {
530
531
  timeout(timeout: number): CheckSettings;
531
532
  waitBeforeCapture(waitBeforeCapture: number): CheckSettings;
532
533
  lazyLoad(options?: boolean | { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; }): CheckSettings;
534
+ webview(option?: string | boolean): CheckSettings;
533
535
  }
534
536
  export const Target: {
535
537
  window(): CheckSettings;
@@ -537,10 +539,11 @@ export const Target: {
537
539
  frame(context: { frame: number | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); scrollRootElement?: Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }); }): CheckSettings;
538
540
  frame(frame: number | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })), scrollRootElement?: Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })): CheckSettings;
539
541
  shadow(selector: string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }): CheckSettings;
542
+ webview(option?: string | boolean): CheckSettings;
540
543
  };
541
544
  export class BatchClose {
542
- static close(settings: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }): Promise<void>;
543
- constructor(options?: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; });
545
+ static close(settings: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: ProxySettingsPlain; }): Promise<void>;
546
+ constructor(options?: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: ProxySettingsPlain; });
544
547
  close(): Promise<void>;
545
548
  setBatchIds(batchIds: Array<string>): BatchClose;
546
549
  setUrl(serverUrl: string): BatchClose;
@@ -731,19 +734,19 @@ export enum AndroidDeviceName {
731
734
  Xiaomi_Redmi_Note_11 = 'Xiaomi Redmi Note 11',
732
735
  Xiaomi_Redmi_Note_11_Pro = 'Xiaomi Redmi Note 11 Pro'
733
736
  }
734
- export type AndroidVersionPlain = "latest" | "latest-1" | "latest-2";
737
+ export type AndroidVersionPlain = "latest" | "latest-1";
735
738
  export enum AndroidVersion {
736
739
  LATEST = 'latest',
737
- ONE_VERSION_BACK = 'latest-1',
738
- TWO_VERSIONS_BACK = 'latest-2'
740
+ ONE_VERSION_BACK = 'latest-1'
739
741
  }
740
- export type MatchLevelPlain = "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "Strict" | "Exact";
742
+ export type MatchLevelPlain = "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColor" | "Strict" | "Exact";
741
743
  export enum MatchLevel {
742
744
  None = 'None',
743
745
  LegacyLayout = 'Layout1',
744
746
  Layout = 'Layout',
745
747
  Layout2 = 'Layout2',
746
748
  Content = 'Content',
749
+ IgnoreColor = 'IgnoreColor',
747
750
  Strict = 'Strict',
748
751
  Exact = 'Exact'
749
752
  }
@@ -1151,7 +1154,7 @@ export class Region implements Required<RegionPlain> {
1151
1154
  }
1152
1155
  export type DesktopBrowserInfo = { name?: BrowserTypePlain; width: number; height: number; };
1153
1156
  export type ChromeEmulationInfo = { chromeEmulationInfo: { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }; };
1154
- export type IOSDeviceInfo = { iosDeviceInfo: { deviceName: IosDeviceNamePlain; iosVersion?: IosVersionPlain; screenOrientation?: ScreenOrientationPlain; }; };
1157
+ export type IOSDeviceInfo = { iosDeviceInfo: { deviceName: IosDeviceNamePlain; iosVersion?: AndroidVersionPlain; screenOrientation?: ScreenOrientationPlain; }; };
1155
1158
  export type AndroidDeviceInfo = { androidDeviceInfo: { deviceName: AndroidDeviceNamePlain; version?: AndroidVersionPlain; screenOrientation?: ScreenOrientationPlain; }; };
1156
1159
  export type RunnerOptionsPlain = { testConcurrency?: number; };
1157
1160
  export class RunnerOptionsFluent {
@@ -1370,7 +1373,7 @@ export class Logger {
1370
1373
  tag(name: string, value: any): void;
1371
1374
  extend(label?: string): Logger;
1372
1375
  }
1373
- 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>;
1376
+ export function closeBatch(spec: BatchCloseSpec): (options: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: ProxySettingsPlain; }) => Promise<void>;
1374
1377
  export abstract class EyesRunner {
1375
1378
  getAllTestResults(throwErr?: boolean): Promise<TestResultsSummary>;
1376
1379
  }