@applitools/eyes-storybook 3.43.2 → 3.44.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
@@ -1,5 +1,163 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.44.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-storybook@3.44.0...js/eyes-storybook@3.44.1) (2023-10-25)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/tunnel-client bumped to 1.3.0
9
+ #### Features
10
+
11
+ * add more logs for tunnel worker ([60cf839](https://github.com/applitools/eyes.sdk.javascript1/commit/60cf839f23b214dff89ff4a9c59f231c96160daf))
12
+ * @applitools/ec-client bumped to 1.7.14
13
+
14
+ * @applitools/core bumped to 4.0.1
15
+
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Features
21
+
22
+ * add support for passing a DOM mapping file to deobfuscate RCA ([8c99f8d](https://github.com/applitools/eyes.sdk.javascript1/commit/8c99f8da53ded229306fe2f3da89cb3b5691e2c0))
23
+ * 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))
24
+ * 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))
25
+ * 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))
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * bump ([756e2d6](https://github.com/applitools/eyes.sdk.javascript1/commit/756e2d6899b58dfa69001d70133230447b4794d3))
31
+ * update timeout when rendering stories with variants and legacy ([00b8499](https://github.com/applitools/eyes.sdk.javascript1/commit/00b8499716827518fe24abe5031ef950f0254119))
32
+
33
+
34
+ ### Code Refactoring
35
+
36
+ * 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))
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * @applitools/utils bumped to 1.6.2
42
+ #### Code Refactoring
43
+
44
+ * 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))
45
+ * @applitools/logger bumped to 2.0.12
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/socket bumped to 1.1.12
53
+ #### Code Refactoring
54
+
55
+ * 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))
56
+
57
+
58
+
59
+ * @applitools/req bumped to 1.6.2
60
+ #### Code Refactoring
61
+
62
+ * 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))
63
+
64
+
65
+
66
+ * @applitools/image bumped to 1.1.7
67
+ #### Bug Fixes
68
+
69
+ * avoid using ascii text decoder ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
70
+
71
+
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/driver bumped to 1.14.4
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/tunnel-client bumped to 1.2.4
86
+ #### Code Refactoring
87
+
88
+ * 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))
89
+
90
+
91
+
92
+ * @applitools/ec-client bumped to 1.7.13
93
+ #### Code Refactoring
94
+
95
+ * 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))
96
+
97
+
98
+
99
+ * @applitools/spec-driver-webdriver bumped to 1.0.48
100
+
101
+ * @applitools/spec-driver-puppeteer bumped to 1.2.4
102
+ #### Code Refactoring
103
+
104
+ * 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))
105
+
106
+
107
+
108
+ * @applitools/screenshoter bumped to 3.8.14
109
+ #### Bug Fixes
110
+
111
+ * allow css scrolling when taking screenshot of the webview ([2d3a257](https://github.com/applitools/eyes.sdk.javascript1/commit/2d3a2572768e7f979d16297ca316a79ab2538adb))
112
+
113
+
114
+ #### Code Refactoring
115
+
116
+ * 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))
117
+
118
+
119
+
120
+ * @applitools/core-base bumped to 1.7.2
121
+ #### Code Refactoring
122
+
123
+ * 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))
124
+
125
+
126
+
127
+ * @applitools/nml-client bumped to 1.5.14
128
+
129
+ * @applitools/ufg-client bumped to 1.9.6
130
+ #### Code Refactoring
131
+
132
+ * 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))
133
+ * drop jsdom dependency ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
134
+
135
+
136
+
137
+ * @applitools/spec-driver-selenium bumped to 1.5.62
138
+
139
+ * @applitools/core bumped to 4.0.0
140
+ #### ⚠ BREAKING CHANGES
141
+
142
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936))
143
+
144
+ #### Features
145
+
146
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936)) ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
147
+
148
+
149
+ #### Bug Fixes
150
+
151
+ * upgrade dom-snapshot ([#1969](https://github.com/applitools/eyes.sdk.javascript1/issues/1969)) ([458beb8](https://github.com/applitools/eyes.sdk.javascript1/commit/458beb803aec3e6d51484a557b3eed8f537a709d))
152
+
153
+
154
+ #### Code Refactoring
155
+
156
+ * 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))
157
+
158
+
159
+
160
+
3
161
  ## [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
162
 
5
163
 
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.1",
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.1",
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`,