@applitools/eyes-storybook 3.28.0 → 3.29.0
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/README.md +1 -1
- package/package.json +41 -41
- package/src/cli.js +1 -1
- package/src/concurrencyMsg.js +1 -1
- package/src/errMessages.js +1 -1
- package/src/eyesStorybook.js +1 -1
- package/src/generateConfig.js +4 -3
- package/src/postinstall.js +1 -1
- package/src/processResults.js +1 -1
- package/src/shouldRenderIE.js +1 -3
- package/src/validateAndPopulateConfig.js +1 -1
- package/src/chalkify.js +0 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -852,7 +852,7 @@ storiesOf('Some kind', module).add('Date', () => <div>{date}</div>)
|
|
|
852
852
|
|
|
853
853
|
## Storybook interactions Play functionality
|
|
854
854
|
|
|
855
|
-
Since version 3.
|
|
855
|
+
Since version 3.28.0, there is a support for Storybooks' Interactions Play functionality: Stories who use 'Play', screenshot will be taken _automatically_ after the 'Play' flow is done.
|
|
856
856
|
This will replace the existing point of taking screenshots, it should not affect any new or existing Stories which are **not** using the 'Play' functionality.
|
|
857
857
|
Tests that use the _`waitBeforeCapture`_ property, the wait period will begin **after** the 'Play' flow is done.
|
|
858
858
|
You can read more at Storybook interactions documentation:
|
package/package.json
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-storybook",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.29.0",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"applitools",
|
|
7
|
+
"testing",
|
|
8
|
+
"browser",
|
|
9
|
+
"grid",
|
|
10
|
+
"visual-testing",
|
|
11
|
+
"nodejs",
|
|
12
|
+
"javascript"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git://github.com/applitools/eyes.sdk.javascript1.git",
|
|
17
|
+
"directory": "packages/eyes-storybook"
|
|
18
|
+
},
|
|
19
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
20
|
+
"author": "Applitools Team <team@applitools.com>",
|
|
21
|
+
"bin": {
|
|
22
|
+
"eyes-storybook": "./bin/eyes-storybook.js"
|
|
7
23
|
},
|
|
8
24
|
"files": [
|
|
9
25
|
"src",
|
|
10
26
|
"bin",
|
|
11
27
|
"dist"
|
|
12
28
|
],
|
|
13
|
-
"bin": {
|
|
14
|
-
"eyes-storybook": "./bin/eyes-storybook.js"
|
|
15
|
-
},
|
|
16
29
|
"scripts": {
|
|
30
|
+
"lint": "eslint '**/*.js'",
|
|
31
|
+
"build": "rollup -c rollup.config.js",
|
|
32
|
+
"build:heavy": "node scripts/bitmap.js",
|
|
17
33
|
"test": "yarn build && yarn test:mocha && yarn lint",
|
|
18
34
|
"test:versions": "yarn build && yarn test:e2e:versions && yarn lint",
|
|
19
35
|
"test:mocha": "yarn test:unit && yarn test:it && yarn test:e2e",
|
|
20
|
-
"test:unit": "
|
|
21
|
-
"test:it": "
|
|
36
|
+
"test:unit": "mocha --no-timeouts --trace-warnings 'test/unit/*.test.js'",
|
|
37
|
+
"test:it": "mocha --no-timeouts --trace-warnings 'test/it/*.test.js'",
|
|
22
38
|
"test:e2e": "mocha --no-timeouts --trace-warnings 'test/e2e/*.e2e.test.js'",
|
|
23
39
|
"test:e2e:versions": "npx mocha --no-timeouts --trace-warnings --require test/fixtures/storybook-versions/mochaHooks.js test/e2e/*.e2e.versions.test.js",
|
|
24
40
|
"test:e2e:versions_local": "STORYBOOK_VERSION=latest npx mocha --no-timeouts --trace-warnings --require test/fixtures/storybook-versions/mochaHooks.js test/e2e/*.e2e.versions.test.js",
|
|
25
|
-
"build": "rollup -c rollup.config.js",
|
|
26
|
-
"build:heavy": "node scripts/bitmap.js",
|
|
27
|
-
"lint": "eslint '**/*.js'",
|
|
28
41
|
"storybook": "start-storybook -c test/fixtures/appWithStorybook -p 9001 -s test/fixtures",
|
|
29
42
|
"storybook:jslayout": "start-storybook -c test/fixtures/jsLayoutStorybookLocal -p 9001 -s test/fixtures",
|
|
30
43
|
"storybook:csf": "yarn storybook:csf-service && start-storybook -c test/fixtures/storybookCSF/.storybook-temp -p 9001",
|
|
@@ -40,39 +53,28 @@
|
|
|
40
53
|
"changelog:init": "git config changelog.format \"* %s [[%h]($(echo $npm_package_repository_url|cut -d+ -f2|cut -d. -f1-2)/commit/%H)]\"",
|
|
41
54
|
"changelog:install": "sudo apt-get install git-extras",
|
|
42
55
|
"gh:publish": "gh workflow run publish-storybook.yml --ref $(git rev-parse --abbrev-ref HEAD)",
|
|
56
|
+
"prepublish:setup": "echo 'setup is a no-op. Move along, nothing to see here.'",
|
|
57
|
+
"deps": "bongo deps",
|
|
43
58
|
"postinstall": "node src/postinstall",
|
|
44
59
|
"preversion": "bongo preversion --verifyPendingChanges",
|
|
45
60
|
"version": "bongo version --withPendingChanges",
|
|
46
|
-
"postversion": "bongo postversion --skip-release-notification"
|
|
47
|
-
"deps": "bongo deps",
|
|
48
|
-
"prepublish:setup": "echo 'setup is a no-op. Move along, nothing to see here.'"
|
|
61
|
+
"postversion": "bongo postversion --skip-release-notification"
|
|
49
62
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"grid",
|
|
55
|
-
"visual-testing",
|
|
56
|
-
"nodejs",
|
|
57
|
-
"javascript"
|
|
58
|
-
],
|
|
59
|
-
"author": "Applitools Team <team@applitools.com>",
|
|
60
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
61
|
-
"repository": {
|
|
62
|
-
"type": "git",
|
|
63
|
-
"url": "git://github.com/applitools/eyes.sdk.javascript1.git",
|
|
64
|
-
"directory": "packages/eyes-storybook"
|
|
63
|
+
"husky": {
|
|
64
|
+
"hooks": {
|
|
65
|
+
"pre-push": "yarn bongo lint"
|
|
66
|
+
}
|
|
65
67
|
},
|
|
66
68
|
"dependencies": {
|
|
67
|
-
"@applitools/driver": "1.8.
|
|
68
|
-
"@applitools/eyes-sdk-core": "13.6.
|
|
69
|
+
"@applitools/driver": "1.8.15",
|
|
70
|
+
"@applitools/eyes-sdk-core": "13.6.28",
|
|
69
71
|
"@applitools/functional-commons": "1.6.0",
|
|
70
|
-
"@applitools/logger": "1.1.
|
|
72
|
+
"@applitools/logger": "1.1.8",
|
|
71
73
|
"@applitools/monitoring-commons": "1.0.19",
|
|
72
|
-
"@applitools/spec-driver-puppeteer": "1.1.
|
|
73
|
-
"@applitools/test-server": "1.0.
|
|
74
|
-
"@applitools/utils": "1.3.
|
|
75
|
-
"@applitools/visual-grid-client": "15.12.
|
|
74
|
+
"@applitools/spec-driver-puppeteer": "1.1.4",
|
|
75
|
+
"@applitools/test-server": "1.0.10",
|
|
76
|
+
"@applitools/utils": "1.3.3",
|
|
77
|
+
"@applitools/visual-grid-client": "15.12.37",
|
|
76
78
|
"boxen": "4.2.0",
|
|
77
79
|
"chalk": "3.0.0",
|
|
78
80
|
"detect-port": "1.3.0",
|
|
@@ -84,7 +86,7 @@
|
|
|
84
86
|
"yargs": "15.4.1"
|
|
85
87
|
},
|
|
86
88
|
"devDependencies": {
|
|
87
|
-
"@applitools/bongo": "^2.1.
|
|
89
|
+
"@applitools/bongo": "^2.1.1",
|
|
88
90
|
"@applitools/scripts": "^1.1.0",
|
|
89
91
|
"@applitools/sdk-shared": "0.9.11",
|
|
90
92
|
"@applitools/snaptdout": "^1.0.1",
|
|
@@ -115,9 +117,7 @@
|
|
|
115
117
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
116
118
|
"ua-parser-js": "^0.7.21"
|
|
117
119
|
},
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"pre-push": "yarn bongo lint"
|
|
121
|
-
}
|
|
120
|
+
"engines": {
|
|
121
|
+
"node": ">=12.13.0"
|
|
122
122
|
}
|
|
123
123
|
}
|
package/src/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ const handleJsonFile = require('./handleJsonFile');
|
|
|
15
15
|
const handleTapFile = require('./handleTapFile');
|
|
16
16
|
const handleXmlFile = require('./handleXmlFile');
|
|
17
17
|
const {presult} = require('@applitools/functional-commons');
|
|
18
|
-
const chalk = require('
|
|
18
|
+
const chalk = require('chalk');
|
|
19
19
|
const {performance, timeItAsync} = makeTiming();
|
|
20
20
|
|
|
21
21
|
(async function() {
|
package/src/concurrencyMsg.js
CHANGED
package/src/errMessages.js
CHANGED
package/src/eyesStorybook.js
CHANGED
|
@@ -3,7 +3,7 @@ const puppeteer = require('puppeteer');
|
|
|
3
3
|
const getStories = require('../dist/getStories');
|
|
4
4
|
const {makeVisualGridClient} = require('@applitools/visual-grid-client');
|
|
5
5
|
const {presult, delay} = require('@applitools/functional-commons');
|
|
6
|
-
const chalk = require('
|
|
6
|
+
const chalk = require('chalk');
|
|
7
7
|
const makeInitPage = require('./initPage');
|
|
8
8
|
const makeRenderStory = require('./renderStory');
|
|
9
9
|
const makeRenderStories = require('./renderStories');
|
package/src/generateConfig.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
const pick = require('lodash.pick');
|
|
3
|
-
const
|
|
3
|
+
const utils = require('@applitools/utils');
|
|
4
|
+
const {GeneralUtils} = require('@applitools/eyes-sdk-core');
|
|
4
5
|
const {resolve} = require('path');
|
|
5
6
|
const {deprecationWarning} = GeneralUtils;
|
|
6
7
|
const uniq = require('./uniq');
|
|
7
8
|
|
|
8
9
|
function generateConfig({argv = {}, defaultConfig = {}, externalConfigParams = []}) {
|
|
9
|
-
const configPath = argv.conf ? resolve(process.cwd(), argv.conf) : undefined;
|
|
10
10
|
const defaultConfigParams = Object.keys(defaultConfig);
|
|
11
|
+
const configPaths = argv.conf ? [resolve(process.cwd(), argv.conf)] : undefined;
|
|
11
12
|
const configParams = uniq(defaultConfigParams.concat(externalConfigParams));
|
|
12
|
-
const config =
|
|
13
|
+
const config = utils.config.getConfig({paths: configPaths, params: configParams});
|
|
13
14
|
const argvConfig = pick(argv, configParams);
|
|
14
15
|
const result = Object.assign({}, defaultConfig, config, argvConfig);
|
|
15
16
|
|
package/src/postinstall.js
CHANGED
package/src/processResults.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
const flatten = require('lodash.flatten');
|
|
3
|
-
const chalk = require('
|
|
3
|
+
const chalk = require('chalk');
|
|
4
4
|
const {TestResultsError, TestResultsFormatter} = require('@applitools/eyes-sdk-core');
|
|
5
5
|
const utils = require('@applitools/utils');
|
|
6
6
|
const uniq = require('./uniq');
|
package/src/shouldRenderIE.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const {BrowserType} = require('@applitools/eyes-sdk-core');
|
|
2
|
-
|
|
3
1
|
function splitConfigsByBrowser(config) {
|
|
4
2
|
const browsers = validateBrowsers(config);
|
|
5
3
|
if (browsers.length) {
|
|
@@ -33,7 +31,7 @@ function hasIE(config) {
|
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
function isIE(browser) {
|
|
36
|
-
return browser.name ===
|
|
34
|
+
return browser.name === 'ie' || browser.name === 'ie11';
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
function validateBrowsers(config) {
|
package/src/chalkify.js
DELETED