@applitools/eyes-storybook 3.32.0 → 3.32.1

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
@@ -3,6 +3,12 @@
3
3
  ## Unreleased
4
4
 
5
5
 
6
+ ## 3.32.1 - 2023/4/16
7
+
8
+ ### Features
9
+ ### Bug fixes
10
+ - result output throw error
11
+
6
12
  ## 3.32.0 - 2023/3/30
7
13
 
8
14
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-storybook",
3
- "version": "3.32.0",
3
+ "version": "3.32.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "applitools",
@@ -73,14 +73,14 @@
73
73
  }
74
74
  },
75
75
  "dependencies": {
76
- "@applitools/core": "2.4.4",
77
- "@applitools/driver": "1.11.37",
76
+ "@applitools/core": "2.4.13",
77
+ "@applitools/driver": "1.11.41",
78
78
  "@applitools/functional-commons": "1.6.0",
79
79
  "@applitools/logger": "1.1.48",
80
80
  "@applitools/monitoring-commons": "1.0.19",
81
- "@applitools/spec-driver-puppeteer": "1.1.49",
81
+ "@applitools/spec-driver-puppeteer": "1.1.54",
82
82
  "@applitools/test-server": "1.1.28",
83
- "@applitools/ufg-client": "1.2.4",
83
+ "@applitools/ufg-client": "1.2.8",
84
84
  "@applitools/utils": "1.3.32",
85
85
  "boxen": "4.2.0",
86
86
  "chalk": "3.0.0",
@@ -24,6 +24,7 @@ const checkSettingsParams = [
24
24
  'selector',
25
25
  'fully',
26
26
  'fakeIE',
27
+ 'disableBrowserFetching',
27
28
  ];
28
29
 
29
30
  module.exports = {checkSettingsParams};
@@ -112,7 +112,7 @@ async function eyesStorybook({
112
112
  const pagePool = createPagePool({initPage, logger});
113
113
 
114
114
  const doTakeDomSnapshots = async ({page, renderers, layoutBreakpoints, waitBeforeCapture}) => {
115
- const driver = await new Driver({spec, driver: page, logger}).init();
115
+ const driver = await new Driver({spec, driver: page, logger});
116
116
  const skipResources = client.getCachedResourceUrls();
117
117
  const result = await takeDomSnapshots({
118
118
  logger,
@@ -6,7 +6,7 @@ const {formatters} = require('@applitools/core');
6
6
 
7
7
  function handleJsonFile(jsonFilePath, summary) {
8
8
  const path = resolve(jsonFilePath, 'eyes.json');
9
- fs.writeFileSync(path, formatters.toJsonOutput(summary));
9
+ fs.writeFileSync(path, formatters.toJsonOutput(summary.results.map(({result}) => result)));
10
10
  return path;
11
11
  }
12
12
 
@@ -8,10 +8,13 @@ function handleTapFile(tapFilePath, summary) {
8
8
  const path = resolve(tapFilePath, 'eyes.tap');
9
9
  fs.writeFileSync(
10
10
  path,
11
- formatters.toHierarchicTAPString(summary.results, {
12
- includeSubTests: false,
13
- markNewAsPassed: true,
14
- }),
11
+ formatters.toHierarchicTAPString(
12
+ summary.results.map(({result}) => result),
13
+ {
14
+ includeSubTests: false,
15
+ markNewAsPassed: true,
16
+ },
17
+ ),
15
18
  );
16
19
  return path;
17
20
  }
@@ -6,7 +6,13 @@ const {formatters} = require('@applitools/core');
6
6
 
7
7
  function handleXmlFile(xmlFilePath, summary, {suiteName = 'Eyes Storybook', totalTime} = {}) {
8
8
  const path = resolve(xmlFilePath, 'eyes.xml');
9
- fs.writeFileSync(path, formatters.toXmlOutput(summary.results, {suiteName, totalTime}));
9
+ fs.writeFileSync(
10
+ path,
11
+ formatters.toXmlOutput(
12
+ summary.results.map(({result}) => result),
13
+ {suiteName, totalTime},
14
+ ),
15
+ );
10
16
  return path;
11
17
  }
12
18