@applitools/eyes-storybook 3.45.1 → 3.45.3
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 +88 -0
- package/package.json +11 -11
- package/src/eyesStorybook.js +0 -10
- package/src/memoryLog.js +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,93 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.45.3](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-storybook@3.45.2...js/eyes-storybook@3.45.3) (2023-12-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/driver bumped to 1.16.0
|
|
9
|
+
#### Features
|
|
10
|
+
|
|
11
|
+
* add set of env variables to skip/ignore some optional automations ([#2097](https://github.com/applitools/eyes.sdk.javascript1/issues/2097)) ([bd3b08c](https://github.com/applitools/eyes.sdk.javascript1/commit/bd3b08c3d2997eb98d545b308a1f15501192178e))
|
|
12
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.53
|
|
13
|
+
|
|
14
|
+
* @applitools/spec-driver-selenium bumped to 1.5.67
|
|
15
|
+
|
|
16
|
+
* @applitools/spec-driver-puppeteer bumped to 1.3.3
|
|
17
|
+
|
|
18
|
+
* @applitools/screenshoter bumped to 3.8.19
|
|
19
|
+
|
|
20
|
+
* @applitools/nml-client bumped to 1.6.1
|
|
21
|
+
|
|
22
|
+
* @applitools/ec-client bumped to 1.7.19
|
|
23
|
+
|
|
24
|
+
* @applitools/core bumped to 4.5.0
|
|
25
|
+
#### Features
|
|
26
|
+
|
|
27
|
+
* add set of env variables to skip/ignore some optional automations ([#2097](https://github.com/applitools/eyes.sdk.javascript1/issues/2097)) ([bd3b08c](https://github.com/applitools/eyes.sdk.javascript1/commit/bd3b08c3d2997eb98d545b308a1f15501192178e))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* fixed issue when page wasn't reloaded for one of the breakpoints if the initial viewport size matches it ([9038723](https://github.com/applitools/eyes.sdk.javascript1/commit/9038723ee68515f7d4fe20ed31ec501df9a381dc))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [3.45.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-storybook@3.45.1...js/eyes-storybook@3.45.2) (2023-12-12)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Code Refactoring
|
|
41
|
+
|
|
42
|
+
* fix safe selector generation ([#2072](https://github.com/applitools/eyes.sdk.javascript1/issues/2072)) ([373f11b](https://github.com/applitools/eyes.sdk.javascript1/commit/373f11b0dfea6eab417eb7077e0cfec79877dc1b))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Dependencies
|
|
46
|
+
|
|
47
|
+
* @applitools/driver bumped to 1.15.3
|
|
48
|
+
#### Bug Fixes
|
|
49
|
+
|
|
50
|
+
* layout breakpoints reload and lazy load ([#2073](https://github.com/applitools/eyes.sdk.javascript1/issues/2073)) ([ab2c49e](https://github.com/applitools/eyes.sdk.javascript1/commit/ab2c49ea1ecff3fef337637a83aa5bef755a7b01))
|
|
51
|
+
* @applitools/nml-client bumped to 1.6.0
|
|
52
|
+
#### Features
|
|
53
|
+
|
|
54
|
+
* support updated applitools lib protocol ([#2086](https://github.com/applitools/eyes.sdk.javascript1/issues/2086)) ([31b49fc](https://github.com/applitools/eyes.sdk.javascript1/commit/31b49fc411c452d0b3da341fd701309714484485))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
* @applitools/tunnel-client bumped to 1.4.0
|
|
59
|
+
#### Features
|
|
60
|
+
|
|
61
|
+
* sign windows binaries ([87fd29c](https://github.com/applitools/eyes.sdk.javascript1/commit/87fd29c8953fc512489c3bb00841ca91c5b2f030))
|
|
62
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.52
|
|
63
|
+
|
|
64
|
+
* @applitools/spec-driver-selenium bumped to 1.5.66
|
|
65
|
+
|
|
66
|
+
* @applitools/spec-driver-puppeteer bumped to 1.3.2
|
|
67
|
+
|
|
68
|
+
* @applitools/screenshoter bumped to 3.8.18
|
|
69
|
+
|
|
70
|
+
* @applitools/ec-client bumped to 1.7.18
|
|
71
|
+
|
|
72
|
+
* @applitools/core bumped to 4.4.0
|
|
73
|
+
#### Features
|
|
74
|
+
|
|
75
|
+
* sign windows binaries ([87fd29c](https://github.com/applitools/eyes.sdk.javascript1/commit/87fd29c8953fc512489c3bb00841ca91c5b2f030))
|
|
76
|
+
* support updated applitools lib protocol ([#2086](https://github.com/applitools/eyes.sdk.javascript1/issues/2086)) ([31b49fc](https://github.com/applitools/eyes.sdk.javascript1/commit/31b49fc411c452d0b3da341fd701309714484485))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
#### Bug Fixes
|
|
80
|
+
|
|
81
|
+
* layout breakpoints reload and lazy load ([#2073](https://github.com/applitools/eyes.sdk.javascript1/issues/2073)) ([ab2c49e](https://github.com/applitools/eyes.sdk.javascript1/commit/ab2c49ea1ecff3fef337637a83aa5bef755a7b01))
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
#### Code Refactoring
|
|
85
|
+
|
|
86
|
+
* fix safe selector generation ([#2072](https://github.com/applitools/eyes.sdk.javascript1/issues/2072)) ([373f11b](https://github.com/applitools/eyes.sdk.javascript1/commit/373f11b0dfea6eab417eb7077e0cfec79877dc1b))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
3
91
|
## [3.45.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-storybook@3.45.0...js/eyes-storybook@3.45.1) (2023-12-05)
|
|
4
92
|
|
|
5
93
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-storybook",
|
|
3
|
-
"version": "3.45.
|
|
3
|
+
"version": "3.45.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"build": "rollup -c rollup.config.js",
|
|
26
26
|
"build:heavy": "node scripts/bitmap.js",
|
|
27
27
|
"test": "yarn build && yarn test:mocha",
|
|
28
|
-
"test:mocha": "run --top-level mocha --
|
|
29
|
-
"test:unit": "run --top-level mocha --
|
|
30
|
-
"test:it": "run --top-level mocha --
|
|
28
|
+
"test:mocha": "run --top-level mocha --trace-warnings 'test/{unit,it,e2e}/*.test.js'",
|
|
29
|
+
"test:unit": "run --top-level mocha --trace-warnings 'test/unit/*.test.js'",
|
|
30
|
+
"test:it": "run --top-level mocha --trace-warnings 'test/it/*.test.js'",
|
|
31
31
|
"test:versions": "yarn build && yarn test:e2e:versions && yarn lint",
|
|
32
|
-
"test:e2e": "MOCHA_GROUP=e2e run --top-level mocha --
|
|
33
|
-
"test:e2e:versions": "MOCHA_GROUP=e2e_versions run --top-level mocha --
|
|
34
|
-
"test:e2e:versions_local": "APPLITOOLS_FRAMEWORK_VERSION=latest npx mocha --
|
|
35
|
-
"test:sanity": "run --top-level mocha --
|
|
32
|
+
"test:e2e": "MOCHA_GROUP=e2e run --top-level mocha --trace-warnings 'test/e2e/*.e2e.test.js'",
|
|
33
|
+
"test:e2e:versions": "MOCHA_GROUP=e2e_versions run --top-level mocha --trace-warnings test/versions/*.e2e.versions.test.js",
|
|
34
|
+
"test:e2e:versions_local": "APPLITOOLS_FRAMEWORK_VERSION=latest npx mocha --trace-warnings --require test/fixtures/storybook-versions/mochaHooks.js test/versions/*.e2e.versions.test.js",
|
|
35
|
+
"test:sanity": "run --top-level mocha --trace-warnings 'test/sanity/*.test.js'",
|
|
36
36
|
"test:heavy": "node bin/eyes-storybook.js -f test/fixtures/heavyStorybook/applitools.config.js",
|
|
37
37
|
"storybook": "start-storybook -c test/fixtures/appWithStorybook -p 9001 -s test/fixtures",
|
|
38
38
|
"storybook:httpHeaders": "start-storybook -c test/fixtures/appWithCustomHttpHeaders -p 9007",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"up:framework": "yarn add --dev --caret @storybook/react${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@applitools/core": "4.
|
|
59
|
-
"@applitools/driver": "1.
|
|
58
|
+
"@applitools/core": "4.5.0",
|
|
59
|
+
"@applitools/driver": "1.16.0",
|
|
60
60
|
"@applitools/functional-commons": "1.6.0",
|
|
61
61
|
"@applitools/logger": "2.0.14",
|
|
62
62
|
"@applitools/monitoring-commons": "1.0.19",
|
|
63
|
-
"@applitools/spec-driver-puppeteer": "1.3.
|
|
63
|
+
"@applitools/spec-driver-puppeteer": "1.3.3",
|
|
64
64
|
"@applitools/ufg-client": "1.9.9",
|
|
65
65
|
"@applitools/utils": "1.7.0",
|
|
66
66
|
"boxen": "4.2.0",
|
package/src/eyesStorybook.js
CHANGED
|
@@ -11,7 +11,6 @@ const ora = require('ora');
|
|
|
11
11
|
const filterStories = require('./filterStories');
|
|
12
12
|
const addVariationStories = require('./addVariationStories');
|
|
13
13
|
const browserLog = require('./browserLog');
|
|
14
|
-
const memoryLog = require('./memoryLog');
|
|
15
14
|
const getIframeUrl = require('./getIframeUrl');
|
|
16
15
|
const createPagePool = require('./pagePool');
|
|
17
16
|
const getClientAPI = require('../dist/getClientAPI');
|
|
@@ -37,10 +36,8 @@ async function eyesStorybook({
|
|
|
37
36
|
outputStream = process.stderr,
|
|
38
37
|
isVersion7,
|
|
39
38
|
}) {
|
|
40
|
-
let memoryTimeout;
|
|
41
39
|
let renderIE = false;
|
|
42
40
|
let transitioning = false;
|
|
43
|
-
takeMemLoop();
|
|
44
41
|
logger.log('eyesStorybook started');
|
|
45
42
|
|
|
46
43
|
const CONCURRENT_TABS = isNaN(Number(process.env.APPLITOOLS_CONCURRENT_TABS))
|
|
@@ -88,7 +85,6 @@ async function eyesStorybook({
|
|
|
88
85
|
const failMsg = 'Incorrect API Key';
|
|
89
86
|
logger.log(failMsg);
|
|
90
87
|
await browser.close();
|
|
91
|
-
clearTimeout(memoryTimeout);
|
|
92
88
|
throw new Error(failMsg);
|
|
93
89
|
} else {
|
|
94
90
|
throw error;
|
|
@@ -239,7 +235,6 @@ async function eyesStorybook({
|
|
|
239
235
|
logger.log('perf results', performance);
|
|
240
236
|
pagePool.isClosed = true;
|
|
241
237
|
await browser.close();
|
|
242
|
-
clearTimeout(memoryTimeout);
|
|
243
238
|
}
|
|
244
239
|
|
|
245
240
|
async function getStoriesWithSpinner() {
|
|
@@ -299,11 +294,6 @@ async function eyesStorybook({
|
|
|
299
294
|
return stories;
|
|
300
295
|
}
|
|
301
296
|
|
|
302
|
-
function takeMemLoop() {
|
|
303
|
-
logger.log(memoryLog(process.memoryUsage()));
|
|
304
|
-
memoryTimeout = setTimeout(takeMemLoop, 30000);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
297
|
function getRenderIE() {
|
|
308
298
|
return renderIE;
|
|
309
299
|
}
|
package/src/memoryLog.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function memoryLog(usage) {
|
|
4
|
-
return `Memory usage: ${Object.keys(usage)
|
|
5
|
-
.map(key => `${key}: ${toMB(usage[key])} MB`)
|
|
6
|
-
.join(', ')}`;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function toMB(size) {
|
|
10
|
-
return Math.round((size / 1024 / 1024) * 100) / 100;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
module.exports = memoryLog;
|