@applitools/eyes-testcafe 4.0.4 → 4.1.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
@@ -13,6 +13,95 @@
13
13
 
14
14
 
15
15
 
16
+ ## [4.1.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-testcafe@4.0.4...js/eyes-testcafe@4.1.0) (2023-11-21)
17
+
18
+
19
+ ### Features
20
+
21
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
22
+
23
+
24
+ ### Dependencies
25
+
26
+ * @applitools/utils bumped to 1.6.3
27
+ #### Bug Fixes
28
+
29
+ * don't throw error for missing configuration file ([#2034](https://github.com/applitools/eyes.sdk.javascript1/issues/2034)) ([d084e7b](https://github.com/applitools/eyes.sdk.javascript1/commit/d084e7bf6e1727e3969622b4e597881f18241eb3))
30
+ * @applitools/socket bumped to 1.1.13
31
+
32
+ * @applitools/dom-snapshot bumped to 4.7.14
33
+ #### Bug Fixes
34
+
35
+ * preserve css declarations order in dom-snapshot ([#2037](https://github.com/applitools/eyes.sdk.javascript1/issues/2037)) ([1381851](https://github.com/applitools/eyes.sdk.javascript1/commit/1381851d46f28ea7e7724025c4eab33c81c4e144))
36
+ * @applitools/spec-driver-webdriver bumped to 1.0.50
37
+ #### Bug Fixes
38
+
39
+ * send devtool commands in chromium ([#2039](https://github.com/applitools/eyes.sdk.javascript1/issues/2039)) ([ff42043](https://github.com/applitools/eyes.sdk.javascript1/commit/ff42043c3d9f110eb7b22ab1a8448d77859923b4))
40
+
41
+
42
+
43
+ * @applitools/core bumped to 4.2.0
44
+ #### Features
45
+
46
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
47
+ * log driver environment info to splank ([#2023](https://github.com/applitools/eyes.sdk.javascript1/issues/2023)) ([11d0546](https://github.com/applitools/eyes.sdk.javascript1/commit/11d0546e76962b4c231e140b0229b8402da27f69))
48
+
49
+
50
+ #### Bug Fixes
51
+
52
+ * return result when error in the ufg ([#2020](https://github.com/applitools/eyes.sdk.javascript1/issues/2020)) ([28cdcc5](https://github.com/applitools/eyes.sdk.javascript1/commit/28cdcc5a859641d0edde032165c5068fcc580c8d))
53
+
54
+
55
+
56
+ * @applitools/spec-driver-selenium bumped to 1.5.64
57
+
58
+ * @applitools/spec-driver-puppeteer bumped to 1.3.0
59
+ #### Features
60
+
61
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
62
+
63
+
64
+
65
+ * @applitools/screenshoter bumped to 3.8.16
66
+
67
+ * @applitools/tunnel-client bumped to 1.3.1
68
+
69
+ * @applitools/ec-client bumped to 1.7.16
70
+
71
+ * @applitools/core-base bumped to 1.7.3
72
+ #### Bug Fixes
73
+
74
+ * remove connection timeout in case of a long running tasks ([#2006](https://github.com/applitools/eyes.sdk.javascript1/issues/2006)) ([49a596a](https://github.com/applitools/eyes.sdk.javascript1/commit/49a596ac1b022a66b5c07ecfee458cc061891ce0))
75
+ * return result when error in the ufg ([#2020](https://github.com/applitools/eyes.sdk.javascript1/issues/2020)) ([28cdcc5](https://github.com/applitools/eyes.sdk.javascript1/commit/28cdcc5a859641d0edde032165c5068fcc580c8d))
76
+
77
+
78
+
79
+ * @applitools/eyes bumped to 1.12.0
80
+ #### Features
81
+
82
+ * added `enableEyesLogs` configuration to the eyes service ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
83
+ * added `useExecutionCloud` configuration to the eyes service ([#2033](https://github.com/applitools/eyes.sdk.javascript1/issues/2033)) ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
84
+
85
+
86
+ #### Bug Fixes
87
+
88
+ * error to unknown type in exception ([#2035](https://github.com/applitools/eyes.sdk.javascript1/issues/2035)) ([16d78c3](https://github.com/applitools/eyes.sdk.javascript1/commit/16d78c3cce90a5cb50cc2aa4e9ab6a58b7b93f89))
89
+
90
+
91
+
92
+ * @applitools/logger bumped to 2.0.13
93
+
94
+ * @applitools/req bumped to 1.6.3
95
+
96
+ * @applitools/image bumped to 1.1.8
97
+
98
+ * @applitools/driver bumped to 1.15.1
99
+
100
+ * @applitools/nml-client bumped to 1.5.16
101
+
102
+ * @applitools/ufg-client bumped to 1.9.8
103
+
104
+
16
105
  ## [4.0.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-testcafe@4.0.3...js/eyes-testcafe@4.0.4) (2023-11-07)
17
106
 
18
107
 
@@ -10,6 +10,14 @@ function extractEnvironment() {
10
10
  catch {
11
11
  // NOTE: ignore error
12
12
  }
13
- return { versions };
13
+ let sdk = undefined;
14
+ try {
15
+ const { name, version } = require('../package.json');
16
+ sdk = { lang: 'js', name, currentVersion: version };
17
+ }
18
+ catch {
19
+ // NOTE: ignore error
20
+ }
21
+ return { versions, sdk };
14
22
  }
15
23
  exports.extractEnvironment = extractEnvironment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-testcafe",
3
- "version": "4.0.4",
3
+ "version": "4.1.0",
4
4
  "description": "Applitools Eyes SDK for TestCafe",
5
5
  "keywords": [
6
6
  "eyes-testcafe",
@@ -68,17 +68,17 @@
68
68
  "up:framework": "echo \"$(jq '.devDependencies.testcafe = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
69
69
  },
70
70
  "dependencies": {
71
- "@applitools/driver": "1.15.0",
72
- "@applitools/eyes": "1.11.4",
73
- "@applitools/utils": "1.6.2"
71
+ "@applitools/driver": "1.15.1",
72
+ "@applitools/eyes": "1.12.0",
73
+ "@applitools/utils": "1.6.3"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@applitools/api-extractor": "^1.2.22",
77
- "@applitools/bongo": "^5.7.4",
77
+ "@applitools/bongo": "^5.7.6",
78
78
  "@applitools/generic": "^3.5.2",
79
79
  "@applitools/test-server": "^1.2.2",
80
80
  "@applitools/test-utils": "^1.5.17",
81
- "testcafe": "1"
81
+ "testcafe": "^3.4.0"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "testcafe": ">=1.7.1"
package/types/index.d.ts CHANGED
@@ -54,14 +54,7 @@ export class Eyes {
54
54
  open(appName?: undefined | string, testName?: undefined | string, viewportSize?: undefined | RectangleSizePlain, sessionType?: undefined | SessionTypePlain): Promise<void>;
55
55
  open(options: { t: Context; } & TestCafeConfiguration): Promise<Context>;
56
56
  check(name: string, checkSettings: CheckSettingsImage | CheckSettingsAutomation): Promise<MatchResult>;
57
- check(target: {
58
- image: string | Buffer | URL;
59
- name?: undefined | string;
60
- dom?: undefined | string;
61
- locationInViewport?: undefined | LocationPlain;
62
- locationInView?: undefined | LocationPlain;
63
- fullViewSize?: undefined | RectangleSizePlain;
64
- }, checkSettings?: undefined | CheckSettingsImagePlain): Promise<MatchResult>;
57
+ check(target: Image, checkSettings?: undefined | CheckSettingsImagePlain): Promise<MatchResult>;
65
58
  check(checkSettings?: undefined | CheckSettingsAutomationPlain): Promise<MatchResult>;
66
59
  checkWindow(name?: undefined | string, timeout?: undefined | number, fully?: undefined | boolean): Promise<MatchResult>;
67
60
  checkWindow(settings: TestCafeCheckSettings): Promise<MatchResult>;
@@ -114,6 +107,7 @@ export class Eyes {
114
107
  abort(): Promise<TestResults>;
115
108
  abortAsync(): Promise<void>;
116
109
  abortIfNotClosed(): Promise<TestResultsPlain>;
110
+ getResults(throwErr?: undefined | boolean): Promise<Array<TestResults>>;
117
111
  getViewportSize(): Promise<RectangleSize>;
118
112
  setViewportSize(size: RectangleSizePlain): Promise<void>;
119
113
  getScrollRootElement(): Element | EyesSelector<Selector>;
@@ -1040,6 +1034,14 @@ export class BatchInfo implements Required<BatchInfoPlain> {
1040
1034
  addProperty(name: string, value: string): BatchInfo;
1041
1035
  addProperty(prop: PropertyDataPlain): BatchInfo;
1042
1036
  }
1037
+ export type Image = {
1038
+ image: string | Buffer | URL;
1039
+ name?: undefined | string;
1040
+ dom?: undefined | string;
1041
+ locationInViewport?: undefined | LocationPlain;
1042
+ locationInView?: undefined | LocationPlain;
1043
+ fullViewSize?: undefined | RectangleSizePlain;
1044
+ };
1043
1045
  export type CheckSettingsImagePlain = {
1044
1046
  name?: undefined | string;
1045
1047
  region?: undefined | RegionPlain;
@@ -1079,14 +1081,7 @@ export type CheckSettingsImagePlain = {
1079
1081
  densityMetrics?: undefined | { scaleRatio?: undefined | number; xdpi?: undefined | number; ydpi?: undefined | number; };
1080
1082
  };
1081
1083
  export class CheckSettingsImage {
1082
- constructor(settings?: undefined | CheckSettingsImage | CheckSettingsImagePlain, target?: undefined | {
1083
- image: string | Buffer | URL;
1084
- name?: undefined | string;
1085
- dom?: undefined | string;
1086
- locationInViewport?: undefined | LocationPlain;
1087
- locationInView?: undefined | LocationPlain;
1088
- fullViewSize?: undefined | RectangleSizePlain;
1089
- });
1084
+ constructor(settings?: undefined | CheckSettingsImage | CheckSettingsImagePlain, target?: undefined | Image);
1090
1085
  image(image: string | Buffer | URL): CheckSettingsImage;
1091
1086
  buffer(imageBuffer: Buffer): CheckSettingsImage;
1092
1087
  base64(imageBase64: Buffer): CheckSettingsImage;