@applitools/eyes-storybook 3.50.9 → 3.51.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,81 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.51.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.51.0...js/eyes-storybook@3.51.1) (2024-10-29)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/screenshoter bumped to 3.9.2
9
+ #### Bug Fixes
10
+
11
+ * test in screenshoter web ([f068dbe](https://github.com/Applitools-Dev/sdk/commit/f068dbe9036163fb3e316411cfd9f47a226d7c9c))
12
+ * @applitools/core bumped to 4.21.2
13
+
14
+
15
+ ## [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)
16
+
17
+
18
+ ### Features
19
+
20
+ * upgrade puppeteer to 23.5.1 ([#2457](https://github.com/Applitools-Dev/sdk/issues/2457)) ([62c2160](https://github.com/Applitools-Dev/sdk/commit/62c2160af3cd0ecc19a88c9668726d28d5d22e1a))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * storybook with yarn pnp ([#2350](https://github.com/Applitools-Dev/sdk/issues/2350)) ([1b67e8f](https://github.com/Applitools-Dev/sdk/commit/1b67e8f5e37ed97aed55f38be1827db71243e38c))
26
+ * support reloadPagePerStory ([#2438](https://github.com/Applitools-Dev/sdk/issues/2438)) ([df457af](https://github.com/Applitools-Dev/sdk/commit/df457afcaf60bf272eec5b868401a1a84c98fdd4))
27
+ * support storybook 8 ([#2293](https://github.com/Applitools-Dev/sdk/issues/2293)) ([3611510](https://github.com/Applitools-Dev/sdk/commit/3611510cb7fa56f6930f0a66f9bab41a3acf0f7a))
28
+ * trigger release ([88c4f81](https://github.com/Applitools-Dev/sdk/commit/88c4f812bd92eae61ee8ebbee5da0d64ad8c8859))
29
+ * tunnel client ([670b184](https://github.com/Applitools-Dev/sdk/commit/670b1843ce43347d97e19fa02f8bc630332ff414))
30
+
31
+
32
+ ### Dependencies
33
+
34
+ * @applitools/snippets bumped to 2.5.1
35
+ #### Bug Fixes
36
+
37
+ * isStaleElement error ([#2567](https://github.com/Applitools-Dev/sdk/issues/2567)) ([2675086](https://github.com/Applitools-Dev/sdk/commit/2675086aa28589082249e2958942ee29a5f2ef12))
38
+ * @applitools/core-base bumped to 1.18.0
39
+ #### Features
40
+
41
+ * 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))
42
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
43
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
44
+ * @applitools/driver bumped to 1.19.3
45
+
46
+ * @applitools/spec-driver-webdriver bumped to 1.1.15
47
+
48
+ * @applitools/spec-driver-selenium bumped to 1.5.86
49
+
50
+ * @applitools/spec-driver-puppeteer bumped to 1.4.15
51
+
52
+ * @applitools/screenshoter bumped to 3.9.0
53
+ #### Features
54
+
55
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
56
+
57
+
58
+
59
+ * @applitools/nml-client bumped to 1.8.13
60
+
61
+ * @applitools/ec-client bumped to 1.9.9
62
+
63
+ * @applitools/core bumped to 4.21.0
64
+ #### Features
65
+
66
+ * add chrome emulation devices ([#2559](https://github.com/Applitools-Dev/sdk/issues/2559)) ([0499aaf](https://github.com/Applitools-Dev/sdk/commit/0499aaf3bb809d2ac0105b4493e6f6bb8730ea3f))
67
+ * capture status bar ([#2571](https://github.com/Applitools-Dev/sdk/issues/2571)) ([5e1c75e](https://github.com/Applitools-Dev/sdk/commit/5e1c75ef9cf34af80f08806a3bceaf06a94f2780))
68
+ * dynamic regions ([#2538](https://github.com/Applitools-Dev/sdk/issues/2538)) ([d8b5c48](https://github.com/Applitools-Dev/sdk/commit/d8b5c48fb35f9789c702447314dc72b4f415ade1))
69
+ * setting up SCM information automatically ([#2542](https://github.com/Applitools-Dev/sdk/issues/2542)) ([696461a](https://github.com/Applitools-Dev/sdk/commit/696461af3f8e2e3ed94eb78fed5ead6233bd16b2))
70
+
71
+
72
+ #### Bug Fixes
73
+
74
+ * don't remove offline execution folder after running ([654e195](https://github.com/Applitools-Dev/sdk/commit/654e195dd50dc7dab93dd907ec26d788549c6e81))
75
+
76
+
77
+
78
+
3
79
  ## [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)
4
80
 
5
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-storybook",
3
- "version": "3.50.9",
3
+ "version": "3.51.1",
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.2",
58
- "@applitools/driver": "1.19.0",
57
+ "@applitools/core": "4.21.2",
58
+ "@applitools/driver": "1.19.4",
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.12",
63
- "@applitools/ufg-client": "1.12.3",
62
+ "@applitools/spec-driver-puppeteer": "1.4.16",
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)