@applitools/eyes-storybook 3.45.1 → 3.45.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 CHANGED
@@ -1,5 +1,59 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Code Refactoring
7
+
8
+ * fix safe selector generation ([#2072](https://github.com/applitools/eyes.sdk.javascript1/issues/2072)) ([373f11b](https://github.com/applitools/eyes.sdk.javascript1/commit/373f11b0dfea6eab417eb7077e0cfec79877dc1b))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/driver bumped to 1.15.3
14
+ #### Bug Fixes
15
+
16
+ * 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))
17
+ * @applitools/nml-client bumped to 1.6.0
18
+ #### Features
19
+
20
+ * 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))
21
+
22
+
23
+
24
+ * @applitools/tunnel-client bumped to 1.4.0
25
+ #### Features
26
+
27
+ * sign windows binaries ([87fd29c](https://github.com/applitools/eyes.sdk.javascript1/commit/87fd29c8953fc512489c3bb00841ca91c5b2f030))
28
+ * @applitools/spec-driver-webdriver bumped to 1.0.52
29
+
30
+ * @applitools/spec-driver-selenium bumped to 1.5.66
31
+
32
+ * @applitools/spec-driver-puppeteer bumped to 1.3.2
33
+
34
+ * @applitools/screenshoter bumped to 3.8.18
35
+
36
+ * @applitools/ec-client bumped to 1.7.18
37
+
38
+ * @applitools/core bumped to 4.4.0
39
+ #### Features
40
+
41
+ * sign windows binaries ([87fd29c](https://github.com/applitools/eyes.sdk.javascript1/commit/87fd29c8953fc512489c3bb00841ca91c5b2f030))
42
+ * 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))
43
+
44
+
45
+ #### Bug Fixes
46
+
47
+ * 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))
48
+
49
+
50
+ #### Code Refactoring
51
+
52
+ * fix safe selector generation ([#2072](https://github.com/applitools/eyes.sdk.javascript1/issues/2072)) ([373f11b](https://github.com/applitools/eyes.sdk.javascript1/commit/373f11b0dfea6eab417eb7077e0cfec79877dc1b))
53
+
54
+
55
+
56
+
3
57
  ## [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
58
 
5
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-storybook",
3
- "version": "3.45.1",
3
+ "version": "3.45.2",
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 --no-timeouts --trace-warnings 'test/{unit,it,e2e}/*.test.js'",
29
- "test:unit": "run --top-level mocha --no-timeouts --trace-warnings 'test/unit/*.test.js'",
30
- "test:it": "run --top-level mocha --no-timeouts --trace-warnings 'test/it/*.test.js'",
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 --no-timeouts --trace-warnings 'test/e2e/*.e2e.test.js'",
33
- "test:e2e:versions": "MOCHA_GROUP=e2e_versions run --top-level mocha --no-timeouts --trace-warnings test/versions/*.e2e.versions.test.js",
34
- "test:e2e:versions_local": "APPLITOOLS_FRAMEWORK_VERSION=latest npx mocha --no-timeouts --trace-warnings --require test/fixtures/storybook-versions/mochaHooks.js test/versions/*.e2e.versions.test.js",
35
- "test:sanity": "run --top-level mocha --no-timeouts --trace-warnings 'test/sanity/*.test.js'",
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.3.0",
59
- "@applitools/driver": "1.15.2",
58
+ "@applitools/core": "4.4.0",
59
+ "@applitools/driver": "1.15.3",
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.1",
63
+ "@applitools/spec-driver-puppeteer": "1.3.2",
64
64
  "@applitools/ufg-client": "1.9.9",
65
65
  "@applitools/utils": "1.7.0",
66
66
  "boxen": "4.2.0",
@@ -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;