@applitools/eyes-testcafe 4.0.4 → 4.1.1
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 +146 -0
- package/dist/extract-environment.js +9 -1
- package/package.json +6 -6
- package/types/index.d.ts +11 -16
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,152 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
## [4.1.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-testcafe@4.1.0...js/eyes-testcafe@4.1.1) (2023-12-05)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Dependencies
|
|
20
|
+
|
|
21
|
+
* @applitools/utils bumped to 1.7.0
|
|
22
|
+
#### Features
|
|
23
|
+
|
|
24
|
+
* add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
|
|
25
|
+
* @applitools/socket bumped to 1.1.14
|
|
26
|
+
|
|
27
|
+
* @applitools/req bumped to 1.6.4
|
|
28
|
+
|
|
29
|
+
* @applitools/image bumped to 1.1.9
|
|
30
|
+
|
|
31
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.51
|
|
32
|
+
|
|
33
|
+
* @applitools/spec-driver-puppeteer bumped to 1.3.1
|
|
34
|
+
|
|
35
|
+
* @applitools/nml-client bumped to 1.5.17
|
|
36
|
+
|
|
37
|
+
* @applitools/ufg-client bumped to 1.9.9
|
|
38
|
+
|
|
39
|
+
* @applitools/core-base bumped to 1.7.4
|
|
40
|
+
#### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* do not block concurrency when server response is 503 ([#2049](https://github.com/applitools/eyes.sdk.javascript1/issues/2049)) ([f285009](https://github.com/applitools/eyes.sdk.javascript1/commit/f2850098f7522776c0d0a98bb1d958303628b149))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
* @applitools/core bumped to 4.3.0
|
|
47
|
+
#### Features
|
|
48
|
+
|
|
49
|
+
* add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
* @applitools/eyes bumped to 1.13.0
|
|
54
|
+
#### Features
|
|
55
|
+
|
|
56
|
+
* add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
* @applitools/logger bumped to 2.0.14
|
|
61
|
+
|
|
62
|
+
* @applitools/spec-driver-selenium bumped to 1.5.65
|
|
63
|
+
|
|
64
|
+
* @applitools/driver bumped to 1.15.2
|
|
65
|
+
|
|
66
|
+
* @applitools/screenshoter bumped to 3.8.17
|
|
67
|
+
|
|
68
|
+
* @applitools/tunnel-client bumped to 1.3.2
|
|
69
|
+
|
|
70
|
+
* @applitools/ec-client bumped to 1.7.17
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## [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)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Features
|
|
77
|
+
|
|
78
|
+
* 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))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Dependencies
|
|
82
|
+
|
|
83
|
+
* @applitools/utils bumped to 1.6.3
|
|
84
|
+
#### Bug Fixes
|
|
85
|
+
|
|
86
|
+
* 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))
|
|
87
|
+
* @applitools/socket bumped to 1.1.13
|
|
88
|
+
|
|
89
|
+
* @applitools/dom-snapshot bumped to 4.7.14
|
|
90
|
+
#### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* 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))
|
|
93
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.50
|
|
94
|
+
#### Bug Fixes
|
|
95
|
+
|
|
96
|
+
* 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))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
* @applitools/core bumped to 4.2.0
|
|
101
|
+
#### Features
|
|
102
|
+
|
|
103
|
+
* 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))
|
|
104
|
+
* 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))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
#### Bug Fixes
|
|
108
|
+
|
|
109
|
+
* 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))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
* @applitools/spec-driver-selenium bumped to 1.5.64
|
|
114
|
+
|
|
115
|
+
* @applitools/spec-driver-puppeteer bumped to 1.3.0
|
|
116
|
+
#### Features
|
|
117
|
+
|
|
118
|
+
* 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))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
* @applitools/screenshoter bumped to 3.8.16
|
|
123
|
+
|
|
124
|
+
* @applitools/tunnel-client bumped to 1.3.1
|
|
125
|
+
|
|
126
|
+
* @applitools/ec-client bumped to 1.7.16
|
|
127
|
+
|
|
128
|
+
* @applitools/core-base bumped to 1.7.3
|
|
129
|
+
#### Bug Fixes
|
|
130
|
+
|
|
131
|
+
* 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))
|
|
132
|
+
* 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))
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
* @applitools/eyes bumped to 1.12.0
|
|
137
|
+
#### Features
|
|
138
|
+
|
|
139
|
+
* added `enableEyesLogs` configuration to the eyes service ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
|
|
140
|
+
* 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))
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
#### Bug Fixes
|
|
144
|
+
|
|
145
|
+
* 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))
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
* @applitools/logger bumped to 2.0.13
|
|
150
|
+
|
|
151
|
+
* @applitools/req bumped to 1.6.3
|
|
152
|
+
|
|
153
|
+
* @applitools/image bumped to 1.1.8
|
|
154
|
+
|
|
155
|
+
* @applitools/driver bumped to 1.15.1
|
|
156
|
+
|
|
157
|
+
* @applitools/nml-client bumped to 1.5.16
|
|
158
|
+
|
|
159
|
+
* @applitools/ufg-client bumped to 1.9.8
|
|
160
|
+
|
|
161
|
+
|
|
16
162
|
## [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
163
|
|
|
18
164
|
|
|
@@ -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.
|
|
3
|
+
"version": "4.1.1",
|
|
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.
|
|
72
|
-
"@applitools/eyes": "1.
|
|
73
|
-
"@applitools/utils": "1.
|
|
71
|
+
"@applitools/driver": "1.15.2",
|
|
72
|
+
"@applitools/eyes": "1.13.0",
|
|
73
|
+
"@applitools/utils": "1.7.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@applitools/api-extractor": "^1.2.22",
|
|
77
|
-
"@applitools/bongo": "^5.7.
|
|
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": "
|
|
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;
|