@applitools/eyes-playwright 1.47.2 → 1.47.4
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 +259 -0
- package/dist/fixture/reporter.js +52 -1
- package/fixture.js +1 -1
- package/package.json +8 -5
- package/types/index.d.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,264 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.47.4](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.47.3...js/eyes-playwright@1.47.4) (2026-05-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/utils bumped to 1.14.5
|
|
14
|
+
#### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
17
|
+
* @applitools/logger bumped to 2.2.12
|
|
18
|
+
#### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* @applitools/dom-shared bumped to 1.2.1
|
|
25
|
+
#### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
28
|
+
* @applitools/dom-snapshot bumped to 4.17.2
|
|
29
|
+
#### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
* @applitools/socket bumped to 1.3.13
|
|
36
|
+
#### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
* @applitools/req bumped to 1.10.2
|
|
43
|
+
#### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
* @applitools/image bumped to 1.2.11
|
|
50
|
+
#### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
* @applitools/snippets bumped to 2.9.2
|
|
57
|
+
#### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
* @applitools/dom-capture bumped to 11.8.1
|
|
64
|
+
#### Bug Fixes
|
|
65
|
+
|
|
66
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
* @applitools/driver bumped to 1.26.2
|
|
71
|
+
#### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* redact cookie values from logs to prevent sensitive data exposure | AD-12834 ([#3835](https://github.com/Applitools-Dev/sdk/issues/3835)) ([d883647](https://github.com/Applitools-Dev/sdk/commit/d883647d8e007467bd2770ddb79f89be057067b9))
|
|
74
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
* @applitools/spec-driver-webdriver bumped to 1.6.2
|
|
79
|
+
#### Bug Fixes
|
|
80
|
+
|
|
81
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
* @applitools/spec-driver-selenium bumped to 1.8.2
|
|
86
|
+
#### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
* @applitools/spec-driver-playwright bumped to 1.9.2
|
|
93
|
+
#### Bug Fixes
|
|
94
|
+
|
|
95
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
* @applitools/spec-driver-puppeteer bumped to 1.8.2
|
|
100
|
+
#### Bug Fixes
|
|
101
|
+
|
|
102
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
* @applitools/screenshoter bumped to 3.12.21
|
|
107
|
+
#### Bug Fixes
|
|
108
|
+
|
|
109
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
* @applitools/nml-client bumped to 1.11.28
|
|
114
|
+
#### Bug Fixes
|
|
115
|
+
|
|
116
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
* @applitools/tunnel-client bumped to 1.11.14
|
|
121
|
+
#### Bug Fixes
|
|
122
|
+
|
|
123
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
* @applitools/ufg-client bumped to 1.22.2
|
|
128
|
+
#### Bug Fixes
|
|
129
|
+
|
|
130
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
131
|
+
* strip extra fields from checkResources log output ([#3836](https://github.com/Applitools-Dev/sdk/issues/3836)) ([6d75209](https://github.com/Applitools-Dev/sdk/commit/6d752094abb6fcc0e998cf95e1f266964dbfd6f3))
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
* @applitools/core-base bumped to 1.34.1
|
|
136
|
+
#### Bug Fixes
|
|
137
|
+
|
|
138
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
* @applitools/ec-client bumped to 1.12.30
|
|
143
|
+
#### Bug Fixes
|
|
144
|
+
|
|
145
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
* @applitools/core bumped to 4.63.1
|
|
150
|
+
#### Bug Fixes
|
|
151
|
+
|
|
152
|
+
* prevent BrightCove/video.js player corruption during layoutBreakpoints snapshots ([#3828](https://github.com/Applitools-Dev/sdk/issues/3828)) ([380fbae](https://github.com/Applitools-Dev/sdk/commit/380fbaeb1c6a964c640975f1a109417db51f691c))
|
|
153
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
154
|
+
* truly disable NML broker URL cache between checks | FLD-4283 ([#3837](https://github.com/Applitools-Dev/sdk/issues/3837)) ([da76dd3](https://github.com/Applitools-Dev/sdk/commit/da76dd3227c3297320be0d19558a7437b5733999))
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
* @applitools/eyes bumped to 1.42.1
|
|
159
|
+
#### Bug Fixes
|
|
160
|
+
|
|
161
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
* @applitools/test-server bumped to 1.4.4
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
## [1.47.3](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.47.2...js/eyes-playwright@1.47.3) (2026-05-19)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Bug Fixes
|
|
172
|
+
|
|
173
|
+
* preserve trace UI under playwright --ui mode | FLD-4250 ([#3845](https://github.com/Applitools-Dev/sdk/issues/3845)) ([c1f8ded](https://github.com/Applitools-Dev/sdk/commit/c1f8ded20236c4f02e185a1bc16e51b941611f55))
|
|
174
|
+
* support Playwright 1.60+ | AD-13590 AD-13207 ([#3834](https://github.com/Applitools-Dev/sdk/issues/3834)) ([b78d16d](https://github.com/Applitools-Dev/sdk/commit/b78d16d74f93d402337bdcb323774665740b3235))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Dependencies
|
|
178
|
+
|
|
179
|
+
* @applitools/snippets bumped to 2.9.1
|
|
180
|
+
#### Bug Fixes
|
|
181
|
+
|
|
182
|
+
* declare @babel/preset-typescript dep for sandbox build ([#3815](https://github.com/Applitools-Dev/sdk/issues/3815)) ([10c44c6](https://github.com/Applitools-Dev/sdk/commit/10c44c66635f1ed4e0361f22ecebf2221c2cc912))
|
|
183
|
+
* @applitools/dom-snapshot bumped to 4.17.1
|
|
184
|
+
|
|
185
|
+
* @applitools/req bumped to 1.10.1
|
|
186
|
+
#### Bug Fixes
|
|
187
|
+
|
|
188
|
+
* http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
|
|
189
|
+
* @applitools/driver bumped to 1.26.1
|
|
190
|
+
#### Bug Fixes
|
|
191
|
+
|
|
192
|
+
* address CI regressions from executeBrowserCommands and Chromium 140+ service worker ([#3848](https://github.com/Applitools-Dev/sdk/issues/3848)) ([099ada5](https://github.com/Applitools-Dev/sdk/commit/099ada5e52d4153157b98c2203df428579527e49))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
* @applitools/spec-driver-playwright bumped to 1.9.1
|
|
197
|
+
#### Bug Fixes
|
|
198
|
+
|
|
199
|
+
* address CI regressions from executeBrowserCommands and Chromium 140+ service worker ([#3848](https://github.com/Applitools-Dev/sdk/issues/3848)) ([099ada5](https://github.com/Applitools-Dev/sdk/commit/099ada5e52d4153157b98c2203df428579527e49))
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
* @applitools/ufg-client bumped to 1.22.1
|
|
204
|
+
#### Bug Fixes
|
|
205
|
+
|
|
206
|
+
* http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
* @applitools/core bumped to 4.63.0
|
|
211
|
+
#### Features
|
|
212
|
+
|
|
213
|
+
* soft-deprecate CheckSettings.timeout() with telemetry [[#3705](https://github.com/Applitools-Dev/sdk/issues/3705)] ([#3805](https://github.com/Applitools-Dev/sdk/issues/3805)) ([a5d6390](https://github.com/Applitools-Dev/sdk/commit/a5d6390f17fc0380736b88cbe05dd147e66a86cf))
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
#### Bug Fixes
|
|
217
|
+
|
|
218
|
+
* avoid double-scaling environment viewport in classic mode | FLD-4359 ([#3793](https://github.com/Applitools-Dev/sdk/issues/3793)) ([246050b](https://github.com/Applitools-Dev/sdk/commit/246050b8a7984b869c068262162a69191c834947))
|
|
219
|
+
* http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
* @applitools/screenshoter bumped to 3.12.20
|
|
224
|
+
|
|
225
|
+
* @applitools/tunnel-client bumped to 1.11.13
|
|
226
|
+
|
|
227
|
+
* @applitools/core-base bumped to 1.34.0
|
|
228
|
+
#### Features
|
|
229
|
+
|
|
230
|
+
* soft-deprecate CheckSettings.timeout() with telemetry [[#3705](https://github.com/Applitools-Dev/sdk/issues/3705)] ([#3805](https://github.com/Applitools-Dev/sdk/issues/3805)) ([a5d6390](https://github.com/Applitools-Dev/sdk/commit/a5d6390f17fc0380736b88cbe05dd147e66a86cf))
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
#### Bug Fixes
|
|
234
|
+
|
|
235
|
+
* http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
* @applitools/spec-driver-webdriver bumped to 1.6.1
|
|
240
|
+
|
|
241
|
+
* @applitools/spec-driver-selenium bumped to 1.8.1
|
|
242
|
+
|
|
243
|
+
* @applitools/spec-driver-puppeteer bumped to 1.8.1
|
|
244
|
+
|
|
245
|
+
* @applitools/nml-client bumped to 1.11.27
|
|
246
|
+
|
|
247
|
+
* @applitools/ec-client bumped to 1.12.29
|
|
248
|
+
|
|
249
|
+
* @applitools/eyes bumped to 1.42.0
|
|
250
|
+
#### Features
|
|
251
|
+
|
|
252
|
+
* soft-deprecate CheckSettings.timeout() with telemetry [[#3705](https://github.com/Applitools-Dev/sdk/issues/3705)] ([#3805](https://github.com/Applitools-Dev/sdk/issues/3805)) ([a5d6390](https://github.com/Applitools-Dev/sdk/commit/a5d6390f17fc0380736b88cbe05dd147e66a86cf))
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
#### Bug Fixes
|
|
256
|
+
|
|
257
|
+
* http2 support via settings AD 13119 ([#3804](https://github.com/Applitools-Dev/sdk/issues/3804)) ([759d451](https://github.com/Applitools-Dev/sdk/commit/759d4518254828140aa50e2c5de14e80af0b997c))
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
3
262
|
## [1.47.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.47.1...js/eyes-playwright@1.47.2) (2026-05-05)
|
|
4
263
|
|
|
5
264
|
|
package/dist/fixture/reporter.js
CHANGED
|
@@ -30,7 +30,19 @@ const req_1 = require("@applitools/req");
|
|
|
30
30
|
const utils = __importStar(require("@applitools/utils"));
|
|
31
31
|
const logger_1 = require("@applitools/logger");
|
|
32
32
|
const playwrightPath = require.resolve('playwright');
|
|
33
|
-
|
|
33
|
+
// Playwright moved the HtmlReporter from `lib/reporters/html.js` (≤1.59) into the bundled
|
|
34
|
+
// `lib/runner/index.js` (1.60+, exposed as `.html.default`). Both paths are private — not in
|
|
35
|
+
// `package.json#exports` — so resolve via absolute path (which bypasses exports gating). Try
|
|
36
|
+
// the 1.60+ location first, fall back to the pre-1.60 file. AD-13590.
|
|
37
|
+
const HtmlReporter = (() => {
|
|
38
|
+
const pwRoot = path.dirname(playwrightPath);
|
|
39
|
+
try {
|
|
40
|
+
return require(path.join(pwRoot, 'lib/runner/index.js')).html.default;
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
return require(path.join(pwRoot, 'lib/reporters/html')).default;
|
|
44
|
+
}
|
|
45
|
+
})();
|
|
34
46
|
const pluginsFile = require.resolve('../../dist/fixture/reportRenderer.js');
|
|
35
47
|
const styleFile = require.resolve('./reporterStyle.css');
|
|
36
48
|
const createInjectedScript = (testResultsMap) => `
|
|
@@ -49,9 +61,48 @@ class EyesReporter extends HtmlReporter {
|
|
|
49
61
|
constructor(options) {
|
|
50
62
|
super(options);
|
|
51
63
|
this.applitoolsIdentifiers = [];
|
|
64
|
+
// Detect Playwright UI mode so `onTestEnd` can avoid mutating the result: under
|
|
65
|
+
// `--ui`, the test server has already serialized the result and pushed it to the
|
|
66
|
+
// live UI client, so any splice into `attachments` / `_endPayload.attachments` /
|
|
67
|
+
// `steps[*].attachments` desyncs the trace viewer (Actions list / Source tab /
|
|
68
|
+
// Canvas disappear). Two signals are OR'd because no single one covers every
|
|
69
|
+
// supported Playwright version:
|
|
70
|
+
// 1. `options._isTestServer` — the official, propagated flag on Playwright
|
|
71
|
+
// 1.55–1.56. Upstream deleted it in 1.57 when the test runner and runner
|
|
72
|
+
// were merged, and did not replace it with any other propagated property.
|
|
73
|
+
// 2. A scan of `process.argv` for the CLI tokens that put Playwright into UI
|
|
74
|
+
// mode (`--ui`, `--ui-host`, `--ui-port`, and their `=value` forms). The
|
|
75
|
+
// reporter is constructed in the same Node process that parsed the CLI,
|
|
76
|
+
// and commander does not mutate `process.argv`, so the original token
|
|
77
|
+
// survives to this point on every version. This is a heuristic: the only
|
|
78
|
+
// known false-negative is a script that calls `runUIMode(...)` directly
|
|
79
|
+
// without going through `playwright test --ui`, which is not a documented
|
|
80
|
+
// entry point.
|
|
81
|
+
this._isUnderTestServer = Boolean(options === null || options === void 0 ? void 0 : options._isTestServer) || EyesReporter._argvIndicatesUiMode();
|
|
82
|
+
}
|
|
83
|
+
static _argvIndicatesUiMode() {
|
|
84
|
+
return process.argv.some(arg => arg === '--ui' ||
|
|
85
|
+
arg === '--ui-host' ||
|
|
86
|
+
arg === '--ui-port' ||
|
|
87
|
+
arg.startsWith('--ui=') ||
|
|
88
|
+
arg.startsWith('--ui-host=') ||
|
|
89
|
+
arg.startsWith('--ui-port='));
|
|
52
90
|
}
|
|
53
91
|
onTestEnd(test, result) {
|
|
54
92
|
var _a;
|
|
93
|
+
// Under Playwright UI mode (`--ui`), the test server has already serialized `result`
|
|
94
|
+
// (including `_endPayload.attachments`) and pushed it to the live UI client. Any
|
|
95
|
+
// mutation of attachments / steps after that point corrupts the trace viewer's
|
|
96
|
+
// model — Actions list, Source tab, and Canvas disappear after the test completes.
|
|
97
|
+
// Collect the Eyes identifier without mutating the result, and skip the upstream
|
|
98
|
+
// onTestEnd as well.
|
|
99
|
+
if (this._isUnderTestServer) {
|
|
100
|
+
const index = result.attachments.findIndex(a => a.name === 'applitoolsIdentifier');
|
|
101
|
+
if (index > -1) {
|
|
102
|
+
this.applitoolsIdentifiers.push(result.attachments[index].body.toString());
|
|
103
|
+
}
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
55
106
|
(_a = super.onTestEnd) === null || _a === void 0 ? void 0 : _a.call(this, test, result);
|
|
56
107
|
const index = result.attachments.findIndex(a => a.name === 'applitoolsIdentifier');
|
|
57
108
|
if (index > -1) {
|
package/fixture.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Modern module resolution uses the "exports" field in package.json.
|
|
4
4
|
* This file ensures the fixture can be imported by users with older TypeScript configs.
|
|
5
5
|
*/
|
|
6
|
-
module.exports = require('./dist/fixture/index.js')
|
|
6
|
+
module.exports = require('./dist/fixture/index.js')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-playwright",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.4",
|
|
4
4
|
"description": "Applitools Eyes SDK for Playwright",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-playwright",
|
|
@@ -63,10 +63,11 @@
|
|
|
63
63
|
"up:framework": "echo \"$(jq '.devDependencies.playwright = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@applitools/eyes": "1.
|
|
67
|
-
"@applitools/
|
|
68
|
-
"@applitools/
|
|
69
|
-
"@applitools/
|
|
66
|
+
"@applitools/eyes": "1.42.1",
|
|
67
|
+
"@applitools/logger": "2.2.12",
|
|
68
|
+
"@applitools/req": "1.10.2",
|
|
69
|
+
"@applitools/spec-driver-playwright": "1.9.2",
|
|
70
|
+
"@applitools/utils": "1.14.5",
|
|
70
71
|
"@inquirer/prompts": "7.0.1",
|
|
71
72
|
"chalk": "4.1.2",
|
|
72
73
|
"yargs": "17.7.2"
|
|
@@ -83,8 +84,10 @@
|
|
|
83
84
|
"@rollup/plugin-typescript": "^12.1.0",
|
|
84
85
|
"@types/node": "^12.20.55",
|
|
85
86
|
"jszip": "^3.10.1",
|
|
87
|
+
"mocha": "^11.7.5",
|
|
86
88
|
"nock": "^13.3.2",
|
|
87
89
|
"playwright": "1.55.1",
|
|
90
|
+
"playwright-core": "1.55.1",
|
|
88
91
|
"rollup": "^4.1.4"
|
|
89
92
|
},
|
|
90
93
|
"peerDependencies": {
|
package/types/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export type CheckSettingsAutomationWithOptIn<TSpec extends SpecType> = {
|
|
|
68
68
|
timeout?: undefined | number;
|
|
69
69
|
waitBeforeCapture?: undefined | number | (() => Promise<void>);
|
|
70
70
|
lazyLoad?: undefined | boolean | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; };
|
|
71
|
-
} & import('
|
|
71
|
+
} & import('@applitools/eyes/types/input/CheckSettings').CheckSettingsOptIn<TSpec, ["page"]>;
|
|
72
72
|
export type CheckSettingsAutomationWithOptInPlan = {
|
|
73
73
|
name?: undefined | string;
|
|
74
74
|
region?: undefined | RegionPlain | ((LocationPlain & RectangleSizePlain & { page?: undefined | Driver; }) | { selector: string | Selector; page?: undefined | Driver; } | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }))) | LegacyRegionPlain;
|
|
@@ -127,7 +127,7 @@ export type CheckSettingsAutomationWithOptInPlan = {
|
|
|
127
127
|
timeout?: undefined | number;
|
|
128
128
|
waitBeforeCapture?: undefined | number | (() => Promise<void>);
|
|
129
129
|
lazyLoad?: undefined | boolean | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; };
|
|
130
|
-
} & import('
|
|
130
|
+
} & import('@applitools/eyes/types/input/CheckSettings').CheckSettingsOptIn<SpecType, ["page"]>;
|
|
131
131
|
export class Eyes {
|
|
132
132
|
static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
|
|
133
133
|
static getExecutionCloudUrl(config?: undefined | (ConfigurationPlain & { maskLog?: undefined | boolean; })): Promise<string>;
|
|
@@ -394,7 +394,7 @@ export type CheckSettingsAutomationPlain = {
|
|
|
394
394
|
timeout?: undefined | number;
|
|
395
395
|
waitBeforeCapture?: undefined | number | (() => Promise<void>);
|
|
396
396
|
lazyLoad?: undefined | boolean | { scrollLength?: undefined | number; waitingTime?: undefined | number; maxAmountToScroll?: undefined | number; };
|
|
397
|
-
} & import('
|
|
397
|
+
} & import('@applitools/eyes/types/input/CheckSettings').CheckSettingsOptIn<SpecType, ["page"]>;
|
|
398
398
|
export class CheckSettingsAutomation {
|
|
399
399
|
constructor(settings?: undefined | CheckSettingsAutomation);
|
|
400
400
|
constructor(settings?: undefined | CheckSettingsAutomationWithOptIn<SpecType>);
|