@applitools/eyes-browser 1.6.7 → 1.6.9
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 +177 -0
- package/dist/index.js +115 -137
- package/package.json +3 -3
- package/types/input/CheckSettings.d.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,182 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.6.9](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.8...js/eyes-browser@1.6.9) (2026-03-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
9
|
+
* export `ConsoleLogHandler` from eyes-browser package ([#3711](https://github.com/Applitools-Dev/sdk/issues/3711)) ([d9211cc](https://github.com/Applitools-Dev/sdk/commit/d9211cc8ae281e435f5d4439c297ab1ec2c9bf01))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* @applitools/utils bumped to 1.14.3
|
|
15
|
+
#### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
18
|
+
* @applitools/logger bumped to 2.2.10
|
|
19
|
+
#### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
* @applitools/dom-snapshot bumped to 4.16.2
|
|
26
|
+
#### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
* @applitools/socket bumped to 1.3.11
|
|
33
|
+
#### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
* @applitools/req bumped to 1.9.2
|
|
40
|
+
#### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
* @applitools/image bumped to 1.2.9
|
|
47
|
+
#### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
* @applitools/snippets bumped to 2.8.1
|
|
54
|
+
#### Bug Fixes
|
|
55
|
+
|
|
56
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
57
|
+
* @applitools/dom-capture bumped to 11.6.13
|
|
58
|
+
#### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
* @applitools/driver bumped to 1.25.4
|
|
65
|
+
#### Bug Fixes
|
|
66
|
+
|
|
67
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
* @applitools/spec-driver-webdriver bumped to 1.5.9
|
|
72
|
+
#### Bug Fixes
|
|
73
|
+
|
|
74
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
* @applitools/spec-driver-selenium bumped to 1.7.15
|
|
79
|
+
#### Bug Fixes
|
|
80
|
+
|
|
81
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
* @applitools/spec-driver-puppeteer bumped to 1.7.4
|
|
86
|
+
#### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
* @applitools/screenshoter bumped to 3.12.17
|
|
93
|
+
#### Bug Fixes
|
|
94
|
+
|
|
95
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
* @applitools/nml-client bumped to 1.11.22
|
|
100
|
+
#### Bug Fixes
|
|
101
|
+
|
|
102
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
* @applitools/tunnel-client bumped to 1.11.9
|
|
107
|
+
#### Bug Fixes
|
|
108
|
+
|
|
109
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
110
|
+
* tunnel client network test | AD-12582 ([#3699](https://github.com/Applitools-Dev/sdk/issues/3699)) ([f0b01f9](https://github.com/Applitools-Dev/sdk/commit/f0b01f9d7614a3e14d77a77dd76cb58b712d3a0a))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
* @applitools/ufg-client bumped to 1.20.1
|
|
115
|
+
#### Bug Fixes
|
|
116
|
+
|
|
117
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
118
|
+
* strip logger from resources before passing to checkResources ([#3638](https://github.com/Applitools-Dev/sdk/issues/3638)) ([5491e9f](https://github.com/Applitools-Dev/sdk/commit/5491e9f0b2cf5eb1ca0e5c5a381407d3f5c24f3f))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
* @applitools/core-base bumped to 1.32.4
|
|
123
|
+
#### Bug Fixes
|
|
124
|
+
|
|
125
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
* @applitools/ec-client bumped to 1.12.24
|
|
130
|
+
#### Bug Fixes
|
|
131
|
+
|
|
132
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
* @applitools/core bumped to 4.59.0
|
|
137
|
+
#### Features
|
|
138
|
+
|
|
139
|
+
* use branch name env vars for CI ([#3687](https://github.com/Applitools-Dev/sdk/issues/3687)) ([229609e](https://github.com/Applitools-Dev/sdk/commit/229609e83b2b2c55fdb26657085aa94f84e4af73))
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
#### Bug Fixes
|
|
143
|
+
|
|
144
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
145
|
+
* remove NMG takeSnapshots functionality and all related dead code ([2e74475](https://github.com/Applitools-Dev/sdk/commit/2e74475934b1c94723f7381df0047f5dbddd2246)), closes [#3654](https://github.com/Applitools-Dev/sdk/issues/3654)
|
|
146
|
+
* remove spec parameter from makeTakeSnapshots calls to match function signature ([e47fb33](https://github.com/Applitools-Dev/sdk/commit/e47fb338d1e387c3b2a5898f008f1298f8118388))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
* @applitools/eyes bumped to 1.38.12
|
|
151
|
+
#### Bug Fixes
|
|
152
|
+
|
|
153
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
154
|
+
* remove NMG takeSnapshots functionality and all related dead code ([2e74475](https://github.com/Applitools-Dev/sdk/commit/2e74475934b1c94723f7381df0047f5dbddd2246)), closes [#3654](https://github.com/Applitools-Dev/sdk/issues/3654)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
* @applitools/test-server bumped to 1.4.2
|
|
159
|
+
#### Bug Fixes
|
|
160
|
+
|
|
161
|
+
* exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## [1.6.8](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.7...js/eyes-browser@1.6.8) (2026-03-16)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### Dependencies
|
|
170
|
+
|
|
171
|
+
* @applitools/dom-snapshot bumped to 4.16.1
|
|
172
|
+
#### Bug Fixes
|
|
173
|
+
|
|
174
|
+
* capture slot assigned nodes in custom shadow roots | FLD-4226 ([#3666](https://github.com/Applitools-Dev/sdk/issues/3666)) ([a794617](https://github.com/Applitools-Dev/sdk/commit/a79461719b76a551838198a426f4b0b8b6d0df51))
|
|
175
|
+
* @applitools/core bumped to 4.58.2
|
|
176
|
+
|
|
177
|
+
* @applitools/eyes bumped to 1.38.11
|
|
178
|
+
|
|
179
|
+
|
|
3
180
|
## [1.6.7](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.6...js/eyes-browser@1.6.7) (2026-03-16)
|
|
4
181
|
|
|
5
182
|
|
package/dist/index.js
CHANGED
|
@@ -14150,16 +14150,6 @@ var require_CheckSettings = __commonJS({
|
|
|
14150
14150
|
return this;
|
|
14151
14151
|
}
|
|
14152
14152
|
/** @deprecated */
|
|
14153
|
-
nmgOption(key, value) {
|
|
14154
|
-
this._settings.nmgOptions = { ...this._settings.nmgOptions, [key]: value };
|
|
14155
|
-
return this;
|
|
14156
|
-
}
|
|
14157
|
-
/** @deprecated */
|
|
14158
|
-
nmgOptions(options) {
|
|
14159
|
-
this._settings.nmgOptions = options;
|
|
14160
|
-
return this;
|
|
14161
|
-
}
|
|
14162
|
-
/** @deprecated */
|
|
14163
14153
|
visualGridOption(key, value) {
|
|
14164
14154
|
return this.ufgOption(key, value);
|
|
14165
14155
|
}
|
|
@@ -14230,7 +14220,6 @@ var require_CheckSettings = __commonJS({
|
|
|
14230
14220
|
disableBrowserFetching: this._settings.disableBrowserFetching,
|
|
14231
14221
|
layoutBreakpoints: utils2.types.isDefined(this._settings.layoutBreakpoints) ? this.toLayoutBreakpoints() : void 0,
|
|
14232
14222
|
ufgOptions: (_h = this._settings.ufgOptions) !== null && _h !== void 0 ? _h : this._settings.visualGridOptions,
|
|
14233
|
-
nmgOptions: this._settings.nmgOptions,
|
|
14234
14223
|
screenshotMode: this._settings.useSystemScreenshot ? "default" : void 0,
|
|
14235
14224
|
hooks: this._settings.hooks,
|
|
14236
14225
|
pageId: this._settings.pageId,
|
|
@@ -68188,6 +68177,27 @@ var require_lib2 = __commonJS({
|
|
|
68188
68177
|
}
|
|
68189
68178
|
});
|
|
68190
68179
|
|
|
68180
|
+
// esbuild/builtins/sharp.ts
|
|
68181
|
+
var sharp_exports = {};
|
|
68182
|
+
__export(sharp_exports, {
|
|
68183
|
+
default: () => sharp_default
|
|
68184
|
+
});
|
|
68185
|
+
function sharp() {
|
|
68186
|
+
throw new Error("@applitools/eyes-browser: sharp is not available in browser environments");
|
|
68187
|
+
}
|
|
68188
|
+
var sharp_default;
|
|
68189
|
+
var init_sharp = __esm({
|
|
68190
|
+
"esbuild/builtins/sharp.ts"() {
|
|
68191
|
+
"use strict";
|
|
68192
|
+
init_global();
|
|
68193
|
+
init_process();
|
|
68194
|
+
init_setImmediate();
|
|
68195
|
+
init_buffer();
|
|
68196
|
+
init_setInterval();
|
|
68197
|
+
sharp_default = sharp;
|
|
68198
|
+
}
|
|
68199
|
+
});
|
|
68200
|
+
|
|
68191
68201
|
// ../image/dist/formats/png-sharp.js
|
|
68192
68202
|
var require_png_sharp = __commonJS({
|
|
68193
68203
|
"../image/dist/formats/png-sharp.js"(exports) {
|
|
@@ -68202,7 +68212,7 @@ var require_png_sharp = __commonJS({
|
|
|
68202
68212
|
};
|
|
68203
68213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68204
68214
|
exports.toPngSharp = exports.fromPngBufferSharp = void 0;
|
|
68205
|
-
var sharp_1 = __importDefault(
|
|
68215
|
+
var sharp_1 = __importDefault((init_sharp(), __toCommonJS(sharp_exports)));
|
|
68206
68216
|
var buffer_1 = require_buffer();
|
|
68207
68217
|
async function fromPngBufferSharp(buffer) {
|
|
68208
68218
|
const { data, info } = await (0, sharp_1.default)(buffer_1.Buffer.from(buffer)).ensureAlpha().raw().toBuffer({ resolveWithObject: true });
|
|
@@ -80764,7 +80774,7 @@ ${l2}`}`, { bundledCss: i2, unfetchedResources: u2 };
|
|
|
80764
80774
|
return d4 && (S3.shadowRoot = d4), S3;
|
|
80765
80775
|
}
|
|
80766
80776
|
}(t4);
|
|
80767
|
-
d2(i2.doCaptureDoc), l2(i2.waitForImages), await Promise.all(f2), d2(i2.waitForImages), S2.version = "1.3.0", S2.scriptVersion = "11.6.
|
|
80777
|
+
d2(i2.doCaptureDoc), l2(i2.waitForImages), await Promise.all(f2), d2(i2.waitForImages), S2.version = "1.3.0", S2.scriptVersion = "11.6.13";
|
|
80768
80778
|
const N2 = h2.length ? `${h2.join("\n")}
|
|
80769
80779
|
` : "", A2 = m2.size ? `${Array.from(m2).join("\n")}
|
|
80770
80780
|
` : "", v2 = JSON.stringify({ separator: y2, cssStartToken: g2, cssEndToken: g2, iframeStartToken: `"${p2}`, iframeEndToken: `${p2}"` });
|
|
@@ -87702,7 +87712,7 @@ var require_captureDomPollForIE = __commonJS({
|
|
|
87702
87712
|
case 23:
|
|
87703
87713
|
return I2 = e5.sent, A2(w2.prefetchCss), L2 = N0({ parseCss: U0, CSSImportRule, getCssFromCache: I2, absolutizeUrl: L0, unfetchedToken: R2 }), j2 = B0({ getCssFromCache: I2, absolutizeUrl: L0 }), k2 = z0({ extractCssFromNode: j2, getBundledCssFromCssText: L2, unfetchedToken: R2 }), E2(w2.doCaptureDoc), C2 = G2(i3), A2(w2.doCaptureDoc), E2(w2.waitForImages), e5.next = 34, Promise.all(S2);
|
|
87704
87714
|
case 34:
|
|
87705
|
-
return A2(w2.waitForImages), C2.version = "1.3.0", C2.scriptVersion = "11.6.
|
|
87715
|
+
return A2(w2.waitForImages), C2.version = "1.3.0", C2.scriptVersion = "11.6.13", M2 = x2.length ? x2.join("\n") + "\n" : "", N2 = O2.size ? Array.from(O2).join("\n") + "\n" : "", U2 = JSON.stringify({ separator: _2, cssStartToken: R2, cssEndToken: R2, iframeStartToken: '"' + T2, iframeEndToken: T2 + '"' }), A2(w2.total), F2 = JSON.stringify(C2), B2 = U2 + "\n" + N2 + _2 + "\n" + M2 + _2 + "\n" + ("string" == typeof F2 ? F2 : G0(C2)) + D2(), console.log("[captureFrame]", JSON.stringify(w2)), e5.abrupt("return", B2);
|
|
87706
87716
|
case 45:
|
|
87707
87717
|
case "end":
|
|
87708
87718
|
return e5.stop();
|
|
@@ -100561,34 +100571,34 @@ var require_processPagePollCjs = __commonJS({
|
|
|
100561
100571
|
let c2 = [];
|
|
100562
100572
|
const u2 = [], h2 = [];
|
|
100563
100573
|
return r3[0].childNodeIndexes = p2(r3, e3.childNodes), e3.adoptedStyleSheets && e3.adoptedStyleSheets.length > 0 && (r3[0].exp_adoptedStyleSheets = Ql(e3, n3)), { cdt: r3, docRoots: o3, canvasElements: i3, frames: s3, inlineFrames: a3, crossFrames: l2, linkUrls: c2, imageBlobs: u2, videoBlobs: h2 };
|
|
100564
|
-
function p2(e4, t4) {
|
|
100574
|
+
function p2(e4, t4, n4) {
|
|
100565
100575
|
if (!t4 || 0 === t4.length)
|
|
100566
100576
|
return null;
|
|
100567
|
-
const
|
|
100577
|
+
const r4 = [];
|
|
100568
100578
|
return Array.prototype.forEach.call(t4, (t5) => {
|
|
100569
|
-
const
|
|
100570
|
-
null !==
|
|
100571
|
-
}),
|
|
100572
|
-
}
|
|
100573
|
-
function m2(e4, r4) {
|
|
100574
|
-
var
|
|
100575
|
-
const
|
|
100576
|
-
let
|
|
100577
|
-
if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(
|
|
100578
|
-
if (
|
|
100579
|
+
const o4 = m2(e4, t5, n4);
|
|
100580
|
+
null !== o4 && r4.push(o4);
|
|
100581
|
+
}), r4;
|
|
100582
|
+
}
|
|
100583
|
+
function m2(e4, r4, f2) {
|
|
100584
|
+
var g2;
|
|
100585
|
+
const b2 = Zl(r4);
|
|
100586
|
+
let k2;
|
|
100587
|
+
if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(b2.nodeType)) {
|
|
100588
|
+
if (b2.hasAttribute && b2.hasAttribute("data-applitools-skip"))
|
|
100579
100589
|
return null;
|
|
100580
|
-
if (["LINK", "STYLE", "SOURCE"].includes(
|
|
100590
|
+
if (["LINK", "STYLE", "SOURCE"].includes(b2.nodeName) && (null === (g2 = b2.media) || void 0 === g2 ? void 0 : g2.trim()) && !Wl(b2.media))
|
|
100581
100591
|
return null;
|
|
100582
|
-
if ("SCRIPT" ===
|
|
100583
|
-
|
|
100592
|
+
if ("SCRIPT" === b2.nodeName)
|
|
100593
|
+
k2 = function(e5) {
|
|
100584
100594
|
return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Yl(e5).map((t4) => {
|
|
100585
100595
|
const n4 = e5.attributes[t4].name;
|
|
100586
100596
|
return { name: n4, value: Hl.test(n4) ? "" : e5.attributes[t4].value };
|
|
100587
100597
|
}).filter((e6) => "src" !== e6.name), childNodeIndexes: [] };
|
|
100588
|
-
}(
|
|
100598
|
+
}(b2);
|
|
100589
100599
|
else {
|
|
100590
|
-
const c3 =
|
|
100591
|
-
if (
|
|
100600
|
+
const c3 = b2.shadowRoot && b2.shadowRoot.childNodes.length && "ShadowRoot" !== b2.shadowRoot.constructor.name;
|
|
100601
|
+
if (k2 = function(e5) {
|
|
100592
100602
|
var t4, n4, r5;
|
|
100593
100603
|
const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Yl(e5).map((t5) => {
|
|
100594
100604
|
let n5 = e5.attributes[t5].value;
|
|
@@ -100610,7 +100620,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
100610
100620
|
i4 && a4 === s4 || Xl(o4.attributes, "value", s4);
|
|
100611
100621
|
}
|
|
100612
100622
|
return "OPTION" === e5.tagName && e5.parentElement && e5.parentElement.selectedOptions && Array.from(e5.parentElement.selectedOptions).indexOf(Zl.unwrap(e5)) > -1 && Xl(o4.attributes, "selected", ""), "STYLE" === e5.tagName && e5.sheet && e5.sheet.disabled && o4.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e5.tagName && "text/css" === e5.type && e5.sheet && e5.sheet.disabled && Xl(o4.attributes, "disabled", ""), o4;
|
|
100613
|
-
}(
|
|
100623
|
+
}(b2), "STYLE" === b2.nodeName && b2.sheet && b2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
|
|
100614
100624
|
const r5 = (o4 = e5, function(e6) {
|
|
100615
100625
|
return t5 = function(e7) {
|
|
100616
100626
|
const t6 = e7.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
|
|
@@ -100630,38 +100640,38 @@ var require_processPagePollCjs = __commonJS({
|
|
|
100630
100640
|
}(Array.prototype.map.call(o4.sheet.cssRules, (e6) => e6.cssText).join("")));
|
|
100631
100641
|
var o4;
|
|
100632
100642
|
return n4.__dsNodeCache && n4.__dsNodeCache.key === r5 ? t4.log("[domNodesToCdt] using cache for inline css of", zl(e5)) : n4.__dsNodeCache = { key: r5, value: Tl(e5, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
|
|
100633
|
-
}(
|
|
100643
|
+
}(b2, n3, r4)), k2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === b2.tagName && b2.value !== b2.textContent ? (e4.push(function(e5) {
|
|
100634
100644
|
return { nodeType: Node.TEXT_NODE, nodeValue: e5.value };
|
|
100635
|
-
}(
|
|
100636
|
-
const t4 =
|
|
100637
|
-
|
|
100645
|
+
}(b2)), k2.childNodeIndexes = [e4.length - 1]) : k2.childNodeIndexes = !c3 && b2.childNodes.length ? p2(e4, b2.childNodes, f2) : [], f2 && "SLOT" === b2.tagName && "function" == typeof b2.assignedNodes) {
|
|
100646
|
+
const t4 = b2.assignedNodes();
|
|
100647
|
+
t4.length && (k2.childNodeIndexes = p2(e4, t4, f2) || []);
|
|
100638
100648
|
}
|
|
100639
|
-
if (
|
|
100649
|
+
if (b2.shadowRoot && (c3 ? k2.childNodeIndexes = k2.childNodeIndexes.concat(p2(e4, b2.shadowRoot.childNodes, true)) : (k2.shadowRootIndex = m2(e4, b2.shadowRoot), o3.push(b2.shadowRoot))), "CANVAS" === b2.nodeName && !ql(r4)) {
|
|
100640
100650
|
const e5 = y(`applitools-canvas-${S()}.png`, t3);
|
|
100641
|
-
|
|
100651
|
+
k2.attributes.push({ name: "data-applitools-src", value: e5 }), i3.push({ element: b2, cdtNode: k2, url: e5 });
|
|
100642
100652
|
}
|
|
100643
|
-
if ("IFRAME" ===
|
|
100653
|
+
if ("IFRAME" === b2.nodeName) {
|
|
100644
100654
|
const n4 = S();
|
|
100645
|
-
if (
|
|
100646
|
-
|
|
100647
|
-
"src" !== e5.name && "srcdoc" !== e5.name || (
|
|
100655
|
+
if (b2.setAttribute("data-applitools-selector", n4.toString()), ql(r4))
|
|
100656
|
+
k2.attributes.forEach((e5) => {
|
|
100657
|
+
"src" !== e5.name && "srcdoc" !== e5.name || (k2.attributes.push({ name: `data-applitools-original-${e5.name}`, value: e5.value }), e5.value = "");
|
|
100648
100658
|
});
|
|
100649
100659
|
else if (d(r4))
|
|
100650
|
-
if (w(
|
|
100660
|
+
if (w(b2)) {
|
|
100651
100661
|
const e5 = y(`?applitools-iframe=${S()}`, t3);
|
|
100652
|
-
|
|
100662
|
+
k2.attributes.push({ name: "data-applitools-src", value: e5 }), a3.push({ element: b2, url: e5 });
|
|
100653
100663
|
} else {
|
|
100654
|
-
const e5 =
|
|
100655
|
-
|
|
100664
|
+
const e5 = b2.contentDocument.location.href, t4 = y(`?applitools-iframe=${S()}`, e5);
|
|
100665
|
+
k2.attributes.push({ name: "data-applitools-src", value: t4 }), s3.push({ element: b2, url: t4 });
|
|
100656
100666
|
}
|
|
100657
100667
|
else {
|
|
100658
100668
|
const t4 = `[data-applitools-selector="${n4}"]`;
|
|
100659
100669
|
l2.push({ selector: t4, index: e4.length });
|
|
100660
100670
|
}
|
|
100661
100671
|
}
|
|
100662
|
-
|
|
100672
|
+
b2.adoptedStyleSheets && b2.adoptedStyleSheets.length > 0 && (k2.exp_adoptedStyleSheets = Ql(b2, n3));
|
|
100663
100673
|
}
|
|
100664
|
-
if (
|
|
100674
|
+
if (b2.nodeType === Node.ELEMENT_NODE) {
|
|
100665
100675
|
const n4 = function(e5) {
|
|
100666
100676
|
const t4 = (e5.matches || e5.msMatchesSelector).bind(e5);
|
|
100667
100677
|
let n5 = [];
|
|
@@ -100707,30 +100717,30 @@ var require_processPagePollCjs = __commonJS({
|
|
|
100707
100717
|
return Ul(e6.style);
|
|
100708
100718
|
}(e5);
|
|
100709
100719
|
return r5 && (n5 = n5.concat(r5)), n5;
|
|
100710
|
-
}(
|
|
100711
|
-
if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" ===
|
|
100712
|
-
const e5 =
|
|
100713
|
-
u2.push({ element:
|
|
100720
|
+
}(b2);
|
|
100721
|
+
if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" === b2.tagName && /^blob:/.test(b2.src)) {
|
|
100722
|
+
const e5 = b2.src.replace(/^blob:/, "");
|
|
100723
|
+
u2.push({ element: b2, cdtNode: k2, url: e5 });
|
|
100714
100724
|
}
|
|
100715
|
-
if ("VIDEO" ===
|
|
100725
|
+
if ("VIDEO" === b2.tagName && (/^blob:/.test(b2.src) || b2.srcObject)) {
|
|
100716
100726
|
let n5;
|
|
100717
|
-
if (
|
|
100718
|
-
if (n5 =
|
|
100719
|
-
const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value:
|
|
100720
|
-
e4.push(t4),
|
|
100727
|
+
if (b2.src) {
|
|
100728
|
+
if (n5 = b2.src.replace(/^blob:/, ""), k2.attributes = k2.attributes.filter((e5) => "src" !== e5.name), !k2.childNodeIndexes.some((t4) => "SOURCE" === e4[t4].nodeName)) {
|
|
100729
|
+
const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value: b2.src.replace(/^blob:/, "") }], childNodeIndexes: [] };
|
|
100730
|
+
e4.push(t4), k2.childNodeIndexes.push(e4.length - 1);
|
|
100721
100731
|
}
|
|
100722
100732
|
} else
|
|
100723
|
-
n5 = y(`applitools-video-${S()}.webm`, t3),
|
|
100724
|
-
h2.push({ element:
|
|
100733
|
+
n5 = y(`applitools-video-${S()}.webm`, t3), k2.attributes.push({ name: "data-applitools-src", value: n5 });
|
|
100734
|
+
h2.push({ element: b2, url: n5 });
|
|
100725
100735
|
}
|
|
100726
100736
|
}
|
|
100727
100737
|
} else
|
|
100728
|
-
|
|
100738
|
+
b2.nodeType === Node.TEXT_NODE ? k2 = function(e5) {
|
|
100729
100739
|
return { nodeType: Node.TEXT_NODE, nodeValue: e5.nodeValue };
|
|
100730
|
-
}(
|
|
100740
|
+
}(b2) : b2.nodeType === Node.DOCUMENT_TYPE_NODE && (k2 = function(e5) {
|
|
100731
100741
|
return { nodeType: Node.DOCUMENT_TYPE_NODE, nodeName: e5.nodeName };
|
|
100732
|
-
}(
|
|
100733
|
-
return
|
|
100742
|
+
}(b2));
|
|
100743
|
+
return k2 ? (e4.push(k2), e4.length - 1) : null;
|
|
100734
100744
|
}
|
|
100735
100745
|
}
|
|
100736
100746
|
function Yl(e3) {
|
|
@@ -102542,7 +102552,7 @@ creating temp style for access.`), r3 = Hh(e3);
|
|
|
102542
102552
|
function P2(e3) {
|
|
102543
102553
|
return n4.defaultView && n4.defaultView.frameElement && n4.defaultView.frameElement.getAttribute(e3);
|
|
102544
102554
|
}
|
|
102545
|
-
}(t3).then((e3) => (d2.log("processPage end"), e3.scriptVersion = "4.16.
|
|
102555
|
+
}(t3).then((e3) => (d2.log("processPage end"), e3.scriptVersion = "4.16.2", e3));
|
|
102546
102556
|
}, window[x], "domSnapshotResult");
|
|
102547
102557
|
return function(e3) {
|
|
102548
102558
|
try {
|
|
@@ -103386,7 +103396,7 @@ var require_to_generated_selectors = __commonJS({
|
|
|
103386
103396
|
init_setInterval();
|
|
103387
103397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103388
103398
|
exports.toGeneratedSelectors = void 0;
|
|
103389
|
-
function toGeneratedSelectors({ elementReferences, logger
|
|
103399
|
+
function toGeneratedSelectors({ elementReferences, logger }) {
|
|
103390
103400
|
var _a, _b, _c;
|
|
103391
103401
|
const elementReferencesToMark = [
|
|
103392
103402
|
(_a = elementReferences.target) !== null && _a !== void 0 ? _a : [],
|
|
@@ -103395,7 +103405,7 @@ var require_to_generated_selectors = __commonJS({
|
|
|
103395
103405
|
].flat();
|
|
103396
103406
|
return { elementReferencesToMark, getGeneratedSelectors };
|
|
103397
103407
|
function getGeneratedSelectors(generatedSelectors) {
|
|
103398
|
-
var _a2, _b2
|
|
103408
|
+
var _a2, _b2;
|
|
103399
103409
|
let target = void 0;
|
|
103400
103410
|
let scrolling = void 0;
|
|
103401
103411
|
let calculate = [];
|
|
@@ -103433,15 +103443,6 @@ var require_to_generated_selectors = __commonJS({
|
|
|
103433
103443
|
safeSelector: isError ? null : safeSelector
|
|
103434
103444
|
};
|
|
103435
103445
|
});
|
|
103436
|
-
} else if (target || scrolling || calculate.length) {
|
|
103437
|
-
logDeprecations("toGeneratedSelectors: `transformElementReference` was unexpectedly called.");
|
|
103438
|
-
target = elementReferences.target && transformElementReference(elementReferences.target);
|
|
103439
|
-
scrolling = elementReferences.scrolling && transformElementReference(elementReferences.scrolling);
|
|
103440
|
-
calculate = ((_c2 = elementReferences.calculate) !== null && _c2 !== void 0 ? _c2 : []).map((elementReference) => {
|
|
103441
|
-
var _a3;
|
|
103442
|
-
const selector = (_a3 = transformElementReference(elementReference)) !== null && _a3 !== void 0 ? _a3 : null;
|
|
103443
|
-
return { originalSelector: selector, safeSelector: selector };
|
|
103444
|
-
});
|
|
103445
103446
|
}
|
|
103446
103447
|
return { target, scrolling, calculate };
|
|
103447
103448
|
}
|
|
@@ -103508,13 +103509,12 @@ var require_take_snapshots2 = __commonJS({
|
|
|
103508
103509
|
init_setInterval();
|
|
103509
103510
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103510
103511
|
exports.makeTakeSnapshots = void 0;
|
|
103511
|
-
var driver_1 = require_dist4();
|
|
103512
103512
|
var take_dom_snapshots_1 = require_take_dom_snapshots();
|
|
103513
103513
|
var to_safe_check_settings_1 = require_to_safe_check_settings();
|
|
103514
103514
|
var to_generated_selectors_1 = require_to_generated_selectors();
|
|
103515
103515
|
var abort_error_1 = require_abort_error();
|
|
103516
103516
|
var filterStaleElements_1 = require_filterStaleElements();
|
|
103517
|
-
function makeTakeSnapshots({ core,
|
|
103517
|
+
function makeTakeSnapshots({ core, fetchConcurrency, signal, logger: mainLogger }) {
|
|
103518
103518
|
const MAX_LOGGED_ERRORS_PER_SNAPSHOT = 10;
|
|
103519
103519
|
return async function takeSnapshots({ driver, settings = {}, account, logger = mainLogger }) {
|
|
103520
103520
|
var _a, _b;
|
|
@@ -103533,13 +103533,7 @@ var require_take_snapshots2 = __commonJS({
|
|
|
103533
103533
|
const { elementReferences, getSafeCheckSettings } = (0, to_safe_check_settings_1.toSafeCheckSettings)({ settings });
|
|
103534
103534
|
const { elementReferencesToMark, getGeneratedSelectors } = (0, to_generated_selectors_1.toGeneratedSelectors)({
|
|
103535
103535
|
elementReferences,
|
|
103536
|
-
logger
|
|
103537
|
-
logDeprecations,
|
|
103538
|
-
// dead code - `transformElementReference` was used for NMG but it's not longer used anywhere
|
|
103539
|
-
transformElementReference: (elementReference) => {
|
|
103540
|
-
var _a2;
|
|
103541
|
-
return (0, driver_1.isSelector)(elementReference) && ((_a2 = spec2 === null || spec2 === void 0 ? void 0 : spec2.toSimpleCommonSelector) === null || _a2 === void 0 ? void 0 : _a2.call(spec2, elementReference)) || void 0;
|
|
103542
|
-
}
|
|
103536
|
+
logger
|
|
103543
103537
|
});
|
|
103544
103538
|
let snapshots;
|
|
103545
103539
|
if (environment.isWeb) {
|
|
@@ -103586,20 +103580,7 @@ var require_take_snapshots2 = __commonJS({
|
|
|
103586
103580
|
}
|
|
103587
103581
|
}
|
|
103588
103582
|
} else {
|
|
103589
|
-
|
|
103590
|
-
const nmlClient = await core.getNMLClient({
|
|
103591
|
-
driver,
|
|
103592
|
-
settings: { ...account.eyesServer, supportedEnvironmentsUrl: account.supportedEnvironmentsUrl },
|
|
103593
|
-
logger
|
|
103594
|
-
});
|
|
103595
|
-
snapshots = await nmlClient.takeSnapshots({
|
|
103596
|
-
settings: {
|
|
103597
|
-
...account.eyesServer,
|
|
103598
|
-
waitBeforeCapture: settings.waitBeforeCapture,
|
|
103599
|
-
environments: uniqueEnvironments
|
|
103600
|
-
},
|
|
103601
|
-
logger
|
|
103602
|
-
});
|
|
103583
|
+
throw new Error("Taking native (non-web) snapshots via VisualGridRunner is no longer supported. Please use ClassicRunner for native apps.");
|
|
103603
103584
|
}
|
|
103604
103585
|
await currentContext.focus();
|
|
103605
103586
|
const url = await driver.getUrl();
|
|
@@ -103634,19 +103615,6 @@ var require_take_snapshots2 = __commonJS({
|
|
|
103634
103615
|
title,
|
|
103635
103616
|
userAgent
|
|
103636
103617
|
}));
|
|
103637
|
-
function logDeprecations(...args) {
|
|
103638
|
-
core.logEvent({
|
|
103639
|
-
settings: {
|
|
103640
|
-
level: "Error",
|
|
103641
|
-
event: {
|
|
103642
|
-
type: "SDK.unreachableCodeReached",
|
|
103643
|
-
message: args.join(" ")
|
|
103644
|
-
},
|
|
103645
|
-
...account.eyesServer
|
|
103646
|
-
},
|
|
103647
|
-
logger
|
|
103648
|
-
});
|
|
103649
|
-
}
|
|
103650
103618
|
};
|
|
103651
103619
|
}
|
|
103652
103620
|
exports.makeTakeSnapshots = makeTakeSnapshots;
|
|
@@ -122500,7 +122468,7 @@ var require_upload_resource = __commonJS({
|
|
|
122500
122468
|
const logger = (0, logger_1.mergeLoggers)(...batch.map(([{ logger: logger2 }]) => logger2));
|
|
122501
122469
|
try {
|
|
122502
122470
|
const response = await requests.checkResources({
|
|
122503
|
-
resources: batch.map(([hash]) => hash),
|
|
122471
|
+
resources: batch.map(([{ hash }]) => ({ hash })),
|
|
122504
122472
|
logger
|
|
122505
122473
|
});
|
|
122506
122474
|
const resolvers = batch.map(([, { resolve }]) => resolve);
|
|
@@ -125218,7 +125186,7 @@ var require_check3 = __commonJS({
|
|
|
125218
125186
|
let snapshots;
|
|
125219
125187
|
let driver;
|
|
125220
125188
|
if (spec2 && (0, driver_1.isDriver)(target, spec2)) {
|
|
125221
|
-
const takeSnapshots = (0, take_snapshots_1.makeTakeSnapshots)({ core: eyes2.core,
|
|
125189
|
+
const takeSnapshots = (0, take_snapshots_1.makeTakeSnapshots)({ core: eyes2.core, signal, logger });
|
|
125222
125190
|
driver = await (0, driver_1.makeDriver)({ spec: spec2, driver: target, logger });
|
|
125223
125191
|
snapshots = await takeSnapshots({
|
|
125224
125192
|
driver,
|
|
@@ -125452,7 +125420,7 @@ var require_check_and_close3 = __commonJS({
|
|
|
125452
125420
|
let snapshots;
|
|
125453
125421
|
let driver;
|
|
125454
125422
|
if (spec2 && (0, driver_1.isDriver)(target, spec2)) {
|
|
125455
|
-
const takeSnapshots = (0, take_snapshots_1.makeTakeSnapshots)({ core: eyes2.core,
|
|
125423
|
+
const takeSnapshots = (0, take_snapshots_1.makeTakeSnapshots)({ core: eyes2.core, signal, logger });
|
|
125456
125424
|
driver = await (0, driver_1.makeDriver)({ spec: spec2, driver: target, logger });
|
|
125457
125425
|
snapshots = await takeSnapshots({
|
|
125458
125426
|
driver,
|
|
@@ -125976,7 +125944,7 @@ var require_core3 = __commonJS({
|
|
|
125976
125944
|
base,
|
|
125977
125945
|
getViewportSize: spec2 && (0, get_viewport_size_1.makeGetViewportSize)({ spec: spec2, logger }),
|
|
125978
125946
|
setViewportSize: spec2 && (0, set_viewport_size_1.makeSetViewportSize)({ spec: spec2, logger }),
|
|
125979
|
-
takeSnapshots: spec2 && (0, take_snapshots_1.makeTakeSnapshots)({
|
|
125947
|
+
takeSnapshots: spec2 && (0, take_snapshots_1.makeTakeSnapshots)({ core, fetchConcurrency, logger }),
|
|
125980
125948
|
locate: (0, locate_1.makeLocate)({ spec: spec2, core, logger }),
|
|
125981
125949
|
locateText: (0, locate_text_1.makeLocateText)({ spec: spec2, core, logger }),
|
|
125982
125950
|
extractText: (0, extract_text_1.makeExtractText)({ spec: spec2, core, logger }),
|
|
@@ -126802,7 +126770,7 @@ var require_extract_git_info = __commonJS({
|
|
|
126802
126770
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
126803
126771
|
};
|
|
126804
126772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126805
|
-
exports.extractBranchLookupFallbackList = exports.isISODate = exports.extractBranchingTimestamp = exports.extractBuildIdFromCI = exports.extractGitRepo = exports.extractGitBranch = exports.extractLatestCommitInfo = exports.getPrimaryRemoteName = exports.cacheKey = void 0;
|
|
126773
|
+
exports.extractBranchLookupFallbackList = exports.isISODate = exports.extractBranchingTimestamp = exports.extractBuildIdFromCI = exports.extractCIBranchName = exports.extractGitRepo = exports.extractGitBranch = exports.extractLatestCommitInfo = exports.getPrimaryRemoteName = exports.cacheKey = void 0;
|
|
126806
126774
|
var utils2 = __importStar(require_browser3());
|
|
126807
126775
|
var fs_1 = __importDefault((init_fs(), __toCommonJS(fs_exports)));
|
|
126808
126776
|
var path_1 = __importDefault(require_path_browserify());
|
|
@@ -126857,19 +126825,21 @@ var require_extract_git_info = __commonJS({
|
|
|
126857
126825
|
}
|
|
126858
126826
|
}, () => exports.cacheKey);
|
|
126859
126827
|
exports.extractGitBranch = utils2.general.cachify(async function({ execOptions, logger = (0, logger_1.makeLogger)() }) {
|
|
126860
|
-
|
|
126861
|
-
|
|
126862
|
-
|
|
126863
|
-
|
|
126864
|
-
return process.env.GITHUB_REF.split("/").splice(2).join("/");
|
|
126828
|
+
const ciBranch = extractCIBranchName();
|
|
126829
|
+
if (ciBranch) {
|
|
126830
|
+
logger.log(`Extracted branch name from CI environment: "${ciBranch}"`);
|
|
126831
|
+
return ciBranch;
|
|
126865
126832
|
}
|
|
126866
126833
|
const result = await executeWithLog("git branch --show-current", { execOptions, logger });
|
|
126867
126834
|
if (result.stderr) {
|
|
126868
126835
|
logger.log(`Error during extracting current branch from git`, result.stderr);
|
|
126869
126836
|
} else {
|
|
126870
126837
|
const branch = result.stdout.trim();
|
|
126871
|
-
|
|
126872
|
-
|
|
126838
|
+
if (branch) {
|
|
126839
|
+
logger.log(`Extracted current git branch: "${branch}"`);
|
|
126840
|
+
return branch;
|
|
126841
|
+
}
|
|
126842
|
+
logger.log("git branch --show-current returned empty (detached HEAD), no branch name available");
|
|
126873
126843
|
}
|
|
126874
126844
|
}, (args) => {
|
|
126875
126845
|
var _a, _b, _c;
|
|
@@ -126906,6 +126876,17 @@ var require_extract_git_info = __commonJS({
|
|
|
126906
126876
|
}
|
|
126907
126877
|
}
|
|
126908
126878
|
}, () => exports.cacheKey);
|
|
126879
|
+
function extractCIBranchName() {
|
|
126880
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
126881
|
+
return (_j = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = process.env.GITHUB_HEAD_REF || // github (pull requests)
|
|
126882
|
+
extractGithubRefBranch() || // github (push events)
|
|
126883
|
+
process.env.CI_COMMIT_REF_NAME) !== null && _a !== void 0 ? _a : process.env.CIRCLE_BRANCH) !== null && _b !== void 0 ? _b : process.env.BRANCH_NAME) !== null && _c !== void 0 ? _c : process.env.GIT_BRANCH) !== null && _d !== void 0 ? _d : process.env.BUILD_SOURCEBRANCHNAME) !== null && _e !== void 0 ? _e : process.env.BITBUCKET_BRANCH) !== null && _f !== void 0 ? _f : process.env.TRAVIS_BRANCH) !== null && _g !== void 0 ? _g : process.env.BUILDKITE_BRANCH) !== null && _h !== void 0 ? _h : process.env.CODEBUILD_WEBHOOK_HEAD_REF) !== null && _j !== void 0 ? _j : void 0;
|
|
126884
|
+
}
|
|
126885
|
+
exports.extractCIBranchName = extractCIBranchName;
|
|
126886
|
+
function extractGithubRefBranch() {
|
|
126887
|
+
var _a;
|
|
126888
|
+
return (_a = process.env.GITHUB_REF) === null || _a === void 0 ? void 0 : _a.split("/").splice(2).join("/");
|
|
126889
|
+
}
|
|
126909
126890
|
async function extractBuildIdFromCI() {
|
|
126910
126891
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
126911
126892
|
return (_k = (_j = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = process.env.GITHUB_RUN_ID) !== null && _a !== void 0 ? _a : process.env.CI_JOB_ID) !== null && _b !== void 0 ? _b : process.env.CIRCLE_BUILD_NUM) !== null && _c !== void 0 ? _c : process.env.BUILD_BUILDID) !== null && _d !== void 0 ? _d : process.env.BITBUCKET_BUILD_NUMBER) !== null && _e !== void 0 ? _e : process.env.CODEBUILD_BUILD_ID) !== null && _f !== void 0 ? _f : process.env.BUILD_ID) !== null && _g !== void 0 ? _g : process.env.BUILD_NUMBER) !== null && _h !== void 0 ? _h : process.env.TRAVIS_BUILD_ID) !== null && _j !== void 0 ? _j : process.env.BUILDKITE_BUILD_ID) !== null && _k !== void 0 ? _k : process.env.BAMBOO;
|
|
@@ -128186,7 +128167,7 @@ var require_package3 = __commonJS({
|
|
|
128186
128167
|
"../core/package.json"(exports, module) {
|
|
128187
128168
|
module.exports = {
|
|
128188
128169
|
name: "@applitools/core",
|
|
128189
|
-
version: "4.
|
|
128170
|
+
version: "4.59.0",
|
|
128190
128171
|
homepage: "https://applitools.com",
|
|
128191
128172
|
bugs: {
|
|
128192
128173
|
url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -128747,7 +128728,7 @@ var require_core4 = __commonJS({
|
|
|
128747
128728
|
openEyes: (0, open_eyes_1.makeOpenEyes)({ spec: spec2, clients, core, cores, environment, asyncCache, cwd, concurrency, logger }),
|
|
128748
128729
|
closeBatch: (0, close_batch_1.makeCloseBatch)({ core, logger }),
|
|
128749
128730
|
deleteTest: (0, delete_test_1.makeDeleteTest)({ core, logger }),
|
|
128750
|
-
takeSnapshots: spec2 && (0, take_snapshots_1.makeTakeSnapshots)({
|
|
128731
|
+
takeSnapshots: spec2 && (0, take_snapshots_1.makeTakeSnapshots)({ core: cores.ufg, logger })
|
|
128751
128732
|
};
|
|
128752
128733
|
});
|
|
128753
128734
|
}
|
|
@@ -129728,7 +129709,7 @@ var require_package4 = __commonJS({
|
|
|
129728
129709
|
"../eyes/package.json"(exports, module) {
|
|
129729
129710
|
module.exports = {
|
|
129730
129711
|
name: "@applitools/eyes",
|
|
129731
|
-
version: "1.38.
|
|
129712
|
+
version: "1.38.12",
|
|
129732
129713
|
keywords: [
|
|
129733
129714
|
"applitools",
|
|
129734
129715
|
"eyes",
|
|
@@ -130467,8 +130448,8 @@ var require_Eyes = __commonJS({
|
|
|
130467
130448
|
});
|
|
130468
130449
|
}
|
|
130469
130450
|
async check(checkSettingsOrTargetOrName, checkSettings) {
|
|
130470
|
-
var _a
|
|
130471
|
-
var
|
|
130451
|
+
var _a;
|
|
130452
|
+
var _b;
|
|
130472
130453
|
if (this._config.isDisabled)
|
|
130473
130454
|
return null;
|
|
130474
130455
|
if (!this.isOpen)
|
|
@@ -130483,13 +130464,8 @@ var require_Eyes = __commonJS({
|
|
|
130483
130464
|
}
|
|
130484
130465
|
const { target, settings } = serialized;
|
|
130485
130466
|
const config = this._config.toJSON();
|
|
130486
|
-
(_a = (
|
|
130487
|
-
|
|
130488
|
-
if (this._runner.type === "ufg" && ((_b = settings === null || settings === void 0 ? void 0 : settings.nmgOptions) === null || _b === void 0 ? void 0 : _b.nonNMGCheck) === "addToAllDevices") {
|
|
130489
|
-
type = "classic";
|
|
130490
|
-
settings.screenshotMode = "default";
|
|
130491
|
-
}
|
|
130492
|
-
await this._eyes.check({ type, target, settings, config });
|
|
130467
|
+
(_a = (_b = config.screenshot).fully) !== null && _a !== void 0 ? _a : _b.fully = false;
|
|
130468
|
+
await this._eyes.check({ target, settings, config });
|
|
130493
130469
|
return new MatchResult_1.MatchResultData({});
|
|
130494
130470
|
}
|
|
130495
130471
|
/** @deprecated */
|
|
@@ -131348,7 +131324,7 @@ var require_package5 = __commonJS({
|
|
|
131348
131324
|
"package.json"(exports, module) {
|
|
131349
131325
|
module.exports = {
|
|
131350
131326
|
name: "@applitools/eyes-browser",
|
|
131351
|
-
version: "1.6.
|
|
131327
|
+
version: "1.6.9",
|
|
131352
131328
|
type: "module",
|
|
131353
131329
|
keywords: [
|
|
131354
131330
|
"applitools",
|
|
@@ -131545,6 +131521,7 @@ var export_BatchInfo = import_eyes.BatchInfo;
|
|
|
131545
131521
|
var export_BrowserType = import_eyes.BrowserType;
|
|
131546
131522
|
var export_ClassicRunner = import_eyes.ClassicRunner;
|
|
131547
131523
|
var export_Configuration = import_eyes.Configuration;
|
|
131524
|
+
var export_ConsoleLogHandler = import_eyes.ConsoleLogHandler;
|
|
131548
131525
|
var export_DeviceName = import_eyes.DeviceName;
|
|
131549
131526
|
var export_DiffsFoundError = import_eyes.DiffsFoundError;
|
|
131550
131527
|
var export_EyesError = import_eyes.EyesError;
|
|
@@ -131572,6 +131549,7 @@ export {
|
|
|
131572
131549
|
export_BrowserType as BrowserType,
|
|
131573
131550
|
export_ClassicRunner as ClassicRunner,
|
|
131574
131551
|
export_Configuration as Configuration,
|
|
131552
|
+
export_ConsoleLogHandler as ConsoleLogHandler,
|
|
131575
131553
|
export_DeviceName as DeviceName,
|
|
131576
131554
|
export_DiffsFoundError as DiffsFoundError,
|
|
131577
131555
|
Eyes2 as Eyes,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-browser",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"test": "run playwright test"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@applitools/eyes": "1.38.
|
|
54
|
+
"@applitools/eyes": "1.38.12"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@applitools/test-server": "1.4.
|
|
57
|
+
"@applitools/test-server": "1.4.2",
|
|
58
58
|
"@playwright/test": "1.55.1",
|
|
59
59
|
"@types/node": "^12.20.55",
|
|
60
60
|
"@types/path-browserify": "^1.0.1",
|
|
@@ -96,10 +96,6 @@ export type CheckSettingsAutomation<TSpec extends Core.SpecType, TRegionReferenc
|
|
|
96
96
|
ufgOptions?: {
|
|
97
97
|
[key: string]: any;
|
|
98
98
|
};
|
|
99
|
-
/** @deprecated */
|
|
100
|
-
nmgOptions?: {
|
|
101
|
-
[key: string]: any;
|
|
102
|
-
};
|
|
103
99
|
useSystemScreenshot?: boolean;
|
|
104
100
|
hooks?: {
|
|
105
101
|
beforeCaptureScreenshot: string;
|
|
@@ -253,12 +249,6 @@ export declare class CheckSettingsAutomationFluent<TSpec extends Core.SpecType =
|
|
|
253
249
|
[key: string]: any;
|
|
254
250
|
}): this;
|
|
255
251
|
/** @deprecated */
|
|
256
|
-
nmgOption(key: string, value: any): this;
|
|
257
|
-
/** @deprecated */
|
|
258
|
-
nmgOptions(options: {
|
|
259
|
-
[key: string]: any;
|
|
260
|
-
}): this;
|
|
261
|
-
/** @deprecated */
|
|
262
252
|
visualGridOption(key: string, value: any): this;
|
|
263
253
|
/** @deprecated */
|
|
264
254
|
visualGridOptions(options: {
|