@applitools/eyes-storybook 3.63.6 → 3.63.8
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 +59 -0
- package/dist/getClientAPI.js +13 -0
- package/dist/getStories.js +13 -0
- package/dist/renderStoryWithClientAPI.js +13 -0
- package/dist/runRunAfterScript.js +13 -0
- package/dist/runRunBeforeScript.js +13 -0
- package/package.json +5 -5
- package/src/browser/getClientAPI.js +13 -0
- package/src/processResults.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.63.8](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.63.7...js/eyes-storybook@3.63.8) (2026-01-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/dom-snapshot bumped to 4.15.6
|
|
9
|
+
|
|
10
|
+
* @applitools/driver bumped to 1.25.0
|
|
11
|
+
#### Features
|
|
12
|
+
|
|
13
|
+
* multi-page support - FLD-3827 ([#3410](https://github.com/Applitools-Dev/sdk/issues/3410)) ([a55b982](https://github.com/Applitools-Dev/sdk/commit/a55b9827c2218c11da5ed61b38bf12a70ce4c8db))
|
|
14
|
+
* @applitools/spec-driver-webdriver bumped to 1.5.5
|
|
15
|
+
|
|
16
|
+
* @applitools/spec-driver-selenium bumped to 1.7.11
|
|
17
|
+
|
|
18
|
+
* @applitools/spec-driver-puppeteer bumped to 1.7.0
|
|
19
|
+
#### Features
|
|
20
|
+
|
|
21
|
+
* multi-page support - FLD-3827 ([#3410](https://github.com/Applitools-Dev/sdk/issues/3410)) ([a55b982](https://github.com/Applitools-Dev/sdk/commit/a55b9827c2218c11da5ed61b38bf12a70ce4c8db))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
* @applitools/eyes bumped to 1.38.0
|
|
26
|
+
#### Features
|
|
27
|
+
|
|
28
|
+
* multi-page support - FLD-3827 ([#3410](https://github.com/Applitools-Dev/sdk/issues/3410)) ([a55b982](https://github.com/Applitools-Dev/sdk/commit/a55b9827c2218c11da5ed61b38bf12a70ce4c8db))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
* @applitools/screenshoter bumped to 3.12.12
|
|
33
|
+
|
|
34
|
+
* @applitools/nml-client bumped to 1.11.15
|
|
35
|
+
|
|
36
|
+
* @applitools/ec-client bumped to 1.12.17
|
|
37
|
+
|
|
38
|
+
* @applitools/core bumped to 4.55.0
|
|
39
|
+
#### Features
|
|
40
|
+
|
|
41
|
+
* multi-page support - FLD-3827 ([#3410](https://github.com/Applitools-Dev/sdk/issues/3410)) ([a55b982](https://github.com/Applitools-Dev/sdk/commit/a55b9827c2218c11da5ed61b38bf12a70ce4c8db))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [3.63.7](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.63.6...js/eyes-storybook@3.63.7) (2026-01-19)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* add fallback for retrieving client API | FLD-3856 ([#3467](https://github.com/Applitools-Dev/sdk/issues/3467)) ([eb24dfd](https://github.com/Applitools-Dev/sdk/commit/eb24dfd247c0a61005ebbca9e07dbbf5e2fc7d6b))
|
|
52
|
+
* handle missing error title | AD-12491 ([#3481](https://github.com/Applitools-Dev/sdk/issues/3481)) ([d5fb669](https://github.com/Applitools-Dev/sdk/commit/d5fb66955fa1c036eb1f5e9e92cef5347f18acca))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Dependencies
|
|
56
|
+
|
|
57
|
+
* @applitools/core bumped to 4.54.4
|
|
58
|
+
#### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* update macOS version to 15 | AD-12452 ([#3468](https://github.com/Applitools-Dev/sdk/issues/3468)) ([56958f8](https://github.com/Applitools-Dev/sdk/commit/56958f838e977b2b5749d0920ea095c314d7aa67))
|
|
61
|
+
|
|
3
62
|
## [3.63.6](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.63.5...js/eyes-storybook@3.63.6) (2026-01-14)
|
|
4
63
|
|
|
5
64
|
|
package/dist/getClientAPI.js
CHANGED
|
@@ -194,6 +194,19 @@ function __getClientAPI(...args) {
|
|
|
194
194
|
return window;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
// the inner frame might have a different url pattern but still be the correct one
|
|
198
|
+
// this is a fallback in case no other frame matched the usual patterns
|
|
199
|
+
// and this should be backwards compatible with older storybook versions 🤞
|
|
200
|
+
const fallbackFrameWindow = Array.prototype.find.call(window.frames, frame => {
|
|
201
|
+
try {
|
|
202
|
+
return frame.__STORYBOOK_PREVIEW__;
|
|
203
|
+
} catch (e) {}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (fallbackFrameWindow) {
|
|
207
|
+
return fallbackFrameWindow;
|
|
208
|
+
}
|
|
209
|
+
|
|
197
210
|
throw new Error('Cannot get client API: no frameWindow');
|
|
198
211
|
}
|
|
199
212
|
|
package/dist/getStories.js
CHANGED
|
@@ -194,6 +194,19 @@ function __getStories(...args) {
|
|
|
194
194
|
return window;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
// the inner frame might have a different url pattern but still be the correct one
|
|
198
|
+
// this is a fallback in case no other frame matched the usual patterns
|
|
199
|
+
// and this should be backwards compatible with older storybook versions 🤞
|
|
200
|
+
const fallbackFrameWindow = Array.prototype.find.call(window.frames, frame => {
|
|
201
|
+
try {
|
|
202
|
+
return frame.__STORYBOOK_PREVIEW__;
|
|
203
|
+
} catch (e) {}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (fallbackFrameWindow) {
|
|
207
|
+
return fallbackFrameWindow;
|
|
208
|
+
}
|
|
209
|
+
|
|
197
210
|
throw new Error('Cannot get client API: no frameWindow');
|
|
198
211
|
}
|
|
199
212
|
|
|
@@ -194,6 +194,19 @@ function __renderStoryWithClientAPI(...args) {
|
|
|
194
194
|
return window;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
// the inner frame might have a different url pattern but still be the correct one
|
|
198
|
+
// this is a fallback in case no other frame matched the usual patterns
|
|
199
|
+
// and this should be backwards compatible with older storybook versions 🤞
|
|
200
|
+
const fallbackFrameWindow = Array.prototype.find.call(window.frames, frame => {
|
|
201
|
+
try {
|
|
202
|
+
return frame.__STORYBOOK_PREVIEW__;
|
|
203
|
+
} catch (e) {}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (fallbackFrameWindow) {
|
|
207
|
+
return fallbackFrameWindow;
|
|
208
|
+
}
|
|
209
|
+
|
|
197
210
|
throw new Error('Cannot get client API: no frameWindow');
|
|
198
211
|
}
|
|
199
212
|
|
|
@@ -194,6 +194,19 @@ function __runRunAfterScript(...args) {
|
|
|
194
194
|
return window;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
// the inner frame might have a different url pattern but still be the correct one
|
|
198
|
+
// this is a fallback in case no other frame matched the usual patterns
|
|
199
|
+
// and this should be backwards compatible with older storybook versions 🤞
|
|
200
|
+
const fallbackFrameWindow = Array.prototype.find.call(window.frames, frame => {
|
|
201
|
+
try {
|
|
202
|
+
return frame.__STORYBOOK_PREVIEW__;
|
|
203
|
+
} catch (e) {}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (fallbackFrameWindow) {
|
|
207
|
+
return fallbackFrameWindow;
|
|
208
|
+
}
|
|
209
|
+
|
|
197
210
|
throw new Error('Cannot get client API: no frameWindow');
|
|
198
211
|
}
|
|
199
212
|
|
|
@@ -194,6 +194,19 @@ function __runRunBeforeScript(...args) {
|
|
|
194
194
|
return window;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
// the inner frame might have a different url pattern but still be the correct one
|
|
198
|
+
// this is a fallback in case no other frame matched the usual patterns
|
|
199
|
+
// and this should be backwards compatible with older storybook versions 🤞
|
|
200
|
+
const fallbackFrameWindow = Array.prototype.find.call(window.frames, frame => {
|
|
201
|
+
try {
|
|
202
|
+
return frame.__STORYBOOK_PREVIEW__;
|
|
203
|
+
} catch (e) {}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (fallbackFrameWindow) {
|
|
207
|
+
return fallbackFrameWindow;
|
|
208
|
+
}
|
|
209
|
+
|
|
197
210
|
throw new Error('Cannot get client API: no frameWindow');
|
|
198
211
|
}
|
|
199
212
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-storybook",
|
|
3
|
-
"version": "3.63.
|
|
3
|
+
"version": "3.63.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"up:framework": "cd test/fixtures/storybook-versions/${APPLITOOLS_FRAMEWORK_VERSION} && npm ci"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@applitools/core": "4.
|
|
63
|
-
"@applitools/driver": "1.
|
|
64
|
-
"@applitools/eyes": "1.
|
|
62
|
+
"@applitools/core": "4.55.0",
|
|
63
|
+
"@applitools/driver": "1.25.0",
|
|
64
|
+
"@applitools/eyes": "1.38.0",
|
|
65
65
|
"@applitools/functional-commons": "1.6.0",
|
|
66
66
|
"@applitools/logger": "2.2.7",
|
|
67
67
|
"@applitools/monitoring-commons": "1.0.19",
|
|
68
|
-
"@applitools/spec-driver-puppeteer": "1.
|
|
68
|
+
"@applitools/spec-driver-puppeteer": "1.7.0",
|
|
69
69
|
"@applitools/ufg-client": "1.18.3",
|
|
70
70
|
"@applitools/utils": "1.14.1",
|
|
71
71
|
"@inquirer/prompts": "7.0.1",
|
|
@@ -191,6 +191,19 @@ function getFrameWindow() {
|
|
|
191
191
|
return window;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
// the inner frame might have a different url pattern but still be the correct one
|
|
195
|
+
// this is a fallback in case no other frame matched the usual patterns
|
|
196
|
+
// and this should be backwards compatible with older storybook versions 🤞
|
|
197
|
+
const fallbackFrameWindow = Array.prototype.find.call(window.frames, frame => {
|
|
198
|
+
try {
|
|
199
|
+
return frame.__STORYBOOK_PREVIEW__;
|
|
200
|
+
} catch (e) {}
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
if (fallbackFrameWindow) {
|
|
204
|
+
return fallbackFrameWindow;
|
|
205
|
+
}
|
|
206
|
+
|
|
194
207
|
throw new Error('Cannot get client API: no frameWindow');
|
|
195
208
|
}
|
|
196
209
|
|
package/src/processResults.js
CHANGED
|
@@ -67,7 +67,11 @@ function processResults({
|
|
|
67
67
|
outputStr += testResultsOutput(aborted, warnForUnsavedNewTests);
|
|
68
68
|
}
|
|
69
69
|
if (errors.length) {
|
|
70
|
-
const sortedErrors = errors.sort((a, b) =>
|
|
70
|
+
const sortedErrors = errors.sort((a, b) => {
|
|
71
|
+
const ta = (a && a.title) || '';
|
|
72
|
+
const tb = (b && b.title) || '';
|
|
73
|
+
return ta.localeCompare(tb);
|
|
74
|
+
});
|
|
71
75
|
outputStr += uniq(
|
|
72
76
|
sortedErrors.map(
|
|
73
77
|
({title, error}) =>
|