@applitools/eyes-playwright 1.46.5 → 1.46.7

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 CHANGED
@@ -1,5 +1,174 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.46.7](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.46.6...js/eyes-playwright@1.46.7) (2026-04-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * skip reporter download for UFG tests with no checks; fast-fail on 404 ([#3730](https://github.com/Applitools-Dev/sdk/issues/3730)) ([c1ffbfd](https://github.com/Applitools-Dev/sdk/commit/c1ffbfdeb615492abd991ebf3c75274f166d8ec7))
9
+
10
+ ## [1.46.6](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.46.5...js/eyes-playwright@1.46.6) (2026-04-16)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
16
+
17
+
18
+ ### Dependencies
19
+
20
+ * @applitools/utils bumped to 1.14.4
21
+ #### Bug Fixes
22
+
23
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
24
+ * @applitools/logger bumped to 2.2.11
25
+ #### Bug Fixes
26
+
27
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
28
+
29
+
30
+
31
+ * @applitools/dom-shared bumped to 1.1.3
32
+ #### Bug Fixes
33
+
34
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
35
+ * @applitools/dom-snapshot bumped to 4.16.4
36
+ #### Bug Fixes
37
+
38
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
39
+
40
+
41
+
42
+ * @applitools/socket bumped to 1.3.12
43
+ #### Bug Fixes
44
+
45
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
46
+
47
+
48
+
49
+ * @applitools/req bumped to 1.9.3
50
+ #### Bug Fixes
51
+
52
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
53
+
54
+
55
+
56
+ * @applitools/image bumped to 1.2.10
57
+ #### Bug Fixes
58
+
59
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
60
+
61
+
62
+
63
+ * @applitools/snippets bumped to 2.8.2
64
+ #### Bug Fixes
65
+
66
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
67
+ * @applitools/dom-capture bumped to 11.7.1
68
+ #### Bug Fixes
69
+
70
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
71
+
72
+
73
+
74
+ * @applitools/driver bumped to 1.25.5
75
+ #### Bug Fixes
76
+
77
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
78
+
79
+
80
+
81
+ * @applitools/spec-driver-webdriver bumped to 1.5.10
82
+ #### Bug Fixes
83
+
84
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
85
+
86
+
87
+
88
+ * @applitools/spec-driver-selenium bumped to 1.7.16
89
+ #### Bug Fixes
90
+
91
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
92
+
93
+
94
+
95
+ * @applitools/spec-driver-playwright bumped to 1.8.5
96
+ #### Bug Fixes
97
+
98
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
99
+
100
+
101
+
102
+ * @applitools/spec-driver-puppeteer bumped to 1.7.5
103
+ #### Bug Fixes
104
+
105
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
106
+
107
+
108
+
109
+ * @applitools/screenshoter bumped to 3.12.18
110
+ #### Bug Fixes
111
+
112
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
113
+
114
+
115
+
116
+ * @applitools/nml-client bumped to 1.11.24
117
+ #### Bug Fixes
118
+
119
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
120
+
121
+
122
+
123
+ * @applitools/tunnel-client bumped to 1.11.10
124
+ #### Bug Fixes
125
+
126
+ * prevent listener accumulation causing OOM in tunnel worker | FLD-4423 ([#3761](https://github.com/Applitools-Dev/sdk/issues/3761)) ([85633c3](https://github.com/Applitools-Dev/sdk/commit/85633c3836230e7045a9ff62772631eb2990e32c))
127
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
128
+ * use APPLITOOLS_LOG_DIR as fallback for EG tunnel log directory | FLD-4321 ([#3732](https://github.com/Applitools-Dev/sdk/issues/3732)) ([03a3f60](https://github.com/Applitools-Dev/sdk/commit/03a3f60e9a5cfca066f0f1f07fc56969530cbf8a))
129
+
130
+
131
+
132
+ * @applitools/ufg-client bumped to 1.20.3
133
+ #### Bug Fixes
134
+
135
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
136
+
137
+
138
+
139
+ * @applitools/core-base bumped to 1.32.5
140
+ #### Bug Fixes
141
+
142
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
143
+
144
+
145
+
146
+ * @applitools/ec-client bumped to 1.12.25
147
+ #### Bug Fixes
148
+
149
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
150
+
151
+
152
+
153
+ * @applitools/core bumped to 4.59.3
154
+ #### Bug Fixes
155
+
156
+ * pass top-level fallbackBaselineId through UFG render environments | FLD-4292 ([#3763](https://github.com/Applitools-Dev/sdk/issues/3763)) ([8c46c2e](https://github.com/Applitools-Dev/sdk/commit/8c46c2e9cff684c18dbc83f4bf87ee61f4637c8e))
157
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
158
+ * restore logDeprecations and else-if guard in UFG snapshot paths ([#3739](https://github.com/Applitools-Dev/sdk/issues/3739)) ([b487a3a](https://github.com/Applitools-Dev/sdk/commit/b487a3a2747b33ce4d912b9c50eb8ed2bb28672e))
159
+
160
+
161
+
162
+ * @applitools/eyes bumped to 1.38.15
163
+ #### Bug Fixes
164
+
165
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
166
+
167
+
168
+
169
+ * @applitools/test-server bumped to 1.4.3
170
+
171
+
3
172
  ## [1.46.5](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.46.4...js/eyes-playwright@1.46.5) (2026-04-13)
4
173
 
5
174
 
@@ -198,9 +198,15 @@ export default defineConfig<EyesFixture>({
198
198
  async function runPlaywrightCommand() {
199
199
  // Use path normalization and quotes to support Windows paths with spaces/backslashes
200
200
  const quotedConfigPath = `"${playwrightTmpConfigPath}"`;
201
- await utils.process.sh(`npx playwright test --config ${quotedConfigPath}`, {
202
- spawnOptions: { stdio: 'inherit' },
203
- });
201
+ try {
202
+ await utils.process.sh(`npx playwright test --config ${quotedConfigPath}`, {
203
+ spawnOptions: { stdio: 'pipe' },
204
+ });
205
+ }
206
+ catch (err) {
207
+ const output = [err.stdout, err.stderr].filter(Boolean).join('\n');
208
+ throw new Error(`${err.message}${output ? `\n${output}` : ''}`);
209
+ }
204
210
  }
205
211
  }
206
212
  function log(...args) {
@@ -34,7 +34,13 @@ async function getEyes({ testInfo, eyesConfig, eyesRunner, page, }) {
34
34
  });
35
35
  addLogHandlers(eyes, (_e = (_d = eyesConfig.logConfig) !== null && _d !== void 0 ? _d : projectConfig === null || projectConfig === void 0 ? void 0 : projectConfig.logConfig) !== null && _e !== void 0 ? _e : playwrightConfig === null || playwrightConfig === void 0 ? void 0 : playwrightConfig.logConfig, testInfo);
36
36
  eyes.open = makeStep('eyes.open', eyes.open.bind(eyes));
37
- eyes.check = makeStep('eyes.check', eyes.check.bind(eyes));
37
+ eyes.__hasChecks = false;
38
+ eyes.check = makeStep('eyes.check', eyes.check.bind(eyes), {
39
+ beforeStep: () => {
40
+ ;
41
+ eyes.__hasChecks = true;
42
+ },
43
+ });
38
44
  eyes.close = makeStep('eyes.close', eyes.close.bind(eyes));
39
45
  eyes.closeAsync = makeStep('eyes.closeAsync (without exception)', eyes.closeAsync.bind(eyes));
40
46
  // INTERNAL DEBUG CALLBACKS - Execute beforeOpen callback if provided
@@ -67,8 +73,9 @@ async function getEyes({ testInfo, eyesConfig, eyesRunner, page, }) {
67
73
  return eyes;
68
74
  }
69
75
  exports.getEyes = getEyes;
70
- function makeStep(title, f, { box } = { box: true }) {
76
+ function makeStep(title, f, { box = true, beforeStep } = {}) {
71
77
  return (async (...args) => {
78
+ beforeStep === null || beforeStep === void 0 ? void 0 : beforeStep();
72
79
  const stepTitle = typeof args[0] === 'string' ? `${title} - ${args[0]}` : title;
73
80
  return test_1.test.step(stepTitle, async () => {
74
81
  return await f(...args);
@@ -82,8 +82,11 @@ exports.test = test_1.test.extend({
82
82
  logger.log('Used reporters:', testInfo.config.reporter);
83
83
  await eyes.closeAsync();
84
84
  if (isUsingEyesReporter) {
85
- logger.log('Using Eyes reporter. Writing results..');
86
- await writeResultsWhenReady({ eyes, runner, testInfo, logger });
85
+ const isUfgWithChecks = runner instanceof index_1.VisualGridRunner && eyes.__hasChecks;
86
+ if (!(runner instanceof index_1.VisualGridRunner) || isUfgWithChecks) {
87
+ logger.log('Using Eyes reporter. Writing results..');
88
+ await writeResultsWhenReady({ eyes, runner, testInfo, logger });
89
+ }
87
90
  }
88
91
  if (eyesConfig.failTestsOnDiff === 'afterEach') {
89
92
  await eyes.getResults(true);
@@ -216,7 +216,7 @@ exports.InternalData = {
216
216
  });
217
217
  },
218
218
  async consume(uuid, eyes) {
219
- var _a, _b, _c;
219
+ var _a, _b, _c, _d;
220
220
  const logger = (((_c = (_a = eyes.getLogger) === null || _a === void 0 ? void 0 : (_b = _a.call(eyes)).getLogger) === null || _c === void 0 ? void 0 : _c.call(_b)) || (0, logger_1.makeLogger)()).extend({
221
221
  tags: [`internal-data-consume-${utils.general.shortid()}`],
222
222
  });
@@ -234,6 +234,10 @@ exports.InternalData = {
234
234
  return { key: response.key, data: response.data };
235
235
  }
236
236
  catch (error) {
237
+ if ((_d = error === null || error === void 0 ? void 0 : error.message) === null || _d === void 0 ? void 0 : _d.includes('404')) {
238
+ logger.warn(`Data not found for UUID ${uuid} - skipping (no data was uploaded for this test)`);
239
+ return undefined;
240
+ }
237
241
  logger.warn('Failed to consume data:', error, ". Perhaps the test doesn't include Applitools tests?");
238
242
  }
239
243
  await utils.general.sleep(1000 * (retry + 1)); // the backend might need a few seconds to process the upload
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-playwright",
3
- "version": "1.46.5",
3
+ "version": "1.46.7",
4
4
  "description": "Applitools Eyes SDK for Playwright",
5
5
  "keywords": [
6
6
  "eyes-playwright",
@@ -63,10 +63,10 @@
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.38.14",
67
- "@applitools/req": "1.9.2",
68
- "@applitools/spec-driver-playwright": "1.8.4",
69
- "@applitools/utils": "1.14.3",
66
+ "@applitools/eyes": "1.38.15",
67
+ "@applitools/req": "1.9.3",
68
+ "@applitools/spec-driver-playwright": "1.8.5",
69
+ "@applitools/utils": "1.14.4",
70
70
  "@inquirer/prompts": "7.0.1",
71
71
  "chalk": "4.1.2",
72
72
  "yargs": "17.7.2"
package/types/index.d.ts CHANGED
@@ -616,7 +616,7 @@ export type ConfigurationPlain = {
616
616
  ignoreDisplacements?: undefined | boolean;
617
617
  ignoreGitMergeBase?: undefined | boolean;
618
618
  isDisabled?: undefined | boolean;
619
- layoutBreakpoints?: undefined | boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: undefined | boolean; };
619
+ layoutBreakpoints?: undefined | boolean | Array<number> | { breakpoints: boolean | Array<number>; heightBreakpoints?: undefined | boolean; reload?: undefined | boolean; };
620
620
  matchLevel?: undefined | MatchLevelPlain;
621
621
  matchTimeout?: undefined | number;
622
622
  mobileOptions?: undefined | { keepNavigationBar?: undefined | boolean; };
@@ -805,12 +805,12 @@ export class Configuration implements Required<ConfigurationPlain> {
805
805
  set isDisabled(isDisabled: boolean);
806
806
  getIsDisabled(): boolean;
807
807
  setIsDisabled(isDisabled: boolean): Configuration;
808
- get layoutBreakpoints(): boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: undefined | boolean; };
809
- set layoutBreakpoints(layoutBreakpoints: boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: undefined | boolean; });
810
- getLayoutBreakpoints(): boolean | Array<number> | { breakpoints: boolean | Array<number>; reload?: undefined | boolean; };
808
+ get layoutBreakpoints(): boolean | Array<number> | { breakpoints: boolean | Array<number>; heightBreakpoints?: undefined | boolean; reload?: undefined | boolean; };
809
+ set layoutBreakpoints(layoutBreakpoints: boolean | Array<number> | { breakpoints: boolean | Array<number>; heightBreakpoints?: undefined | boolean; reload?: undefined | boolean; });
810
+ getLayoutBreakpoints(): boolean | Array<number> | { breakpoints: boolean | Array<number>; heightBreakpoints?: undefined | boolean; reload?: undefined | boolean; };
811
811
  setLayoutBreakpoints(layoutBreakpoints: boolean): Configuration;
812
812
  setLayoutBreakpoints(layoutBreakpoints: Array<number>): Configuration;
813
- setLayoutBreakpoints(layoutBreakpoints: { breakpoints: boolean | Array<number>; reload?: undefined | boolean; }): Configuration;
813
+ setLayoutBreakpoints(layoutBreakpoints: { breakpoints: boolean | Array<number>; heightBreakpoints?: undefined | boolean; reload?: undefined | boolean; }): Configuration;
814
814
  get matchLevel(): MatchLevelPlain;
815
815
  set matchLevel(matchLevel: MatchLevelPlain);
816
816
  getMatchLevel(): MatchLevel;