@applitools/eyes-playwright 1.36.5 → 1.37.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 +91 -0
- package/dist/fixture/toHaveScreenshot.js +2 -2
- package/package.json +4 -4
- package/types/index.d.ts +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,96 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.37.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.36.5...js/eyes-playwright@1.37.0) (2025-03-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* allow fully to be sent from the configuration object ([#2867](https://github.com/Applitools-Dev/sdk/issues/2867)) ([e8e7fbc](https://github.com/Applitools-Dev/sdk/commit/e8e7fbcb545e9bab899691d8d136b69f4a67e0d8))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/utils bumped to 1.8.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
17
|
+
* @applitools/dom-snapshot bumped to 4.11.17
|
|
18
|
+
#### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* input range value render issue - add input range to need map list ([#2866](https://github.com/Applitools-Dev/sdk/issues/2866)) ([6b3c113](https://github.com/Applitools-Dev/sdk/commit/6b3c113ab3068fc89b3d3917a12fc51bad66ca97))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* @applitools/socket bumped to 1.2.3
|
|
25
|
+
|
|
26
|
+
* @applitools/driver bumped to 1.21.0
|
|
27
|
+
#### Features
|
|
28
|
+
|
|
29
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
* @applitools/spec-driver-playwright bumped to 1.5.9
|
|
34
|
+
|
|
35
|
+
* @applitools/screenshoter bumped to 3.11.0
|
|
36
|
+
#### Features
|
|
37
|
+
|
|
38
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
* @applitools/req bumped to 1.7.9
|
|
43
|
+
|
|
44
|
+
* @applitools/image bumped to 1.1.18
|
|
45
|
+
|
|
46
|
+
* @applitools/nml-client bumped to 1.8.27
|
|
47
|
+
|
|
48
|
+
* @applitools/ufg-client bumped to 1.16.8
|
|
49
|
+
|
|
50
|
+
* @applitools/core-base bumped to 1.22.3
|
|
51
|
+
#### Bug Fixes
|
|
52
|
+
|
|
53
|
+
* reject openCheckAndClose on request failures ([#2870](https://github.com/Applitools-Dev/sdk/issues/2870)) ([1d12d60](https://github.com/Applitools-Dev/sdk/commit/1d12d60991e8f222002273d5447702158f1cba84))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
* @applitools/core bumped to 4.34.0
|
|
58
|
+
#### Features
|
|
59
|
+
|
|
60
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
61
|
+
* offline results state granularity ([#2872](https://github.com/Applitools-Dev/sdk/issues/2872)) ([c5f6e4e](https://github.com/Applitools-Dev/sdk/commit/c5f6e4ed87c4855704ce1a6c568393a35b677c1d))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
#### Bug Fixes
|
|
65
|
+
|
|
66
|
+
* reject openCheckAndClose on request failures ([#2870](https://github.com/Applitools-Dev/sdk/issues/2870)) ([1d12d60](https://github.com/Applitools-Dev/sdk/commit/1d12d60991e8f222002273d5447702158f1cba84))
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
* @applitools/logger bumped to 2.1.2
|
|
71
|
+
|
|
72
|
+
* @applitools/dom-capture bumped to 11.5.5
|
|
73
|
+
|
|
74
|
+
* @applitools/spec-driver-webdriver bumped to 1.2.1
|
|
75
|
+
|
|
76
|
+
* @applitools/spec-driver-selenium bumped to 1.5.97
|
|
77
|
+
|
|
78
|
+
* @applitools/spec-driver-puppeteer bumped to 1.4.26
|
|
79
|
+
|
|
80
|
+
* @applitools/tunnel-client bumped to 1.6.4
|
|
81
|
+
|
|
82
|
+
* @applitools/ec-client bumped to 1.10.7
|
|
83
|
+
|
|
84
|
+
* @applitools/eyes bumped to 1.33.0
|
|
85
|
+
#### Features
|
|
86
|
+
|
|
87
|
+
* allow fully to be sent from the configuration object ([#2867](https://github.com/Applitools-Dev/sdk/issues/2867)) ([e8e7fbc](https://github.com/Applitools-Dev/sdk/commit/e8e7fbcb545e9bab899691d8d136b69f4a67e0d8))
|
|
88
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
89
|
+
* offline results state granularity ([#2872](https://github.com/Applitools-Dev/sdk/issues/2872)) ([c5f6e4e](https://github.com/Applitools-Dev/sdk/commit/c5f6e4ed87c4855704ce1a6c568393a35b677c1d))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
3
94
|
## [1.36.5](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.36.4...js/eyes-playwright@1.36.5) (2025-03-13)
|
|
4
95
|
|
|
5
96
|
|
|
@@ -6,7 +6,7 @@ const index_1 = require("./index");
|
|
|
6
6
|
const getEyes_1 = require("./getEyes");
|
|
7
7
|
exports.expect = test_1.expect.extend({
|
|
8
8
|
async toHaveScreenshot(pageOrLocator, nameOrOptions = {}, optOptions = {}) {
|
|
9
|
-
var _a, _b, _c, _d, _e;
|
|
9
|
+
var _a, _b, _c, _d, _e, _f;
|
|
10
10
|
const testInfo = index_1.test.info();
|
|
11
11
|
if (!testInfo) {
|
|
12
12
|
throw new Error(`toHaveScreenshot() must be called during the test`);
|
|
@@ -127,7 +127,7 @@ exports.expect = test_1.expect.extend({
|
|
|
127
127
|
? nameOrOptions.name
|
|
128
128
|
: undefined,
|
|
129
129
|
region: locator !== null && locator !== void 0 ? locator : options.clip,
|
|
130
|
-
fully: options.fullPage,
|
|
130
|
+
fully: (_f = options.fullPage) !== null && _f !== void 0 ? _f : configuration.fully,
|
|
131
131
|
ignoreRegions: options.mask,
|
|
132
132
|
});
|
|
133
133
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-playwright",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.0",
|
|
4
4
|
"description": "Applitools Eyes SDK for Playwright",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-playwright",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"up:framework": "echo \"$(jq '.devDependencies.playwright = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@applitools/eyes": "1.
|
|
63
|
-
"@applitools/spec-driver-playwright": "1.5.
|
|
64
|
-
"@applitools/utils": "1.
|
|
62
|
+
"@applitools/eyes": "1.33.0",
|
|
63
|
+
"@applitools/spec-driver-playwright": "1.5.9",
|
|
64
|
+
"@applitools/utils": "1.8.0",
|
|
65
65
|
"@inquirer/prompts": "7.0.1",
|
|
66
66
|
"chalk": "4.1.2",
|
|
67
67
|
"yargs": "17.7.2"
|
package/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type SpecType = {
|
|
|
8
8
|
element: Element;
|
|
9
9
|
selector: Selector;
|
|
10
10
|
secondary: never;
|
|
11
|
+
userFunction: unknown;
|
|
11
12
|
};
|
|
12
13
|
export class Eyes {
|
|
13
14
|
static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
|
|
@@ -273,7 +274,7 @@ export type CheckSettingsAutomationPlain = {
|
|
|
273
274
|
useSystemScreenshot?: undefined | boolean;
|
|
274
275
|
hooks?: undefined | { beforeCaptureScreenshot: string; };
|
|
275
276
|
timeout?: undefined | number;
|
|
276
|
-
waitBeforeCapture?: undefined | number;
|
|
277
|
+
waitBeforeCapture?: undefined | number | (() => Promise<void>);
|
|
277
278
|
lazyLoad?: undefined | boolean | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; };
|
|
278
279
|
};
|
|
279
280
|
export class CheckSettingsAutomation {
|
|
@@ -309,6 +310,7 @@ export class CheckSettingsAutomation {
|
|
|
309
310
|
useSystemScreenshot(useSystemScreenshot?: undefined | boolean): CheckSettingsAutomation;
|
|
310
311
|
timeout(timeout: number): CheckSettingsAutomation;
|
|
311
312
|
waitBeforeCapture(waitBeforeCapture: number): CheckSettingsAutomation;
|
|
313
|
+
waitBeforeCapture(waitBeforeCapture: (() => Promise<void>)): CheckSettingsAutomation;
|
|
312
314
|
lazyLoad(options?: undefined | boolean): CheckSettingsAutomation;
|
|
313
315
|
lazyLoad(options?: undefined | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; }): CheckSettingsAutomation;
|
|
314
316
|
densityMetrics(options: { scaleRatio?: undefined | number; xdpi?: undefined | number; ydpi?: undefined | number; }): CheckSettingsAutomation;
|
|
@@ -483,6 +485,7 @@ export type ConfigurationPlain = {
|
|
|
483
485
|
enablePatterns?: undefined | boolean;
|
|
484
486
|
environmentName?: undefined | string;
|
|
485
487
|
forceFullPageScreenshot?: undefined | boolean;
|
|
488
|
+
fully?: undefined | boolean;
|
|
486
489
|
gitMergeBaseTimestamp?: undefined | string;
|
|
487
490
|
latestCommitInfo?: undefined | { timestamp: string; sha: string; };
|
|
488
491
|
hideCaret?: undefined | boolean;
|
|
@@ -519,7 +522,7 @@ export type ConfigurationPlain = {
|
|
|
519
522
|
useDom?: undefined | boolean;
|
|
520
523
|
viewportSize?: undefined | RectangleSizePlain;
|
|
521
524
|
visualGridOptions?: undefined | Record<string, any>;
|
|
522
|
-
waitBeforeCapture?: undefined | number;
|
|
525
|
+
waitBeforeCapture?: undefined | number | (() => Promise<void>);
|
|
523
526
|
waitBeforeScreenshots?: undefined | number;
|
|
524
527
|
};
|
|
525
528
|
export class Configuration implements Required<ConfigurationPlain> {
|
|
@@ -809,14 +812,19 @@ export class Configuration implements Required<ConfigurationPlain> {
|
|
|
809
812
|
getVisualGridOptions(): { [key: string]: any; };
|
|
810
813
|
setVisualGridOptions(visualGridOptions: { [key: string]: any; }): Configuration;
|
|
811
814
|
setVisualGridOption(key: string, value: any): Configuration;
|
|
812
|
-
get waitBeforeCapture(): number;
|
|
813
|
-
set waitBeforeCapture(waitBeforeCapture: number);
|
|
814
|
-
getWaitBeforeCapture(): number;
|
|
815
|
+
get waitBeforeCapture(): number | (() => Promise<void>);
|
|
816
|
+
set waitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>));
|
|
817
|
+
getWaitBeforeCapture(): number | (() => Promise<void>);
|
|
815
818
|
setWaitBeforeCapture(waitBeforeCapture: number): Configuration;
|
|
819
|
+
setWaitBeforeCapture(waitBeforeCapture: (() => Promise<void>)): Configuration;
|
|
816
820
|
get waitBeforeScreenshots(): number;
|
|
817
821
|
set waitBeforeScreenshots(waitBeforeScreenshots: number);
|
|
818
822
|
getWaitBeforeScreenshots(): number;
|
|
819
823
|
setWaitBeforeScreenshots(waitBeforeScreenshots: number): Configuration;
|
|
824
|
+
get fully(): boolean;
|
|
825
|
+
set fully(fully: boolean);
|
|
826
|
+
getFully(): boolean;
|
|
827
|
+
setFully(fully: boolean): Configuration;
|
|
820
828
|
}
|
|
821
829
|
export class BatchClose {
|
|
822
830
|
static close(settings: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: undefined | ProxySettingsPlain; }): Promise<void>;
|