@applitools/eyes-testcafe 4.0.3 → 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 +153 -0
- package/dist/extract-environment.js +9 -1
- package/package.json +7 -7
- package/types/index.d.ts +11 -16
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,159 @@
|
|
|
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
|
+
|
|
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)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Dependencies
|
|
109
|
+
|
|
110
|
+
* @applitools/dom-shared bumped to 1.0.11
|
|
111
|
+
#### Bug Fixes
|
|
112
|
+
|
|
113
|
+
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
|
|
114
|
+
* @applitools/dom-capture bumped to 11.2.4
|
|
115
|
+
#### Bug Fixes
|
|
116
|
+
|
|
117
|
+
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
* @applitools/dom-snapshot bumped to 4.7.13
|
|
122
|
+
#### Bug Fixes
|
|
123
|
+
|
|
124
|
+
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
|
|
125
|
+
* handled duplicated style properties in inline style tags ([#2014](https://github.com/applitools/eyes.sdk.javascript1/issues/2014)) ([2f8bada](https://github.com/applitools/eyes.sdk.javascript1/commit/2f8bada9cd44c65a69e54cbd08f57534632f12d2))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.49
|
|
130
|
+
|
|
131
|
+
* @applitools/spec-driver-selenium bumped to 1.5.63
|
|
132
|
+
|
|
133
|
+
* @applitools/spec-driver-puppeteer bumped to 1.2.5
|
|
134
|
+
|
|
135
|
+
* @applitools/driver bumped to 1.15.0
|
|
136
|
+
#### Features
|
|
137
|
+
|
|
138
|
+
* added warning when driver used with capabilities that may conflict with applitools lib workflow ([#2011](https://github.com/applitools/eyes.sdk.javascript1/issues/2011)) ([081006d](https://github.com/applitools/eyes.sdk.javascript1/commit/081006d879894db03a2713129b66586496b6eb02))
|
|
139
|
+
* @applitools/ufg-client bumped to 1.9.7
|
|
140
|
+
#### Bug Fixes
|
|
141
|
+
|
|
142
|
+
* added retries on ufg requests that respond with 503 status code ([7d78917](https://github.com/applitools/eyes.sdk.javascript1/commit/7d78917d559fa182c6723ca34cef2118cf08a036))
|
|
143
|
+
* @applitools/core bumped to 4.1.0
|
|
144
|
+
#### Features
|
|
145
|
+
|
|
146
|
+
* added warning when driver used with capabilities that may conflict with applitools lib workflow ([#2011](https://github.com/applitools/eyes.sdk.javascript1/issues/2011)) ([081006d](https://github.com/applitools/eyes.sdk.javascript1/commit/081006d879894db03a2713129b66586496b6eb02))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
#### Bug Fixes
|
|
150
|
+
|
|
151
|
+
* fixed issue that caused dom snapshots to be taken for different viewport sizes when layout breakpoints were explicitly turned off ([4121876](https://github.com/applitools/eyes.sdk.javascript1/commit/4121876189f133b6023cfea52ca91c02c31079fb))
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
* @applitools/screenshoter bumped to 3.8.15
|
|
156
|
+
|
|
157
|
+
* @applitools/nml-client bumped to 1.5.15
|
|
158
|
+
|
|
159
|
+
* @applitools/ec-client bumped to 1.7.15
|
|
160
|
+
|
|
161
|
+
* @applitools/eyes bumped to 1.11.4
|
|
162
|
+
#### Bug Fixes
|
|
163
|
+
|
|
164
|
+
* fixed issue when w3c properties were added to legacy capabilities object in `Eyes.setMobileCapabilities` method ([94d785f](https://github.com/applitools/eyes.sdk.javascript1/commit/94d785f0428df101c207d6f09a55c46f2bdbf19e))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
16
169
|
## [4.0.3](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-testcafe@4.0.2...js/eyes-testcafe@4.0.3) (2023-10-30)
|
|
17
170
|
|
|
18
171
|
|
|
@@ -10,6 +10,14 @@ function extractEnvironment() {
|
|
|
10
10
|
catch {
|
|
11
11
|
// NOTE: ignore error
|
|
12
12
|
}
|
|
13
|
-
|
|
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
|
|
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.
|
|
72
|
-
"@applitools/eyes": "1.
|
|
73
|
-
"@applitools/utils": "1.6.
|
|
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.
|
|
78
|
-
"@applitools/generic": "^3.5.
|
|
77
|
+
"@applitools/bongo": "^5.7.6",
|
|
78
|
+
"@applitools/generic": "^3.5.2",
|
|
79
79
|
"@applitools/test-server": "^1.2.2",
|
|
80
80
|
"@applitools/test-utils": "^1.5.17",
|
|
81
|
-
"testcafe": "
|
|
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;
|