@applitools/eyes 1.32.7 → 1.33.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 +105 -0
- package/dist/cli/cli.js +6 -1
- package/dist/input/Configuration.js +37 -18
- package/package.json +5 -5
- package/types/input/CheckSettings.d.ts +2 -2
- package/types/input/Configuration.d.ts +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,110 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.33.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.33.0...js/eyes@1.33.1) (2025-03-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/nml-client bumped to 1.9.0
|
|
9
|
+
#### Features
|
|
10
|
+
|
|
11
|
+
* add accessibility field to screenshot ([#2815](https://github.com/Applitools-Dev/sdk/issues/2815)) ([3d111f3](https://github.com/Applitools-Dev/sdk/commit/3d111f354c5eedeb8914f18318ccecce5fd13002))
|
|
12
|
+
* @applitools/core-base bumped to 1.23.0
|
|
13
|
+
#### Features
|
|
14
|
+
|
|
15
|
+
* add accessibility field to screenshot ([#2815](https://github.com/Applitools-Dev/sdk/issues/2815)) ([3d111f3](https://github.com/Applitools-Dev/sdk/commit/3d111f354c5eedeb8914f18318ccecce5fd13002))
|
|
16
|
+
* @applitools/ec-client bumped to 1.10.8
|
|
17
|
+
|
|
18
|
+
* @applitools/core bumped to 4.35.0
|
|
19
|
+
#### Features
|
|
20
|
+
|
|
21
|
+
* add accessibility field to screenshot ([#2815](https://github.com/Applitools-Dev/sdk/issues/2815)) ([3d111f3](https://github.com/Applitools-Dev/sdk/commit/3d111f354c5eedeb8914f18318ccecce5fd13002))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [1.33.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.32.7...js/eyes@1.33.0) (2025-03-30)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* 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))
|
|
32
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
33
|
+
* offline results state granularity ([#2872](https://github.com/Applitools-Dev/sdk/issues/2872)) ([c5f6e4e](https://github.com/Applitools-Dev/sdk/commit/c5f6e4ed87c4855704ce1a6c568393a35b677c1d))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Dependencies
|
|
37
|
+
|
|
38
|
+
* @applitools/utils bumped to 1.8.0
|
|
39
|
+
#### Features
|
|
40
|
+
|
|
41
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
42
|
+
* @applitools/logger bumped to 2.1.2
|
|
43
|
+
|
|
44
|
+
* @applitools/dom-snapshot bumped to 4.11.17
|
|
45
|
+
#### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* 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))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
* @applitools/core-base bumped to 1.22.3
|
|
52
|
+
#### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* reject openCheckAndClose on request failures ([#2870](https://github.com/Applitools-Dev/sdk/issues/2870)) ([1d12d60](https://github.com/Applitools-Dev/sdk/commit/1d12d60991e8f222002273d5447702158f1cba84))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
* @applitools/req bumped to 1.7.9
|
|
59
|
+
|
|
60
|
+
* @applitools/image bumped to 1.1.18
|
|
61
|
+
|
|
62
|
+
* @applitools/driver bumped to 1.21.0
|
|
63
|
+
#### Features
|
|
64
|
+
|
|
65
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
* @applitools/spec-driver-puppeteer bumped to 1.4.26
|
|
70
|
+
|
|
71
|
+
* @applitools/screenshoter bumped to 3.11.0
|
|
72
|
+
#### Features
|
|
73
|
+
|
|
74
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
* @applitools/socket bumped to 1.2.3
|
|
79
|
+
|
|
80
|
+
* @applitools/dom-capture bumped to 11.5.5
|
|
81
|
+
|
|
82
|
+
* @applitools/spec-driver-webdriver bumped to 1.2.1
|
|
83
|
+
|
|
84
|
+
* @applitools/spec-driver-selenium bumped to 1.5.97
|
|
85
|
+
|
|
86
|
+
* @applitools/nml-client bumped to 1.8.27
|
|
87
|
+
|
|
88
|
+
* @applitools/tunnel-client bumped to 1.6.4
|
|
89
|
+
|
|
90
|
+
* @applitools/ufg-client bumped to 1.16.8
|
|
91
|
+
|
|
92
|
+
* @applitools/ec-client bumped to 1.10.7
|
|
93
|
+
|
|
94
|
+
* @applitools/core bumped to 4.34.0
|
|
95
|
+
#### Features
|
|
96
|
+
|
|
97
|
+
* allow sending callback functions to waitBeforeCapture ([#2780](https://github.com/Applitools-Dev/sdk/issues/2780)) ([4caa2e8](https://github.com/Applitools-Dev/sdk/commit/4caa2e8ae055d3dd48164eeceaa4c691eeadcdd4))
|
|
98
|
+
* offline results state granularity ([#2872](https://github.com/Applitools-Dev/sdk/issues/2872)) ([c5f6e4e](https://github.com/Applitools-Dev/sdk/commit/c5f6e4ed87c4855704ce1a6c568393a35b677c1d))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
#### Bug Fixes
|
|
102
|
+
|
|
103
|
+
* reject openCheckAndClose on request failures ([#2870](https://github.com/Applitools-Dev/sdk/issues/2870)) ([1d12d60](https://github.com/Applitools-Dev/sdk/commit/1d12d60991e8f222002273d5447702158f1cba84))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
3
108
|
## [1.32.7](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.32.6...js/eyes@1.32.7) (2025-03-13)
|
|
4
109
|
|
|
5
110
|
|
package/dist/cli/cli.js
CHANGED
|
@@ -21,10 +21,15 @@ void yargs_1.default
|
|
|
21
21
|
type: 'string',
|
|
22
22
|
},
|
|
23
23
|
failOnDiff: {
|
|
24
|
-
description: 'should exit process with non-zero exit code, thereby failing the CI job',
|
|
24
|
+
description: 'should exit process with non-zero exit code on visual diffs, thereby failing the CI job',
|
|
25
25
|
type: 'boolean',
|
|
26
26
|
default: false,
|
|
27
27
|
},
|
|
28
|
+
failOnError: {
|
|
29
|
+
description: 'should exit process with non-zero exit code on errors, thereby failing the CI job',
|
|
30
|
+
type: 'boolean',
|
|
31
|
+
default: true,
|
|
32
|
+
},
|
|
28
33
|
configPath: {
|
|
29
34
|
description: 'path to configuration file (applitools.config.js / applitools.config.ts)',
|
|
30
35
|
type: 'string',
|
|
@@ -1017,7 +1017,12 @@ class ConfigurationData {
|
|
|
1017
1017
|
return this._config.waitBeforeCapture;
|
|
1018
1018
|
}
|
|
1019
1019
|
set waitBeforeCapture(waitBeforeCapture) {
|
|
1020
|
-
utils.
|
|
1020
|
+
if (utils.types.isNumber(waitBeforeCapture)) {
|
|
1021
|
+
utils.guard.isInteger(waitBeforeCapture, { name: 'waitBeforeCapture', gt: 0 });
|
|
1022
|
+
}
|
|
1023
|
+
else {
|
|
1024
|
+
utils.guard.isFunction(waitBeforeCapture, { name: 'waitBeforeCapture' });
|
|
1025
|
+
}
|
|
1021
1026
|
this._config.waitBeforeCapture = waitBeforeCapture;
|
|
1022
1027
|
}
|
|
1023
1028
|
getWaitBeforeCapture() {
|
|
@@ -1041,13 +1046,27 @@ class ConfigurationData {
|
|
|
1041
1046
|
this.waitBeforeScreenshots = waitBeforeScreenshots;
|
|
1042
1047
|
return this;
|
|
1043
1048
|
}
|
|
1049
|
+
get fully() {
|
|
1050
|
+
return this._config.fully;
|
|
1051
|
+
}
|
|
1052
|
+
set fully(fully) {
|
|
1053
|
+
utils.guard.isBoolean(fully, { name: 'fully' });
|
|
1054
|
+
this._config.fully = fully;
|
|
1055
|
+
}
|
|
1056
|
+
getFully() {
|
|
1057
|
+
return this.fully;
|
|
1058
|
+
}
|
|
1059
|
+
setFully(fully) {
|
|
1060
|
+
this.fully = fully;
|
|
1061
|
+
return this;
|
|
1062
|
+
}
|
|
1044
1063
|
/** @internal */
|
|
1045
1064
|
toObject() {
|
|
1046
1065
|
return this._config;
|
|
1047
1066
|
}
|
|
1048
1067
|
/** @internal */
|
|
1049
1068
|
toJSON() {
|
|
1050
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1069
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1051
1070
|
return utils.general.toJSON({
|
|
1052
1071
|
open: utils.general.removeUndefinedProps({
|
|
1053
1072
|
eyesServerUrl: this.serverUrl,
|
|
@@ -1088,7 +1107,7 @@ class ConfigurationData {
|
|
|
1088
1107
|
disableBrokerUrlCache: this.disableNMLUrlCache,
|
|
1089
1108
|
}),
|
|
1090
1109
|
screenshot: utils.general.removeUndefinedProps({
|
|
1091
|
-
fully: this.forceFullPageScreenshot,
|
|
1110
|
+
fully: (_a = this.fully) !== null && _a !== void 0 ? _a : this.forceFullPageScreenshot,
|
|
1092
1111
|
scrollRootElement: this.scrollRootElement,
|
|
1093
1112
|
stitchMode: this.stitchMode,
|
|
1094
1113
|
hideScrollbars: this.hideScrollbars,
|
|
@@ -1101,14 +1120,14 @@ class ConfigurationData {
|
|
|
1101
1120
|
rotation: this.rotation,
|
|
1102
1121
|
scaleRatio: this.scaleRatio,
|
|
1103
1122
|
}),
|
|
1104
|
-
debugImages: ((
|
|
1123
|
+
debugImages: ((_b = this.debugScreenshots) === null || _b === void 0 ? void 0 : _b.save) && utils.types.has(this.debugScreenshots, 'path')
|
|
1105
1124
|
? this.debugScreenshots
|
|
1106
1125
|
: undefined,
|
|
1107
1126
|
captureStatusBar: this.captureStatusBar,
|
|
1108
1127
|
mobileOptions: this.mobileOptions,
|
|
1109
1128
|
}),
|
|
1110
1129
|
check: utils.general.removeUndefinedProps({
|
|
1111
|
-
environments: (
|
|
1130
|
+
environments: (_c = this.browsersInfo) === null || _c === void 0 ? void 0 : _c.map(browserInfo => {
|
|
1112
1131
|
if (utils.types.has(browserInfo, 'iosDeviceInfo') &&
|
|
1113
1132
|
utils.types.has(browserInfo.iosDeviceInfo, 'iosVersion')) {
|
|
1114
1133
|
const { iosVersion, ...iosDeviceInfo } = browserInfo.iosDeviceInfo;
|
|
@@ -1120,27 +1139,27 @@ class ConfigurationData {
|
|
|
1120
1139
|
layoutBreakpoints: utils.types.isDefined(this.layoutBreakpoints)
|
|
1121
1140
|
? utils.types.has(this.layoutBreakpoints, 'breakpoints')
|
|
1122
1141
|
? this.layoutBreakpoints
|
|
1123
|
-
: { breakpoints: (
|
|
1142
|
+
: { breakpoints: (_d = this.layoutBreakpoints) !== null && _d !== void 0 ? _d : false }
|
|
1124
1143
|
: undefined,
|
|
1125
1144
|
disableBrowserFetching: this.disableBrowserFetching,
|
|
1126
1145
|
autProxy: this.autProxy,
|
|
1127
1146
|
sendDom: this.sendDom,
|
|
1128
1147
|
retryTimeout: this.matchTimeout,
|
|
1129
|
-
matchLevel: (
|
|
1130
|
-
ignoreCaret: (
|
|
1131
|
-
ignoreDisplacements: (
|
|
1132
|
-
enablePatterns: (
|
|
1133
|
-
accessibilitySettings: ((
|
|
1148
|
+
matchLevel: (_e = this.defaultMatchSettings) === null || _e === void 0 ? void 0 : _e.matchLevel,
|
|
1149
|
+
ignoreCaret: (_f = this.defaultMatchSettings) === null || _f === void 0 ? void 0 : _f.ignoreCaret,
|
|
1150
|
+
ignoreDisplacements: (_g = this.defaultMatchSettings) === null || _g === void 0 ? void 0 : _g.ignoreDisplacements,
|
|
1151
|
+
enablePatterns: (_h = this.defaultMatchSettings) === null || _h === void 0 ? void 0 : _h.enablePatterns,
|
|
1152
|
+
accessibilitySettings: ((_j = this.defaultMatchSettings) === null || _j === void 0 ? void 0 : _j.accessibilitySettings) && {
|
|
1134
1153
|
level: this.defaultMatchSettings.accessibilitySettings.level,
|
|
1135
1154
|
version: this.defaultMatchSettings.accessibilitySettings.guidelinesVersion,
|
|
1136
1155
|
},
|
|
1137
|
-
useDom: (
|
|
1138
|
-
ignoreRegions: (
|
|
1139
|
-
contentRegions: (
|
|
1140
|
-
layoutRegions: (
|
|
1141
|
-
strictRegions: (
|
|
1142
|
-
floatingRegions: (
|
|
1143
|
-
accessibilityRegions: (
|
|
1156
|
+
useDom: (_k = this.defaultMatchSettings) === null || _k === void 0 ? void 0 : _k.useDom,
|
|
1157
|
+
ignoreRegions: (_l = this.defaultMatchSettings) === null || _l === void 0 ? void 0 : _l.ignoreRegions,
|
|
1158
|
+
contentRegions: (_m = this.defaultMatchSettings) === null || _m === void 0 ? void 0 : _m.contentRegions,
|
|
1159
|
+
layoutRegions: (_o = this.defaultMatchSettings) === null || _o === void 0 ? void 0 : _o.layoutRegions,
|
|
1160
|
+
strictRegions: (_p = this.defaultMatchSettings) === null || _p === void 0 ? void 0 : _p.strictRegions,
|
|
1161
|
+
floatingRegions: (_q = this.defaultMatchSettings) === null || _q === void 0 ? void 0 : _q.floatingRegions,
|
|
1162
|
+
accessibilityRegions: (_r = this.defaultMatchSettings) === null || _r === void 0 ? void 0 : _r.accessibilityRegions,
|
|
1144
1163
|
}),
|
|
1145
1164
|
close: utils.general.removeUndefinedProps({
|
|
1146
1165
|
updateBaselineIfDifferent: this.saveFailedTests,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@applitools/core": "4.
|
|
50
|
-
"@applitools/logger": "2.1.
|
|
51
|
-
"@applitools/utils": "1.
|
|
49
|
+
"@applitools/core": "4.35.0",
|
|
50
|
+
"@applitools/logger": "2.1.2",
|
|
51
|
+
"@applitools/utils": "1.8.0",
|
|
52
52
|
"chalk": "4.1.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@applitools/req": "^1.7.
|
|
55
|
+
"@applitools/req": "^1.7.9",
|
|
56
56
|
"@types/node": "^12.20.55"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
@@ -100,7 +100,7 @@ export type CheckSettingsAutomation<TSpec extends Core.SpecType> = CheckSettings
|
|
|
100
100
|
beforeCaptureScreenshot: string;
|
|
101
101
|
};
|
|
102
102
|
timeout?: number;
|
|
103
|
-
waitBeforeCapture?: number;
|
|
103
|
+
waitBeforeCapture?: number | (() => Promise<void>);
|
|
104
104
|
lazyLoad?: boolean | LazyLoadOptions;
|
|
105
105
|
};
|
|
106
106
|
export declare class CheckSettingsBaseFluent<TRegion = never> {
|
|
@@ -232,7 +232,7 @@ export declare class CheckSettingsAutomationFluent<TSpec extends Core.SpecType =
|
|
|
232
232
|
}): this;
|
|
233
233
|
useSystemScreenshot(useSystemScreenshot?: boolean): this;
|
|
234
234
|
timeout(timeout: number): typeof this;
|
|
235
|
-
waitBeforeCapture(waitBeforeCapture: number): typeof this;
|
|
235
|
+
waitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>)): typeof this;
|
|
236
236
|
lazyLoad(options?: LazyLoadOptions | boolean): typeof this;
|
|
237
237
|
densityMetrics(options: DensityMetrics): typeof this;
|
|
238
238
|
stitchMode(stitchMode: StitchMode): typeof this;
|
|
@@ -48,7 +48,9 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
|
48
48
|
dontCloseBatches?: boolean;
|
|
49
49
|
enablePatterns?: boolean;
|
|
50
50
|
environmentName?: string;
|
|
51
|
+
/** @deprecated use fully instead */
|
|
51
52
|
forceFullPageScreenshot?: boolean;
|
|
53
|
+
fully?: boolean;
|
|
52
54
|
gitMergeBaseTimestamp?: string;
|
|
53
55
|
latestCommitInfo?: LatestCommitInfo;
|
|
54
56
|
hideCaret?: boolean;
|
|
@@ -91,7 +93,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
|
91
93
|
useDom?: boolean;
|
|
92
94
|
viewportSize?: RectangleSize;
|
|
93
95
|
visualGridOptions?: Record<string, any>;
|
|
94
|
-
waitBeforeCapture?: number;
|
|
96
|
+
waitBeforeCapture?: number | (() => Promise<void>);
|
|
95
97
|
waitBeforeScreenshots?: number;
|
|
96
98
|
};
|
|
97
99
|
export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecType> implements Required<Configuration<TSpec>> {
|
|
@@ -414,14 +416,18 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
414
416
|
[key: string]: any;
|
|
415
417
|
}): this;
|
|
416
418
|
setVisualGridOption(key: string, value: any): this;
|
|
417
|
-
get waitBeforeCapture(): number;
|
|
418
|
-
set waitBeforeCapture(waitBeforeCapture: number);
|
|
419
|
-
getWaitBeforeCapture(): number;
|
|
420
|
-
setWaitBeforeCapture(waitBeforeCapture: number): this;
|
|
419
|
+
get waitBeforeCapture(): number | (() => Promise<void>);
|
|
420
|
+
set waitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>));
|
|
421
|
+
getWaitBeforeCapture(): number | (() => Promise<void>);
|
|
422
|
+
setWaitBeforeCapture(waitBeforeCapture: number | (() => Promise<void>)): this;
|
|
421
423
|
get waitBeforeScreenshots(): number;
|
|
422
424
|
set waitBeforeScreenshots(waitBeforeScreenshots: number);
|
|
423
425
|
getWaitBeforeScreenshots(): number;
|
|
424
426
|
setWaitBeforeScreenshots(waitBeforeScreenshots: number): this;
|
|
427
|
+
get fully(): boolean;
|
|
428
|
+
set fully(fully: boolean);
|
|
429
|
+
getFully(): boolean;
|
|
430
|
+
setFully(fully: boolean): this;
|
|
425
431
|
/** @internal */
|
|
426
432
|
toObject(): Configuration<TSpec>;
|
|
427
433
|
/** @internal */
|