@applitools/eyes-testcafe 6.2.21 → 6.2.23
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 +115 -0
- package/README.md +57 -8
- package/package.json +4 -4
- package/types/index.d.ts +17 -9
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,121 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
## [6.2.23](https://github.com/Applitools-Dev/sdk/compare/js/eyes-testcafe@6.2.22...js/eyes-testcafe@6.2.23) (2025-04-17)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Performance Improvements
|
|
20
|
+
|
|
21
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* @applitools/dom-snapshot bumped to 4.11.18
|
|
27
|
+
#### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* simplify sandbox creation and ensure cleanup after execution ([#2869](https://github.com/Applitools-Dev/sdk/issues/2869)) ([72c5e01](https://github.com/Applitools-Dev/sdk/commit/72c5e01307f6abd83fab365a7e235124caae0694))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
* @applitools/snippets bumped to 2.6.5
|
|
34
|
+
#### Performance Improvements
|
|
35
|
+
|
|
36
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
37
|
+
* @applitools/driver bumped to 1.21.1
|
|
38
|
+
#### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* executePoll error logging FLD-2870 ([#2890](https://github.com/Applitools-Dev/sdk/issues/2890)) ([a8ff720](https://github.com/Applitools-Dev/sdk/commit/a8ff720efafacabe2023282748a6d8a0f1b3ff73))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
* @applitools/spec-driver-webdriver bumped to 1.2.2
|
|
45
|
+
#### Performance Improvements
|
|
46
|
+
|
|
47
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
* @applitools/spec-driver-selenium bumped to 1.5.98
|
|
52
|
+
#### Performance Improvements
|
|
53
|
+
|
|
54
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
* @applitools/spec-driver-puppeteer bumped to 1.4.27
|
|
59
|
+
#### Performance Improvements
|
|
60
|
+
|
|
61
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
* @applitools/screenshoter bumped to 3.11.1
|
|
66
|
+
#### Performance Improvements
|
|
67
|
+
|
|
68
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
* @applitools/nml-client bumped to 1.9.1
|
|
73
|
+
#### Performance Improvements
|
|
74
|
+
|
|
75
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
* @applitools/tunnel-client bumped to 1.6.5
|
|
80
|
+
#### Bug Fixes
|
|
81
|
+
|
|
82
|
+
* enhance error messages in tunnel client ([cab26e6](https://github.com/Applitools-Dev/sdk/commit/cab26e6e3d56fa3cbabaa1a9c68de13046b8f57e))
|
|
83
|
+
* @applitools/ufg-client bumped to 1.16.9
|
|
84
|
+
#### Bug Fixes
|
|
85
|
+
|
|
86
|
+
* basic auth protected resources | FLD-2761 | FMRI-120 ([#2444](https://github.com/Applitools-Dev/sdk/issues/2444)) ([b48cf49](https://github.com/Applitools-Dev/sdk/commit/b48cf49dec50bbf1ed2ba111608a48cf09962565))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
#### Performance Improvements
|
|
90
|
+
|
|
91
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
92
|
+
* @applitools/ec-client bumped to 1.10.9
|
|
93
|
+
#### Performance Improvements
|
|
94
|
+
|
|
95
|
+
* cachify http agent ([#2466](https://github.com/Applitools-Dev/sdk/issues/2466)) ([bc2f4a1](https://github.com/Applitools-Dev/sdk/commit/bc2f4a1fae3c379f061c9199edf4c5257769fb44))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
* @applitools/core bumped to 4.37.0
|
|
100
|
+
#### Features
|
|
101
|
+
|
|
102
|
+
* height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
* @applitools/eyes bumped to 1.34.0
|
|
107
|
+
#### Features
|
|
108
|
+
|
|
109
|
+
* height layout breakpoints ([#2801](https://github.com/Applitools-Dev/sdk/issues/2801)) ([819e241](https://github.com/Applitools-Dev/sdk/commit/819e2418f1fd93220a07dfbcf1157ffcf4995dd7))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
#### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* add checks for undefined regions in CheckSettings | AD-9042 ([#2868](https://github.com/Applitools-Dev/sdk/issues/2868)) ([0f7c991](https://github.com/Applitools-Dev/sdk/commit/0f7c9913d64e0535ba5ffe632923a3bf440be65f))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## [6.2.22](https://github.com/Applitools-Dev/sdk/compare/js/eyes-testcafe@6.2.21...js/eyes-testcafe@6.2.22) (2025-04-03)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Dependencies
|
|
123
|
+
|
|
124
|
+
* @applitools/core bumped to 4.35.1
|
|
125
|
+
#### Bug Fixes
|
|
126
|
+
|
|
127
|
+
* dummy ([9b8ffef](https://github.com/Applitools-Dev/sdk/commit/9b8ffef6277015a9073caf50f5dc5741986fbf07))
|
|
128
|
+
* @applitools/eyes bumped to 1.33.2
|
|
129
|
+
|
|
130
|
+
|
|
16
131
|
## [6.2.21](https://github.com/Applitools-Dev/sdk/compare/js/eyes-testcafe@6.2.20...js/eyes-testcafe@6.2.21) (2025-03-06)
|
|
17
132
|
|
|
18
133
|
|
package/README.md
CHANGED
|
@@ -1,11 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
## Applitools Eyes SDK for [TestCafe](https://testcafe.io/).
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
### Applitools Eyes SDK for [TestCafe](https://testcafe.io/)
|
|
5
|
-
[](https://www.npmjs.com/package/@applitools/eyes-testcafe)
|
|
3
|
+
## Installation
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
<br/>
|
|
5
|
+
Install Eyes-Testcafe as a local dev dependency in your tested project:
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
-
|
|
7
|
+
```bash
|
|
8
|
+
npm i -D @applitools/eyes-testcafe
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Getting started
|
|
12
|
+
|
|
13
|
+
To get started with this SDK, you need to set the following:
|
|
14
|
+
|
|
15
|
+
* [Applitools API key](#API)
|
|
16
|
+
* [Eyes server URL](#URL) - Required only if the Eyes server is not deployed on the Eyes public server.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Entering the Applitools API key {#API}
|
|
20
|
+
|
|
21
|
+
To authenticate via the Applitools server and run tests, you need to set the environment variable `APPLITOOLS_API_KEY` to the API key provided from Applitools Eyes. For details how to retrieve your API key, see [the Applitools documentation](/getting-started/retrieve-api-key) in the Eyes Knowledge Center.
|
|
22
|
+
|
|
23
|
+
To to this, set the environment variable `APPLITOOLS_API_KEY` to the API key before running your tests.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#### Entering the API Key on Linux or a Mac
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
export APPLITOOLS_API_KEY=<your_key>
|
|
30
|
+
npx testcafe chrome:headless some-test-dir
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### Entering the API Key on Windows
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
set APPLITOOLS_API_KEY=<your_key>
|
|
38
|
+
npx testcafe chrome:headless some-test-dir
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
#### Entering the API Key in the config.js file
|
|
42
|
+
|
|
43
|
+
You can also specify the API key in the `applitools.config.js` file. The property name is `apiKey`.
|
|
44
|
+
|
|
45
|
+
#### Example
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
module.exports = {
|
|
49
|
+
apiKey: 'YOUR_API_KEY',
|
|
50
|
+
...
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Further information
|
|
55
|
+
|
|
56
|
+
For further information, see:
|
|
57
|
+
|
|
58
|
+
* [Quickstart](https://applitools.com/tutorials/sdks/testcafe/quickstart)
|
|
59
|
+
* [Overview](https://applitools.com/tutorials/sdks/testcafe)
|
|
60
|
+
* [Changelog](https://applitools.com/tutorials/sdks/testcafe/changelog)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-testcafe",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.23",
|
|
4
4
|
"description": "Applitools Eyes SDK for TestCafe",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-testcafe",
|
|
@@ -68,9 +68,9 @@
|
|
|
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.
|
|
71
|
+
"@applitools/driver": "1.21.1",
|
|
72
|
+
"@applitools/eyes": "1.34.0",
|
|
73
|
+
"@applitools/utils": "1.8.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@applitools/api-extractor": "^1.2.22",
|
package/types/index.d.ts
CHANGED
|
@@ -14,7 +14,9 @@ export type SpecType = {
|
|
|
14
14
|
element: NodeSnapshot;
|
|
15
15
|
selector: never;
|
|
16
16
|
secondary: never;
|
|
17
|
+
userFunction: unknown;
|
|
17
18
|
};
|
|
19
|
+
userFunction: unknown;
|
|
18
20
|
};
|
|
19
21
|
export class Eyes {
|
|
20
22
|
static setViewportSize: (driver: Context, viewportSize: RectangleSize) => Promise<void>;
|
|
@@ -264,14 +266,14 @@ export type CheckSettingsAutomationPlain = {
|
|
|
264
266
|
scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }));
|
|
265
267
|
fully?: undefined | boolean;
|
|
266
268
|
disableBrowserFetching?: undefined | boolean;
|
|
267
|
-
layoutBreakpoints?: undefined | boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: undefined | boolean; };
|
|
269
|
+
layoutBreakpoints?: undefined | (boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: undefined | boolean; } | { breakpoints: boolean; heightBreakpoints: boolean; reload?: undefined | boolean; });
|
|
268
270
|
visualGridOptions?: undefined | { [key: string]: any; };
|
|
269
271
|
ufgOptions?: undefined | { [key: string]: any; };
|
|
270
272
|
nmgOptions?: undefined | { [key: string]: any; };
|
|
271
273
|
useSystemScreenshot?: undefined | boolean;
|
|
272
274
|
hooks?: undefined | { beforeCaptureScreenshot: string; };
|
|
273
275
|
timeout?: undefined | number;
|
|
274
|
-
waitBeforeCapture?: undefined | number;
|
|
276
|
+
waitBeforeCapture?: undefined | number | (() => Promise<void>);
|
|
275
277
|
lazyLoad?: undefined | boolean | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; };
|
|
276
278
|
};
|
|
277
279
|
export class CheckSettingsAutomation {
|
|
@@ -285,7 +287,8 @@ export class CheckSettingsAutomation {
|
|
|
285
287
|
fully(fully?: undefined | boolean): CheckSettingsAutomation;
|
|
286
288
|
stitchContent(stitchContent?: undefined | boolean): CheckSettingsAutomation;
|
|
287
289
|
disableBrowserFetching(disableBrowserFetching: boolean): CheckSettingsAutomation;
|
|
288
|
-
layoutBreakpoints(breakpoints
|
|
290
|
+
layoutBreakpoints(breakpoints: boolean, heightBreakpoints: boolean, settings?: undefined | { reload?: undefined | boolean; }): CheckSettingsAutomation;
|
|
291
|
+
layoutBreakpoints(breakpoints: boolean | Array<number>, settings?: undefined | { reload?: undefined | boolean; }): CheckSettingsAutomation;
|
|
289
292
|
hook(name: string, script: string): CheckSettingsAutomation;
|
|
290
293
|
beforeRenderScreenshotHook(script: string): CheckSettingsAutomation;
|
|
291
294
|
webHook(script: string): CheckSettingsAutomation;
|
|
@@ -297,7 +300,7 @@ export class CheckSettingsAutomation {
|
|
|
297
300
|
visualGridOptions(options: { [key: string]: any; }): CheckSettingsAutomation;
|
|
298
301
|
useSystemScreenshot(useSystemScreenshot?: undefined | boolean): CheckSettingsAutomation;
|
|
299
302
|
timeout(timeout: number): CheckSettingsAutomation;
|
|
300
|
-
waitBeforeCapture(waitBeforeCapture: number): CheckSettingsAutomation;
|
|
303
|
+
waitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>)): CheckSettingsAutomation;
|
|
301
304
|
lazyLoad(options?: undefined | boolean | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; }): CheckSettingsAutomation;
|
|
302
305
|
densityMetrics(options: { scaleRatio?: undefined | number; xdpi?: undefined | number; ydpi?: undefined | number; }): CheckSettingsAutomation;
|
|
303
306
|
stitchMode(stitchMode: StitchModePlain): CheckSettingsAutomation;
|
|
@@ -440,6 +443,7 @@ export type ConfigurationPlain = {
|
|
|
440
443
|
enablePatterns?: undefined | boolean;
|
|
441
444
|
environmentName?: undefined | string;
|
|
442
445
|
forceFullPageScreenshot?: undefined | boolean;
|
|
446
|
+
fully?: undefined | boolean;
|
|
443
447
|
gitMergeBaseTimestamp?: undefined | string;
|
|
444
448
|
latestCommitInfo?: undefined | { timestamp: string; sha: string; };
|
|
445
449
|
hideCaret?: undefined | boolean;
|
|
@@ -476,7 +480,7 @@ export type ConfigurationPlain = {
|
|
|
476
480
|
useDom?: undefined | boolean;
|
|
477
481
|
viewportSize?: undefined | RectangleSizePlain;
|
|
478
482
|
visualGridOptions?: undefined | Record<string, any>;
|
|
479
|
-
waitBeforeCapture?: undefined | number;
|
|
483
|
+
waitBeforeCapture?: undefined | number | (() => Promise<void>);
|
|
480
484
|
waitBeforeScreenshots?: undefined | number;
|
|
481
485
|
};
|
|
482
486
|
export class Configuration implements Required<ConfigurationPlain> {
|
|
@@ -740,14 +744,18 @@ export class Configuration implements Required<ConfigurationPlain> {
|
|
|
740
744
|
getVisualGridOptions(): { [key: string]: any; };
|
|
741
745
|
setVisualGridOptions(visualGridOptions: { [key: string]: any; }): Configuration;
|
|
742
746
|
setVisualGridOption(key: string, value: any): Configuration;
|
|
743
|
-
get waitBeforeCapture(): number;
|
|
744
|
-
set waitBeforeCapture(waitBeforeCapture: number);
|
|
745
|
-
getWaitBeforeCapture(): number;
|
|
746
|
-
setWaitBeforeCapture(waitBeforeCapture: number): Configuration;
|
|
747
|
+
get waitBeforeCapture(): number | (() => Promise<void>);
|
|
748
|
+
set waitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>));
|
|
749
|
+
getWaitBeforeCapture(): number | (() => Promise<void>);
|
|
750
|
+
setWaitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>)): Configuration;
|
|
747
751
|
get waitBeforeScreenshots(): number;
|
|
748
752
|
set waitBeforeScreenshots(waitBeforeScreenshots: number);
|
|
749
753
|
getWaitBeforeScreenshots(): number;
|
|
750
754
|
setWaitBeforeScreenshots(waitBeforeScreenshots: number): Configuration;
|
|
755
|
+
get fully(): boolean;
|
|
756
|
+
set fully(fully: boolean);
|
|
757
|
+
getFully(): boolean;
|
|
758
|
+
setFully(fully: boolean): Configuration;
|
|
751
759
|
}
|
|
752
760
|
export class BatchClose {
|
|
753
761
|
static close(settings: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: undefined | ProxySettingsPlain; }): Promise<void>;
|