@applitools/eyes-storybook 3.57.0 → 3.57.2
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 +60 -0
- package/dist/index.d.ts +2 -2
- package/package.json +12 -12
- package/src/index.ts +2 -2
- package/src/storybookConnector.js +16 -2
- package/src/utils/config-validator.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.57.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.57.1...js/eyes-storybook@3.57.2) (2025-08-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/utils bumped to 1.11.1
|
|
9
|
+
#### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* downgrade uuid to 9.0.1 ([#3169](https://github.com/Applitools-Dev/sdk/issues/3169)) ([30be8e3](https://github.com/Applitools-Dev/sdk/commit/30be8e35802b2c8bc970f62fdbd2d128f5a77fb7))
|
|
12
|
+
* @applitools/logger bumped to 2.2.2
|
|
13
|
+
|
|
14
|
+
* @applitools/dom-snapshot bumped to 4.13.2
|
|
15
|
+
|
|
16
|
+
* @applitools/socket bumped to 1.3.2
|
|
17
|
+
|
|
18
|
+
* @applitools/req bumped to 1.8.2
|
|
19
|
+
|
|
20
|
+
* @applitools/image bumped to 1.2.2
|
|
21
|
+
|
|
22
|
+
* @applitools/dom-capture bumped to 11.6.2
|
|
23
|
+
|
|
24
|
+
* @applitools/driver bumped to 1.23.2
|
|
25
|
+
|
|
26
|
+
* @applitools/spec-driver-webdriver bumped to 1.4.2
|
|
27
|
+
|
|
28
|
+
* @applitools/spec-driver-selenium bumped to 1.7.2
|
|
29
|
+
|
|
30
|
+
* @applitools/spec-driver-puppeteer bumped to 1.6.2
|
|
31
|
+
|
|
32
|
+
* @applitools/screenshoter bumped to 3.12.2
|
|
33
|
+
|
|
34
|
+
* @applitools/nml-client bumped to 1.11.2
|
|
35
|
+
|
|
36
|
+
* @applitools/tunnel-client bumped to 1.10.3
|
|
37
|
+
|
|
38
|
+
* @applitools/ufg-client bumped to 1.17.2
|
|
39
|
+
|
|
40
|
+
* @applitools/core-base bumped to 1.27.2
|
|
41
|
+
|
|
42
|
+
* @applitools/ec-client bumped to 1.12.3
|
|
43
|
+
|
|
44
|
+
* @applitools/core bumped to 4.44.3
|
|
45
|
+
#### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* downgrade uuid to 9.0.1 ([#3169](https://github.com/Applitools-Dev/sdk/issues/3169)) ([30be8e3](https://github.com/Applitools-Dev/sdk/commit/30be8e35802b2c8bc970f62fdbd2d128f5a77fb7))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
* @applitools/eyes bumped to 1.36.1
|
|
52
|
+
|
|
53
|
+
* @applitools/test-server bumped to 1.3.1
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## [3.57.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.57.0...js/eyes-storybook@3.57.1) (2025-08-10)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Bug Fixes
|
|
60
|
+
|
|
61
|
+
* add showLogs to validator keys ([#3160](https://github.com/Applitools-Dev/sdk/issues/3160)) ([d8f095a](https://github.com/Applitools-Dev/sdk/commit/d8f095ab9ae3531ed0fd7f8a8fcaf0c5cec17217))
|
|
62
|
+
|
|
3
63
|
## [3.57.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.56.0...js/eyes-storybook@3.57.0) (2025-08-05)
|
|
4
64
|
|
|
5
65
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConfigurationPlain, DesktopBrowserInfo, ChromeEmulationInfo, IOSDeviceInfo, IOSMultiDeviceInfo } from '@applitools/eyes';
|
|
2
2
|
/**
|
|
3
3
|
* https://applitools.com/tutorials/sdks/storybook/config
|
|
4
4
|
*/
|
|
5
|
-
export type ApplitoolsConfig = Omit<
|
|
5
|
+
export type ApplitoolsConfig = Omit<ConfigurationPlain, 'waitBeforeScreenshots'> & {
|
|
6
6
|
storybookUrl?: string;
|
|
7
7
|
storybookPort?: number;
|
|
8
8
|
storybookHost?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-storybook",
|
|
3
|
-
"version": "3.57.
|
|
3
|
+
"version": "3.57.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"build": "rollup -c rollup.config.js && yarn build:types",
|
|
31
31
|
"build:heavy": "node scripts/bitmap.js",
|
|
32
32
|
"test": "yarn build && yarn test:mocha",
|
|
33
|
-
"test:mocha": "run --top-level mocha 'test/{unit,it,e2e}/*.test.js'",
|
|
34
|
-
"test:unit": "run --top-level mocha 'test/unit/*.test.js'",
|
|
33
|
+
"test:mocha": "run --top-level mocha 'test/{unit,it,e2e}/*.test.js' --require ./test/mocha-global-setup.js",
|
|
34
|
+
"test:unit": "run --top-level mocha 'test/unit/*.test.js' --require ./test/mocha-global-setup.js",
|
|
35
35
|
"test:it": "run --top-level mocha 'test/it/*.test.js'",
|
|
36
36
|
"test:versions": "yarn build && yarn test:e2e:versions && yarn lint",
|
|
37
|
-
"test:e2e": "MOCHA_GROUP=e2e run --top-level mocha 'test/e2e/*.e2e.test.js'",
|
|
37
|
+
"test:e2e": "MOCHA_GROUP=e2e run --top-level mocha 'test/e2e/*.e2e.test.js' --require ./test/mocha-global-setup.js",
|
|
38
38
|
"test:e2e:versions": "MOCHA_GROUP=e2e_versions run --top-level mocha test/versions/*.e2e.versions.test.js",
|
|
39
39
|
"test:sanity": "run --top-level mocha 'test/sanity/*.test.js'",
|
|
40
40
|
"test:heavy": "node bin/eyes-storybook.js -f test/fixtures/heavyStorybook/applitools.config.js",
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
"up:framework": "cd test/fixtures/storybook-versions/${APPLITOOLS_FRAMEWORK_VERSION} && npm ci"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@applitools/core": "4.44.
|
|
62
|
-
"@applitools/driver": "1.23.
|
|
63
|
-
"@applitools/eyes": "1.36.
|
|
61
|
+
"@applitools/core": "4.44.3",
|
|
62
|
+
"@applitools/driver": "1.23.2",
|
|
63
|
+
"@applitools/eyes": "1.36.1",
|
|
64
64
|
"@applitools/functional-commons": "1.6.0",
|
|
65
|
-
"@applitools/logger": "2.2.
|
|
65
|
+
"@applitools/logger": "2.2.2",
|
|
66
66
|
"@applitools/monitoring-commons": "1.0.19",
|
|
67
|
-
"@applitools/spec-driver-puppeteer": "1.6.
|
|
68
|
-
"@applitools/ufg-client": "1.17.
|
|
69
|
-
"@applitools/utils": "1.11.
|
|
67
|
+
"@applitools/spec-driver-puppeteer": "1.6.2",
|
|
68
|
+
"@applitools/ufg-client": "1.17.2",
|
|
69
|
+
"@applitools/utils": "1.11.1",
|
|
70
70
|
"@inquirer/prompts": "7.0.1",
|
|
71
71
|
"boxen": "4.2.0",
|
|
72
72
|
"chalk": "3.0.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@applitools/bongo": "^5.10.0",
|
|
84
84
|
"@applitools/snaptdout": "^1.1.0",
|
|
85
|
-
"@applitools/test-server": "^1.3.
|
|
85
|
+
"@applitools/test-server": "^1.3.1",
|
|
86
86
|
"@applitools/test-utils": "^1.5.17",
|
|
87
87
|
"@storybook/addon-interactions": "^6.4.18",
|
|
88
88
|
"@storybook/react": "^6.5.16",
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {ConfigurationPlain, DesktopBrowserInfo, ChromeEmulationInfo, IOSDeviceInfo, IOSMultiDeviceInfo} from '@applitools/eyes'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* https://applitools.com/tutorials/sdks/storybook/config
|
|
5
5
|
*/
|
|
6
|
-
export type ApplitoolsConfig = Omit<
|
|
6
|
+
export type ApplitoolsConfig = Omit<ConfigurationPlain, 'waitBeforeScreenshots'> & {
|
|
7
7
|
storybookUrl?: string;
|
|
8
8
|
storybookPort?: number;
|
|
9
9
|
storybookHost?: string;
|
|
@@ -128,12 +128,26 @@ class StorybookConnector extends EventEmitter {
|
|
|
128
128
|
if (this._sbArg) {
|
|
129
129
|
args.unshift(this._sbArg);
|
|
130
130
|
}
|
|
131
|
-
this._logger.log(`${this._storybookPath} ${args.join(' ')}`);
|
|
132
131
|
const spawnOptions = {detached: false};
|
|
132
|
+
if (this._isWindows) {
|
|
133
|
+
if (/\s/.test(this._storybookPath)) {
|
|
134
|
+
this._storybookPath = `"${this._storybookPath}"`;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
this._logger.log(`storybook spawn path:${this._storybookPath} ${args.join(' ')}`);
|
|
133
138
|
|
|
134
139
|
// Storybook has an issue when running with Node.js v18 - https://github.com/storybookjs/storybook/issues/20482
|
|
135
140
|
if (parseInt(process.versions.node) > 16) {
|
|
136
|
-
|
|
141
|
+
this._logger.log(
|
|
142
|
+
'Adding --openssl-legacy-provider to NODE_OPTIONS for Storybook compatibility with Node.js v18+',
|
|
143
|
+
);
|
|
144
|
+
spawnOptions.env = {
|
|
145
|
+
...process.env,
|
|
146
|
+
NODE_OPTIONS: `${process.env.NODE_OPTIONS || ''} --openssl-legacy-provider`.trim(),
|
|
147
|
+
};
|
|
148
|
+
if (this._isWindows) {
|
|
149
|
+
Object.assign(spawnOptions, {shell: true});
|
|
150
|
+
}
|
|
137
151
|
}
|
|
138
152
|
|
|
139
153
|
this._childProcess = spawn(this._storybookPath, args, spawnOptions);
|