@applitools/eyes-testcafe 1.15.2 → 1.15.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
@@ -3,6 +3,27 @@
3
3
  ## Unreleased
4
4
 
5
5
 
6
+ ## 1.15.5 - 2022/2/22
7
+
8
+ - add support for configuring notifyOnCompletion through an environment variable ([Trello](https://trello.com/c/WWdwQvpv))
9
+ - updated to @applitools/eyes-sdk-core@13.0.6 (from 13.0.5)
10
+ - updated to @applitools/visual-grid-client@15.9.0 (from 15.8.65)
11
+
12
+ ## 1.15.4 - 2022/2/16
13
+
14
+ - fixing: Screenshotter dependency consuming 40+ MB of space
15
+ - updated to @applitools/eyes-api@1.1.8 (from 1.1.7)
16
+ - updated to @applitools/eyes-sdk-core@13.0.5 (from 13.0.0)
17
+ - updated to @applitools/utils@1.2.13 (from 1.2.11)
18
+ - updated to @applitools/visual-grid-client@15.8.65 (from 15.8.62)
19
+ - updated to @applitools/visual-grid-client@15.8.65 (from 15.8.62)
20
+ ## 1.15.3 - 2022/1/24
21
+
22
+ - updated 'Agent ID' to 'eyes.testcafe' (from 'eyes.webdriverio')
23
+ - updated to @applitools/eyes-api@1.1.7 (from 1.1.6)
24
+ - updated to @applitools/eyes-sdk-core@13.0.0 (from 12.24.13)
25
+ - updated to @applitools/visual-grid-client@15.8.62 (from 15.8.60)
26
+
6
27
  ## 1.15.2 - 2022/1/14
7
28
 
8
29
  - remove `esModuleInterop` ts compile option
package/dist/api.js CHANGED
@@ -18,7 +18,7 @@ const spec = require("./spec-driver");
18
18
  process.env.APPLITOOLS_SCRIPT_RESULT_MAX_BYTE_LENGTH = '4718592';
19
19
  process.env.APPLITOOLS_SCRIPT_REMOVE_REVERSE_PROXY_URL_PREFIXES = 'true';
20
20
  const sdk = (0, eyes_sdk_core_1.makeSDK)({
21
- name: 'eyes.webdriverio',
21
+ name: 'eyes.testcafe',
22
22
  version: require('../package.json').version,
23
23
  spec,
24
24
  VisualGridClient: require('@applitools/visual-grid-client'),
package/dist/legacy.js CHANGED
@@ -85,8 +85,15 @@ function transformConfig(options) {
85
85
  config.environmentName = options.envName;
86
86
  if (options.browser)
87
87
  config.browsersInfo = utils.types.isArray(options.browser) ? options.browser : [options.browser];
88
- if (options.batchId || options.batchName || options.notifyOnCompletion) {
89
- config.batch = { id: options.batchId, name: options.batchName, notifyOnCompletion: options.notifyOnCompletion };
88
+ if (options.batchId ||
89
+ options.batchName ||
90
+ options.notifyOnCompletion ||
91
+ process.env.APPLITOOLS_NOTIFY_ON_COMPLETION) {
92
+ config.batch = {
93
+ id: options.batchId,
94
+ name: options.batchName,
95
+ notifyOnCompletion: options.notifyOnCompletion || !!process.env.APPLITOOLS_NOTIFY_ON_COMPLETION,
96
+ };
90
97
  }
91
98
  if (options.matchLevel || options.ignoreCaret || options.ignoreDisplacements || options.accessibilityValidation) {
92
99
  config.defaultMatchSettings = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-testcafe",
3
- "version": "1.15.2",
3
+ "version": "1.15.5",
4
4
  "description": "Applitools Eyes SDK for TestCafe",
5
5
  "keywords": [
6
6
  "eyes-testcafe",
@@ -69,19 +69,19 @@
69
69
  }
70
70
  },
71
71
  "dependencies": {
72
- "@applitools/eyes-api": "1.1.6",
73
- "@applitools/eyes-sdk-core": "12.24.13",
74
- "@applitools/utils": "1.2.11",
75
- "@applitools/visual-grid-client": "15.8.60"
72
+ "@applitools/eyes-api": "1.1.8",
73
+ "@applitools/eyes-sdk-core": "13.0.6",
74
+ "@applitools/utils": "1.2.13",
75
+ "@applitools/visual-grid-client": "15.9.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@applitools/api-extractor": "1.2.6",
78
+ "@applitools/api-extractor": "1.2.7",
79
79
  "@applitools/scripts": "1.1.0",
80
80
  "@applitools/sdk-coverage-tests": "^2.3.18",
81
- "@applitools/sdk-release-kit": "^0.13.10",
81
+ "@applitools/sdk-release-kit": "^0.13.11",
82
82
  "@applitools/sdk-shared": "0.9.11",
83
83
  "@applitools/test-server": "1.0.8",
84
- "@applitools/test-utils": "1.0.10",
84
+ "@applitools/test-utils": "1.0.12",
85
85
  "@typescript-eslint/eslint-plugin": "^4.15.1",
86
86
  "@typescript-eslint/parser": "^4.15.1",
87
87
  "eslint": "^7.9.0",
package/types/index.d.ts CHANGED
@@ -171,6 +171,7 @@ export type ConfigurationPlain = {
171
171
  baselineBranchName?: string;
172
172
  compareWithParentBranch?: boolean;
173
173
  ignoreBaseline?: boolean;
174
+ ignoreGitMergeBase?: boolean;
174
175
  saveFailedTests?: boolean;
175
176
  saveNewTests?: boolean;
176
177
  saveDiffs?: boolean;
@@ -303,6 +304,10 @@ export class Configuration implements Required<ConfigurationPlain> {
303
304
  set compareWithParentBranch(compareWithParentBranch: boolean);
304
305
  getCompareWithParentBranch(): boolean;
305
306
  setCompareWithParentBranch(compareWithParentBranch: boolean): Configuration;
307
+ get ignoreGitMergeBase(): boolean;
308
+ set ignoreGitMergeBase(ignoreGitMergeBase: boolean);
309
+ getIgnoreGitMergeBase(): boolean;
310
+ setIgnoreGitMergeBase(ignoreGitMergeBase: boolean): Configuration;
306
311
  get ignoreBaseline(): boolean;
307
312
  set ignoreBaseline(ignoreBaseline: boolean);
308
313
  getIgnoreBaseline(): boolean;
@@ -661,7 +666,7 @@ export enum CorsIframeHandle {
661
666
  KEEP = 'KEEP',
662
667
  SNAPSHOT = 'SNAPSHOT'
663
668
  }
664
- 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" | "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";
669
+ 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";
665
670
  export enum DeviceName {
666
671
  Blackberry_PlayBook = 'Blackberry PlayBook',
667
672
  BlackBerry_Z30 = 'BlackBerry Z30',
@@ -682,6 +687,7 @@ export enum DeviceName {
682
687
  Galaxy_S10 = 'Galaxy S10',
683
688
  Galaxy_S10_Plus = 'Galaxy S10 Plus',
684
689
  Galaxy_S20 = 'Galaxy S20',
690
+ Galaxy_Tab_S7 = 'Galaxy Tab S7',
685
691
  iPad = 'iPad',
686
692
  iPad_6th_Gen = 'iPad 6th Gen',
687
693
  iPad_7th_Gen = 'iPad 7th Gen',
@@ -731,7 +737,7 @@ export enum FailureReport {
731
737
  IMMEDIATE = 'IMMEDIATE',
732
738
  ON_CLOSE = 'ON_CLOSE'
733
739
  }
734
- 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 7" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)";
740
+ 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 7" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)";
735
741
  export enum IosDeviceName {
736
742
  iPhone_13_Pro_Max = 'iPhone 13 Pro Max',
737
743
  iPhone_13_Pro = 'iPhone 13 Pro',
@@ -751,7 +757,8 @@ export enum IosDeviceName {
751
757
  iPad_Pro_3 = 'iPad Pro (12.9-inch) (3rd generation)',
752
758
  iPad_7 = 'iPad (7th generation)',
753
759
  iPad_9 = 'iPad (9th generation)',
754
- iPad_Air_2 = 'iPad Air (2nd generation)'
760
+ iPad_Air_2 = 'iPad Air (2nd generation)',
761
+ iPad_Air_4 = 'iPad Air (4th generation)'
755
762
  }
756
763
  export type IosVersionPlain = "latest" | "latest-1";
757
764
  export enum IosVersion {
@@ -865,7 +872,8 @@ export class BatchInfo implements Required<BatchInfoPlain> {
865
872
  set properties(properties: Array<PropertyDataPlain>);
866
873
  getProperties(): Array<PropertyData>;
867
874
  setProperties(properties: Array<PropertyDataPlain>): BatchInfo;
868
- addProperty(property: PropertyDataPlain): BatchInfo;
875
+ addProperty(name: string, value: string): BatchInfo;
876
+ addProperty(prop: PropertyDataPlain): BatchInfo;
869
877
  }
870
878
  export type CutProviderPlain = { top: number; right: number; bottom: number; left: number; } | { x: number; y: number; width: number; height: number; };
871
879
  export class CutProvider implements Required<{
@@ -1434,7 +1442,42 @@ export class Logger {
1434
1442
  fatal(...messages: Array<any>): void;
1435
1443
  open(): void;
1436
1444
  close(): void;
1437
- extend(label?: string, color?: string | Array<string>): Logger;
1445
+ extend(options?: Omit<{
1446
+ handler?: CustomLogHandlerPlain | FileLogHandlerPlain | ConsoleLogHandlerPlain | {
1447
+ type: "rolling file";
1448
+ dirname?: string;
1449
+ name?: string;
1450
+ maxFileLength?: number;
1451
+ maxFileNumber?: number;
1452
+ };
1453
+ format?: (message: any, options: {
1454
+ formatting?: boolean;
1455
+ label?: string;
1456
+ timestamp?: Date;
1457
+ level?: "silent" | "fatal" | "error" | "warn" | "info";
1458
+ tags?: Record<string, unknown>;
1459
+ color?: string | Array<string>;
1460
+ colors?: { timestamp?: string | Array<string>; level?: {
1461
+ silent?: string | Array<string>;
1462
+ fatal?: string | Array<string>;
1463
+ error?: string | Array<string>;
1464
+ warn?: string | Array<string>;
1465
+ info?: string | Array<string>;
1466
+ }; tags?: string | Array<string>; message?: string | Array<string>; };
1467
+ }) => string;
1468
+ label?: string;
1469
+ timestamp?: false;
1470
+ level?: number | ("silent" | "fatal" | "error" | "warn" | "info");
1471
+ colors?: boolean | { timestamp?: string | Array<string>; level?: {
1472
+ silent?: string | Array<string>;
1473
+ fatal?: string | Array<string>;
1474
+ error?: string | Array<string>;
1475
+ warn?: string | Array<string>;
1476
+ info?: string | Array<string>;
1477
+ }; tags?: string | Array<string>; message?: string | Array<string>; };
1478
+ console?: boolean | CustomLogHandlerPlain;
1479
+ }, "handler">): Logger;
1480
+ extend(label?: string): Logger;
1438
1481
  }
1439
1482
  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>;
1440
1483
  export abstract class EyesRunner {