@applitools/eyes-storybook 3.43.2 → 3.44.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 CHANGED
@@ -1,5 +1,149 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.44.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-storybook-v3.43.3...js/eyes-storybook@3.44.0) (2023-10-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * add support for passing a DOM mapping file to deobfuscate RCA ([8c99f8d](https://github.com/applitools/eyes.sdk.javascript1/commit/8c99f8da53ded229306fe2f3da89cb3b5691e2c0))
9
+ * rework log event on opent eyes ([#1842](https://github.com/applitools/eyes.sdk.javascript1/issues/1842)) ([532756b](https://github.com/applitools/eyes.sdk.javascript1/commit/532756b75c1023967c3781316148c890dbcfaac8))
10
+ * show aborted tests in Eyes dashboard ([#1877](https://github.com/applitools/eyes.sdk.javascript1/issues/1877)) ([f9840d4](https://github.com/applitools/eyes.sdk.javascript1/commit/f9840d494222ccc6c6f262896771e28da2565bc6))
11
+ * update puppeteer version and minimum node version ([#1889](https://github.com/applitools/eyes.sdk.javascript1/issues/1889)) ([d449030](https://github.com/applitools/eyes.sdk.javascript1/commit/d449030bed6bf4f4c3e7a0dcb6f3ec78f7623e4c))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * bump ([756e2d6](https://github.com/applitools/eyes.sdk.javascript1/commit/756e2d6899b58dfa69001d70133230447b4794d3))
17
+ * update timeout when rendering stories with variants and legacy ([00b8499](https://github.com/applitools/eyes.sdk.javascript1/commit/00b8499716827518fe24abe5031ef950f0254119))
18
+
19
+
20
+ ### Code Refactoring
21
+
22
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * @applitools/utils bumped to 1.6.2
28
+ #### Code Refactoring
29
+
30
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
31
+ * @applitools/logger bumped to 2.0.12
32
+ #### Code Refactoring
33
+
34
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
35
+
36
+
37
+
38
+ * @applitools/socket bumped to 1.1.12
39
+ #### Code Refactoring
40
+
41
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
42
+
43
+
44
+
45
+ * @applitools/req bumped to 1.6.2
46
+ #### Code Refactoring
47
+
48
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
49
+
50
+
51
+
52
+ * @applitools/image bumped to 1.1.7
53
+ #### Bug Fixes
54
+
55
+ * avoid using ascii text decoder ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
56
+
57
+
58
+ #### Code Refactoring
59
+
60
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
61
+
62
+
63
+
64
+ * @applitools/driver bumped to 1.14.4
65
+ #### Code Refactoring
66
+
67
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
68
+
69
+
70
+
71
+ * @applitools/tunnel-client bumped to 1.2.4
72
+ #### Code Refactoring
73
+
74
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
75
+
76
+
77
+
78
+ * @applitools/ec-client bumped to 1.7.13
79
+ #### Code Refactoring
80
+
81
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
82
+
83
+
84
+
85
+ * @applitools/spec-driver-webdriver bumped to 1.0.48
86
+
87
+ * @applitools/spec-driver-puppeteer bumped to 1.2.4
88
+ #### Code Refactoring
89
+
90
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
91
+
92
+
93
+
94
+ * @applitools/screenshoter bumped to 3.8.14
95
+ #### Bug Fixes
96
+
97
+ * allow css scrolling when taking screenshot of the webview ([2d3a257](https://github.com/applitools/eyes.sdk.javascript1/commit/2d3a2572768e7f979d16297ca316a79ab2538adb))
98
+
99
+
100
+ #### Code Refactoring
101
+
102
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
103
+
104
+
105
+
106
+ * @applitools/core-base bumped to 1.7.2
107
+ #### Code Refactoring
108
+
109
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
110
+
111
+
112
+
113
+ * @applitools/nml-client bumped to 1.5.14
114
+
115
+ * @applitools/ufg-client bumped to 1.9.6
116
+ #### Code Refactoring
117
+
118
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
119
+ * drop jsdom dependency ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
120
+
121
+
122
+
123
+ * @applitools/spec-driver-selenium bumped to 1.5.62
124
+
125
+ * @applitools/core bumped to 4.0.0
126
+ #### ⚠ BREAKING CHANGES
127
+
128
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936))
129
+
130
+ #### Features
131
+
132
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936)) ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
133
+
134
+
135
+ #### Bug Fixes
136
+
137
+ * upgrade dom-snapshot ([#1969](https://github.com/applitools/eyes.sdk.javascript1/issues/1969)) ([458beb8](https://github.com/applitools/eyes.sdk.javascript1/commit/458beb803aec3e6d51484a557b3eed8f537a709d))
138
+
139
+
140
+ #### Code Refactoring
141
+
142
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
143
+
144
+
145
+
146
+
3
147
  ## [3.43.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-storybook@3.43.1...js/eyes-storybook@3.43.2) (2023-09-30)
4
148
 
5
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-storybook",
3
- "version": "3.43.2",
3
+ "version": "3.44.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "applitools",
@@ -53,14 +53,14 @@
53
53
  "postinstall": "node src/postinstall"
54
54
  },
55
55
  "dependencies": {
56
- "@applitools/core": "3.11.5",
57
- "@applitools/driver": "1.14.3",
56
+ "@applitools/core": "4.0.0",
57
+ "@applitools/driver": "1.14.4",
58
58
  "@applitools/functional-commons": "1.6.0",
59
- "@applitools/logger": "2.0.11",
59
+ "@applitools/logger": "2.0.12",
60
60
  "@applitools/monitoring-commons": "1.0.19",
61
- "@applitools/spec-driver-puppeteer": "1.2.3",
62
- "@applitools/ufg-client": "1.9.3",
63
- "@applitools/utils": "1.6.1",
61
+ "@applitools/spec-driver-puppeteer": "1.2.4",
62
+ "@applitools/ufg-client": "1.9.6",
63
+ "@applitools/utils": "1.6.2",
64
64
  "boxen": "4.2.0",
65
65
  "chalk": "3.0.0",
66
66
  "detect-port": "1.3.0",
@@ -73,7 +73,7 @@
73
73
  "yargs": "17.7.2"
74
74
  },
75
75
  "devDependencies": {
76
- "@applitools/bongo": "^5.6.1",
76
+ "@applitools/bongo": "^5.7.0",
77
77
  "@applitools/sdk-shared": "0.9.15",
78
78
  "@applitools/snaptdout": "^1.0.1",
79
79
  "@applitools/test-server": "^1.2.2",
@@ -110,7 +110,7 @@ async function eyesStorybook({
110
110
 
111
111
  const doTakeDomSnapshots = async ({
112
112
  page,
113
- renderers,
113
+ environments,
114
114
  layoutBreakpoints,
115
115
  waitBeforeCapture,
116
116
  disableBrowserFetching,
@@ -124,7 +124,7 @@ async function eyesStorybook({
124
124
  config,
125
125
  options: {
126
126
  layoutBreakpoints,
127
- renderers,
127
+ environments,
128
128
  waitBeforeCapture,
129
129
  skipResources,
130
130
  disableBrowserFetching,
@@ -74,8 +74,8 @@ function generateConfig({argv = {}, defaultConfig = {}, externalConfigParams = [
74
74
  }
75
75
 
76
76
  transformConfig(result);
77
- if (!result.renderers) {
78
- result.renderers = [{name: 'chrome', width: 1024, height: 768}];
77
+ if (!result.environments) {
78
+ result.environments = [{name: 'chrome', width: 1024, height: 768}];
79
79
  }
80
80
 
81
81
  return result;
@@ -88,11 +88,11 @@ function transformConfig(result) {
88
88
 
89
89
  function transformBrowser(result) {
90
90
  if (result.browser) {
91
- result.renderers = [];
91
+ result.environments = [];
92
92
  if (!Array.isArray(result.browser)) {
93
93
  result.browser = [result.browser];
94
94
  }
95
- result.renderers = result.browser.map(browser => {
95
+ result.environments = result.browser.map(browser => {
96
96
  if (browser.deviceName) {
97
97
  return {chromeEmulationInfo: browser};
98
98
  } else if (!browser.name) {
@@ -57,7 +57,7 @@ function makeGetStoryData({logger, takeDomSnapshots, reloadPagePerStory}) {
57
57
  logger.log(`running takeDomSnapshot(s) for story ${title}`);
58
58
  const domSnapshotsPromise = takeDomSnapshots({
59
59
  page,
60
- renderers: story.config.renderers,
60
+ environments: story.config.environments,
61
61
  layoutBreakpoints: story.config.layoutBreakpoints,
62
62
  waitBeforeCapture: wait
63
63
  ? async () => {
@@ -39,7 +39,7 @@ function makeRenderStory({
39
39
  visualGridOptions,
40
40
  useDom,
41
41
  enablePatterns,
42
- renderers,
42
+ environments,
43
43
  keepBatchOpen,
44
44
  batch,
45
45
  branchName,
@@ -101,7 +101,7 @@ function makeRenderStory({
101
101
  strictRegions,
102
102
  contentRegions,
103
103
  accessibilityRegions: mapAccessibilityRegions(accessibilityRegions),
104
- renderers,
104
+ environments,
105
105
  hooks: scriptHooks,
106
106
  sizeMode,
107
107
  region: target === 'region' ? selector : undefined,
@@ -139,7 +139,7 @@ function makeRenderStory({
139
139
  const results = await eyes.getResults();
140
140
  resolve(results);
141
141
  } else {
142
- await eyes.abort({settings: {renderers}});
142
+ await eyes.abort({settings: {environments}});
143
143
  reject(
144
144
  new Error(`Failed to get story data for ${openParams.testName}, test was aborted`),
145
145
  );
@@ -1,7 +1,7 @@
1
1
  function splitConfigsByBrowser(config) {
2
- const renderers = validateBrowsers(config);
3
- if (renderers.length) {
4
- const result = renderers.reduce(
2
+ const environments = validateBrowsers(config);
3
+ if (environments.length) {
4
+ const result = environments.reduce(
5
5
  ([nonIE, IE], browser) => {
6
6
  if (isIE(browser)) {
7
7
  IE.push(browser);
@@ -14,7 +14,7 @@ function splitConfigsByBrowser(config) {
14
14
  );
15
15
 
16
16
  return result.reduce(
17
- (acc, browser) => (browser.length > 0 ? acc.concat({...config, renderers: browser}) : acc),
17
+ (acc, browser) => (browser.length > 0 ? acc.concat({...config, environments: browser}) : acc),
18
18
  [],
19
19
  );
20
20
  } else {
@@ -35,8 +35,8 @@ function isIE(browser) {
35
35
  }
36
36
 
37
37
  function validateBrowsers(config) {
38
- if (config.renderers) {
39
- return Array.isArray(config.renderers) ? config.renderers : [config.renderers];
38
+ if (config.environments) {
39
+ return Array.isArray(config.environments) ? config.environments : [config.environments];
40
40
  } else {
41
41
  return [];
42
42
  }
@@ -67,7 +67,7 @@ async function validateAndPopulateConfig({config, packagePath = '', logger = mak
67
67
  }
68
68
  }
69
69
 
70
- if (config.fakeIE && !config.renderers.find(isIE)) {
70
+ if (config.fakeIE && !config.environments.find(isIE)) {
71
71
  console.log(
72
72
  chalk.yellow(
73
73
  `\u26A0 fakeIE flag was set, but no IE browsers were found in the configuration`,