@applitools/eyes-storybook 3.27.4 → 3.27.5
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 +6 -0
- package/package.json +12 -12
- package/src/getIframeUrl.js +6 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-storybook",
|
|
3
|
-
"version": "3.27.
|
|
3
|
+
"version": "3.27.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=8.6.0"
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"test": "yarn build && yarn test:mocha && yarn lint",
|
|
18
|
-
"test:mocha": "
|
|
19
|
-
"test:unit": "mocha --no-timeouts --trace-warnings 'test/unit/*.test.js'",
|
|
20
|
-
"test:it": "mocha --no-timeouts --trace-warnings 'test/it/*.test.js'",
|
|
18
|
+
"test:mocha": "yarn test:unit && yarn test:it && yarn test:e2e",
|
|
19
|
+
"test:unit": "STDOUT_LEVEL=0 mocha --no-timeouts --trace-warnings 'test/unit/*.test.js'",
|
|
20
|
+
"test:it": "STDOUT_LEVEL=1 mocha --no-timeouts --trace-warnings 'test/it/*.test.js'",
|
|
21
21
|
"test:e2e": "mocha --no-timeouts --trace-warnings 'test/e2e/*.test.js'",
|
|
22
22
|
"build": "rollup -c rollup.config.js",
|
|
23
23
|
"build:heavy": "node scripts/bitmap.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"changelog:install": "sudo apt-get install git-extras",
|
|
37
37
|
"gh:publish": "gh workflow run publish-storybook.yml --ref $(git rev-parse --abbrev-ref HEAD)",
|
|
38
38
|
"postinstall": "node src/postinstall",
|
|
39
|
-
"preversion": "bongo preversion",
|
|
40
|
-
"version": "bongo version",
|
|
39
|
+
"preversion": "bongo preversion --verifyPendingChanges",
|
|
40
|
+
"version": "bongo version --withPendingChanges",
|
|
41
41
|
"postversion": "bongo postversion --skip-release-notification",
|
|
42
42
|
"deps": "bongo deps",
|
|
43
43
|
"prepublish:setup": "echo 'setup is a no-op. Move along, nothing to see here.'"
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
"directory": "packages/eyes-storybook"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@applitools/driver": "1.
|
|
63
|
-
"@applitools/eyes-sdk-core": "13.
|
|
62
|
+
"@applitools/driver": "1.5.5",
|
|
63
|
+
"@applitools/eyes-sdk-core": "13.1.2",
|
|
64
64
|
"@applitools/functional-commons": "1.6.0",
|
|
65
|
-
"@applitools/logger": "1.0.
|
|
65
|
+
"@applitools/logger": "1.0.11",
|
|
66
66
|
"@applitools/monitoring-commons": "1.0.19",
|
|
67
67
|
"@applitools/spec-driver-puppeteer": "1.1.0",
|
|
68
68
|
"@applitools/test-server": "1.0.8",
|
|
69
|
-
"@applitools/utils": "1.2.
|
|
70
|
-
"@applitools/visual-grid-client": "15.
|
|
69
|
+
"@applitools/utils": "1.2.13",
|
|
70
|
+
"@applitools/visual-grid-client": "15.10.1",
|
|
71
71
|
"boxen": "4.2.0",
|
|
72
72
|
"chalk": "3.0.0",
|
|
73
73
|
"detect-port": "1.3.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@applitools/scripts": "^1.1.0",
|
|
83
|
-
"@applitools/sdk-release-kit": "
|
|
83
|
+
"@applitools/sdk-release-kit": "1.2.1",
|
|
84
84
|
"@applitools/sdk-shared": "0.9.11",
|
|
85
85
|
"@applitools/snaptdout": "^1.0.1",
|
|
86
86
|
"@storybook/react": "^6.4.0",
|
package/src/getIframeUrl.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
const {URL} = require('url');
|
|
3
3
|
|
|
4
4
|
function getIframeUrl(baseUrl) {
|
|
5
|
-
const {origin, pathname} = new URL(baseUrl);
|
|
5
|
+
const {origin, pathname, search} = new URL(baseUrl);
|
|
6
|
+
const searchParam = search && search.replace(/^\?/, '&');
|
|
6
7
|
|
|
7
8
|
let baseUrlFixed = `${origin}${pathname.replace(/\/[^\/]+\.html/, '')}`;
|
|
8
9
|
|
|
@@ -10,7 +11,10 @@ function getIframeUrl(baseUrl) {
|
|
|
10
11
|
baseUrlFixed += '/';
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const url = new URL(
|
|
14
|
+
const url = new URL(
|
|
15
|
+
`iframe.html?eyes-storybook=true${searchParam ? searchParam : ''}`,
|
|
16
|
+
baseUrlFixed,
|
|
17
|
+
);
|
|
14
18
|
return url.href;
|
|
15
19
|
}
|
|
16
20
|
|