@applitools/eyes-storybook 3.50.8 → 3.51.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,119 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.51.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook-v3.50.10...js/eyes-storybook@3.51.0) (2024-10-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * upgrade puppeteer to 23.5.1 ([#2457](https://github.com/Applitools-Dev/sdk/issues/2457)) ([62c2160](https://github.com/Applitools-Dev/sdk/commit/62c2160af3cd0ecc19a88c9668726d28d5d22e1a))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * storybook with yarn pnp ([#2350](https://github.com/Applitools-Dev/sdk/issues/2350)) ([1b67e8f](https://github.com/Applitools-Dev/sdk/commit/1b67e8f5e37ed97aed55f38be1827db71243e38c))
14
+ * support reloadPagePerStory ([#2438](https://github.com/Applitools-Dev/sdk/issues/2438)) ([df457af](https://github.com/Applitools-Dev/sdk/commit/df457afcaf60bf272eec5b868401a1a84c98fdd4))
15
+ * support storybook 8 ([#2293](https://github.com/Applitools-Dev/sdk/issues/2293)) ([3611510](https://github.com/Applitools-Dev/sdk/commit/3611510cb7fa56f6930f0a66f9bab41a3acf0f7a))
16
+ * trigger release ([88c4f81](https://github.com/Applitools-Dev/sdk/commit/88c4f812bd92eae61ee8ebbee5da0d64ad8c8859))
17
+ * tunnel client ([670b184](https://github.com/Applitools-Dev/sdk/commit/670b1843ce43347d97e19fa02f8bc630332ff414))
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * @applitools/snippets bumped to 2.5.1
23
+ #### Bug Fixes
24
+
25
+ * isStaleElement error ([#2567](https://github.com/Applitools-Dev/sdk/issues/2567)) ([2675086](https://github.com/Applitools-Dev/sdk/commit/2675086aa28589082249e2958942ee29a5f2ef12))
26
+ * @applitools/core-base bumped to 1.18.0
27
+ #### Features
28
+
29
+ * ability to download side by side with highlighted diffs (2419) ([#2530](https://github.com/Applitools-Dev/sdk/issues/2530)) ([e06ce69](https://github.com/Applitools-Dev/sdk/commit/e06ce699f30e9e444ac58dafdf5989ff1c96ca1c))
30
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
31
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
32
+ * @applitools/driver bumped to 1.19.3
33
+
34
+ * @applitools/spec-driver-webdriver bumped to 1.1.15
35
+
36
+ * @applitools/spec-driver-selenium bumped to 1.5.86
37
+
38
+ * @applitools/spec-driver-puppeteer bumped to 1.4.15
39
+
40
+ * @applitools/screenshoter bumped to 3.9.0
41
+ #### Features
42
+
43
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
44
+
45
+
46
+
47
+ * @applitools/nml-client bumped to 1.8.13
48
+
49
+ * @applitools/ec-client bumped to 1.9.9
50
+
51
+ * @applitools/core bumped to 4.21.0
52
+ #### Features
53
+
54
+ * add chrome emulation devices ([#2559](https://github.com/Applitools-Dev/sdk/issues/2559)) ([0499aaf](https://github.com/Applitools-Dev/sdk/commit/0499aaf3bb809d2ac0105b4493e6f6bb8730ea3f))
55
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
56
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
57
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
58
+
59
+
60
+ #### Bug Fixes
61
+
62
+ * don't remove offline execution folder after running ([654e195](https://github.com/Applitools-Dev/sdk/commit/654e195dd50dc7dab93dd907ec26d788549c6e81))
63
+
64
+
65
+
66
+
67
+ ## [3.50.9](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.50.8...js/eyes-storybook@3.50.9) (2024-09-10)
68
+
69
+
70
+ ### Dependencies
71
+
72
+ * @applitools/dom-capture bumped to 11.4.0
73
+ #### Features
74
+
75
+ * ability to capture all css props in computed style ([#2484](https://github.com/Applitools-Dev/sdk/issues/2484)) ([8769ee5](https://github.com/Applitools-Dev/sdk/commit/8769ee566f2d9e163437c7bcd385ec993f05f370))
76
+ * @applitools/driver bumped to 1.19.0
77
+ #### Features
78
+
79
+ * add support for env var APPLITOOLS_IS_IC ([#2469](https://github.com/Applitools-Dev/sdk/issues/2469)) ([87d7b5c](https://github.com/Applitools-Dev/sdk/commit/87d7b5cc1f7ea774c6b90504e85296f0681d0b1e))
80
+
81
+
82
+ #### Bug Fixes
83
+
84
+ * handle userAgent.brands returned as string ([#2453](https://github.com/Applitools-Dev/sdk/issues/2453)) ([dd6328b](https://github.com/Applitools-Dev/sdk/commit/dd6328be3e7d885714124a8e43aabaae3abecde9))
85
+ * searching for scrollable element multiple times ([#2493](https://github.com/Applitools-Dev/sdk/issues/2493)) ([d98db80](https://github.com/Applitools-Dev/sdk/commit/d98db8016c6312f467f244444c6f1a87bc09b7da))
86
+ * @applitools/tunnel-client bumped to 1.5.8
87
+ #### Bug Fixes
88
+
89
+ * upgrade execution-grid-tunnel ([#2475](https://github.com/Applitools-Dev/sdk/issues/2475)) ([e5952b4](https://github.com/Applitools-Dev/sdk/commit/e5952b4ca1bd0c065111ce1109b218f1fd68f6fc))
90
+
91
+
92
+
93
+ * @applitools/core-base bumped to 1.16.1
94
+ #### Bug Fixes
95
+
96
+ * infinity concurrency ([#2477](https://github.com/Applitools-Dev/sdk/issues/2477)) ([f488e16](https://github.com/Applitools-Dev/sdk/commit/f488e162f124acc249ed7b43b714f13c18306dc8))
97
+ * @applitools/spec-driver-webdriver bumped to 1.1.12
98
+
99
+ * @applitools/spec-driver-selenium bumped to 1.5.83
100
+
101
+ * @applitools/spec-driver-puppeteer bumped to 1.4.12
102
+
103
+ * @applitools/screenshoter bumped to 3.8.36
104
+
105
+ * @applitools/nml-client bumped to 1.8.10
106
+
107
+ * @applitools/ec-client bumped to 1.9.4
108
+
109
+ * @applitools/core bumped to 4.18.2
110
+ #### Bug Fixes
111
+
112
+ * don't call check-network when executing binary and cli ([#2491](https://github.com/Applitools-Dev/sdk/issues/2491)) ([ef00d20](https://github.com/Applitools-Dev/sdk/commit/ef00d205450b7bbe7abc1bc9bce8d6970f769091))
113
+
114
+
115
+
116
+
3
117
  ## [3.50.8](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.50.7...js/eyes-storybook@3.50.8) (2024-08-12)
4
118
 
5
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-storybook",
3
- "version": "3.50.8",
3
+ "version": "3.51.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "applitools",
@@ -54,20 +54,20 @@
54
54
  "up:framework": "cd test/fixtures/storybook-versions/${APPLITOOLS_FRAMEWORK_VERSION} && npm ci"
55
55
  },
56
56
  "dependencies": {
57
- "@applitools/core": "4.18.1",
58
- "@applitools/driver": "1.18.0",
57
+ "@applitools/core": "4.21.0",
58
+ "@applitools/driver": "1.19.3",
59
59
  "@applitools/functional-commons": "1.6.0",
60
60
  "@applitools/logger": "2.0.18",
61
61
  "@applitools/monitoring-commons": "1.0.19",
62
- "@applitools/spec-driver-puppeteer": "1.4.11",
63
- "@applitools/ufg-client": "1.12.3",
62
+ "@applitools/spec-driver-puppeteer": "1.4.15",
63
+ "@applitools/ufg-client": "1.13.1",
64
64
  "@applitools/utils": "1.7.4",
65
65
  "boxen": "4.2.0",
66
66
  "chalk": "3.0.0",
67
67
  "detect-port": "1.3.0",
68
68
  "lodash": "4.17.21",
69
69
  "ora": "3.4.0",
70
- "puppeteer": "21.11.0",
70
+ "puppeteer": "23.5.1",
71
71
  "semver": "7.6.2",
72
72
  "strip-ansi": "6.0.0",
73
73
  "throat": "6.0.2",
@@ -75,7 +75,6 @@
75
75
  },
76
76
  "devDependencies": {
77
77
  "@applitools/bongo": "^5.10.0",
78
- "@applitools/sdk-shared": "0.9.15",
79
78
  "@applitools/snaptdout": "^1.0.1",
80
79
  "@applitools/test-server": "^1.2.2",
81
80
  "@applitools/test-utils": "^1.5.17",
@@ -96,7 +95,7 @@
96
95
  "ua-parser-js": "^0.7.21"
97
96
  },
98
97
  "engines": {
99
- "node": ">=16.0.0"
98
+ "node": ">=18.0.0"
100
99
  },
101
100
  "publishConfig": {
102
101
  "access": "public"
package/src/initPage.js CHANGED
@@ -3,17 +3,10 @@ const browserLog = require('./browserLog');
3
3
  const fakeIE = require('./fakeIE');
4
4
 
5
5
  function makeInitPage({iframeUrl, config, browser, logger, getTransitiongIntoIE, getRenderIE}) {
6
- const browserContexts = [browser.defaultBrowserContext()];
7
-
8
6
  return async function initPage({pageId, pagePool}) {
9
7
  logger.log('initializing puppeteer page number ', pageId);
10
- const pages = await browserContexts[browserContexts.length - 1].pages();
11
- if (pages.length === 5) {
12
- // TODO after dropping support for Node.js 16 we can upgrade to Puppeteer >= 22 and then `createIncognitoBrowserContext` should be renamed to `createBrowserContext` (https://github.com/puppeteer/puppeteer/blob/main/packages/puppeteer-core/CHANGELOG.md#2200-2024-02-05)
13
- const browserContext = await browser.createIncognitoBrowserContext();
14
- browserContexts.push(browserContext);
15
- }
16
- const page = await browserContexts[browserContexts.length - 1].newPage();
8
+ const browserContext = await browser.createBrowserContext();
9
+ const page = await browserContext.newPage();
17
10
 
18
11
  if (config.viewportSize) {
19
12
  await page.setViewport(config.viewportSize);
package/src/waitFor.js CHANGED
@@ -1,8 +1,10 @@
1
+ const {setTimeout} = require('node:timers/promises');
2
+
1
3
  async function waitFor(page, waitOn) {
2
4
  if (typeof waitOn === 'function') {
3
5
  return await page.waitForFunction(waitOn);
4
6
  } else if (typeof waitOn === 'number') {
5
- return await page.waitForTimeout(waitOn);
7
+ return await setTimeout(waitOn);
6
8
  } else if (typeof waitOn === 'string') {
7
9
  return waitOn.startsWith('//') || waitOn.startsWith('..')
8
10
  ? await page.waitForXPath(waitOn)