@applitools/eyes-storybook 3.59.0 → 3.60.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 +77 -0
- package/package.json +8 -8
- package/src/eyesStorybook.js +2 -2
- package/src/generateConfig.js +5 -5
- package/src/renderStory.js +2 -1
- package/src/transformSettings.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,82 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.60.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.59.1...js/eyes-storybook@3.60.0) (2025-09-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* use concurrency from server | AD-10015 ([#3207](https://github.com/Applitools-Dev/sdk/issues/3207)) ([5336c9e](https://github.com/Applitools-Dev/sdk/commit/5336c9e6578a8f935b2b255344e7172beadeb551))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/core-base bumped to 1.28.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* use concurrency from server | AD-10015 ([#3207](https://github.com/Applitools-Dev/sdk/issues/3207)) ([5336c9e](https://github.com/Applitools-Dev/sdk/commit/5336c9e6578a8f935b2b255344e7172beadeb551))
|
|
17
|
+
* @applitools/nml-client bumped to 1.11.6
|
|
18
|
+
|
|
19
|
+
* @applitools/ec-client bumped to 1.12.8
|
|
20
|
+
|
|
21
|
+
* @applitools/core bumped to 4.48.0
|
|
22
|
+
#### Features
|
|
23
|
+
|
|
24
|
+
* use concurrency from server | AD-10015 ([#3207](https://github.com/Applitools-Dev/sdk/issues/3207)) ([5336c9e](https://github.com/Applitools-Dev/sdk/commit/5336c9e6578a8f935b2b255344e7172beadeb551))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
* @applitools/eyes bumped to 1.36.8
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [3.59.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.59.0...js/eyes-storybook@3.59.1) (2025-09-16)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Dependencies
|
|
35
|
+
|
|
36
|
+
* @applitools/logger bumped to 2.2.4
|
|
37
|
+
#### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* remove duplicate tests on different sessions for same batch ([#3184](https://github.com/Applitools-Dev/sdk/issues/3184)) ([ede0d1f](https://github.com/Applitools-Dev/sdk/commit/ede0d1fd8018e14c19811903d78c273bce048f84))
|
|
40
|
+
* @applitools/dom-snapshot bumped to 4.13.7
|
|
41
|
+
|
|
42
|
+
* @applitools/socket bumped to 1.3.5
|
|
43
|
+
|
|
44
|
+
* @applitools/req bumped to 1.8.4
|
|
45
|
+
|
|
46
|
+
* @applitools/dom-capture bumped to 11.6.5
|
|
47
|
+
|
|
48
|
+
* @applitools/driver bumped to 1.23.5
|
|
49
|
+
|
|
50
|
+
* @applitools/spec-driver-webdriver bumped to 1.4.5
|
|
51
|
+
|
|
52
|
+
* @applitools/spec-driver-selenium bumped to 1.7.5
|
|
53
|
+
|
|
54
|
+
* @applitools/spec-driver-puppeteer bumped to 1.6.5
|
|
55
|
+
|
|
56
|
+
* @applitools/screenshoter bumped to 3.12.5
|
|
57
|
+
|
|
58
|
+
* @applitools/nml-client bumped to 1.11.5
|
|
59
|
+
|
|
60
|
+
* @applitools/tunnel-client bumped to 1.11.2
|
|
61
|
+
|
|
62
|
+
* @applitools/ufg-client bumped to 1.17.4
|
|
63
|
+
|
|
64
|
+
* @applitools/core-base bumped to 1.27.4
|
|
65
|
+
|
|
66
|
+
* @applitools/ec-client bumped to 1.12.7
|
|
67
|
+
|
|
68
|
+
* @applitools/core bumped to 4.47.1
|
|
69
|
+
#### Bug Fixes
|
|
70
|
+
|
|
71
|
+
* remove duplicate tests on different sessions for same batch ([#3184](https://github.com/Applitools-Dev/sdk/issues/3184)) ([ede0d1f](https://github.com/Applitools-Dev/sdk/commit/ede0d1fd8018e14c19811903d78c273bce048f84))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
* @applitools/eyes bumped to 1.36.7
|
|
76
|
+
|
|
77
|
+
* @applitools/test-server bumped to 1.3.3
|
|
78
|
+
|
|
79
|
+
|
|
3
80
|
## [3.59.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.58.3...js/eyes-storybook@3.59.0) (2025-09-15)
|
|
4
81
|
|
|
5
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-storybook",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.60.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"up:framework": "cd test/fixtures/storybook-versions/${APPLITOOLS_FRAMEWORK_VERSION} && npm ci"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@applitools/core": "4.
|
|
62
|
-
"@applitools/driver": "1.23.
|
|
63
|
-
"@applitools/eyes": "1.36.
|
|
61
|
+
"@applitools/core": "4.48.0",
|
|
62
|
+
"@applitools/driver": "1.23.5",
|
|
63
|
+
"@applitools/eyes": "1.36.8",
|
|
64
64
|
"@applitools/functional-commons": "1.6.0",
|
|
65
|
-
"@applitools/logger": "2.2.
|
|
65
|
+
"@applitools/logger": "2.2.4",
|
|
66
66
|
"@applitools/monitoring-commons": "1.0.19",
|
|
67
|
-
"@applitools/spec-driver-puppeteer": "1.6.
|
|
68
|
-
"@applitools/ufg-client": "1.17.
|
|
67
|
+
"@applitools/spec-driver-puppeteer": "1.6.5",
|
|
68
|
+
"@applitools/ufg-client": "1.17.4",
|
|
69
69
|
"@applitools/utils": "1.12.0",
|
|
70
70
|
"@inquirer/prompts": "7.0.1",
|
|
71
71
|
"boxen": "4.2.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.3",
|
|
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/eyesStorybook.js
CHANGED
|
@@ -77,7 +77,7 @@ async function eyesStorybook({
|
|
|
77
77
|
const core = await makeCore({spec, agentId, environment, logger});
|
|
78
78
|
const manager = await core.makeManager({
|
|
79
79
|
type: 'ufg',
|
|
80
|
-
settings: {concurrency: config.testConcurrency},
|
|
80
|
+
settings: {concurrency: config.testConcurrency, useServerConcurrency: true},
|
|
81
81
|
});
|
|
82
82
|
|
|
83
83
|
const account = await core
|
|
@@ -179,7 +179,7 @@ async function eyesStorybook({
|
|
|
179
179
|
performance,
|
|
180
180
|
timeItAsync,
|
|
181
181
|
storyDataGap: config.storyDataGap,
|
|
182
|
-
concurrency:
|
|
182
|
+
concurrency: account.serverConcurrency.componentConcurrency,
|
|
183
183
|
appName: config.appName,
|
|
184
184
|
serverSettings: account.eyesServer,
|
|
185
185
|
});
|
package/src/generateConfig.js
CHANGED
|
@@ -49,7 +49,7 @@ function generateConfig({argv = {}, defaultConfig = {}, externalConfigParams = [
|
|
|
49
49
|
? result.testConcurrency
|
|
50
50
|
: utils.types.isInteger(result.concurrency)
|
|
51
51
|
? result.concurrency * 5
|
|
52
|
-
:
|
|
52
|
+
: undefined; // let the server handle this
|
|
53
53
|
|
|
54
54
|
result.eyesServerUrl = result.serverUrl;
|
|
55
55
|
|
|
@@ -77,10 +77,10 @@ function generateConfig({argv = {}, defaultConfig = {}, externalConfigParams = [
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
if (result.storyDataGap === undefined) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
);
|
|
80
|
+
// determine storyDataGap based on default concurrency or user configured concurrency
|
|
81
|
+
// the actual concurrency will be determined by the server
|
|
82
|
+
const concurrency = result.testConcurrency || DEFAULT_CONCURRENCY;
|
|
83
|
+
result.storyDataGap = Math.max(Math.min(concurrency * 2, MAX_DATA_GAP), concurrency);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
transformConfig(result);
|
package/src/renderStory.js
CHANGED
|
@@ -10,6 +10,7 @@ function makeRenderStory({
|
|
|
10
10
|
storyDataGap,
|
|
11
11
|
appName,
|
|
12
12
|
serverSettings,
|
|
13
|
+
concurrency,
|
|
13
14
|
}) {
|
|
14
15
|
const throttle = throat(storyDataGap);
|
|
15
16
|
return function renderStory({story, snapshots, url}) {
|
|
@@ -18,7 +19,7 @@ function makeRenderStory({
|
|
|
18
19
|
|
|
19
20
|
logger.log(`running story ${title} with baseline ${baselineName}`);
|
|
20
21
|
|
|
21
|
-
const openParams = storyToOpenSettings({story, appName, serverSettings});
|
|
22
|
+
const openParams = storyToOpenSettings({story, appName, serverSettings, concurrency});
|
|
22
23
|
const checkParams = storyToCheckSettings({story, url});
|
|
23
24
|
|
|
24
25
|
return timeItAsync(baselineName, async () => {
|
package/src/transformSettings.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const {deprecationWarning} = require('./errMessages');
|
|
2
2
|
|
|
3
|
-
function storyToOpenSettings({story, appName, serverSettings}) {
|
|
3
|
+
function storyToOpenSettings({story, appName, serverSettings, concurrency}) {
|
|
4
4
|
const {name, kind, hasPlayFunction, config} = story;
|
|
5
5
|
|
|
6
6
|
const {
|
|
@@ -30,6 +30,7 @@ function storyToOpenSettings({story, appName, serverSettings}) {
|
|
|
30
30
|
testName: story.baselineName,
|
|
31
31
|
displayName: story.storyTitle,
|
|
32
32
|
properties: storyProperties,
|
|
33
|
+
sessionConcurrency: concurrency,
|
|
33
34
|
appName,
|
|
34
35
|
keepBatchOpen,
|
|
35
36
|
batch,
|