@applitools/eyes-storybook 3.47.3 → 3.47.4

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.47.4](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.47.3...js/eyes-storybook@3.47.4) (2024-03-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * storybook upgrade puppeteer ([#2260](https://github.com/Applitools-Dev/sdk/issues/2260)) ([cb419a5](https://github.com/Applitools-Dev/sdk/commit/cb419a541cdfefaf7ab01727647ee40a002cb78a))
9
+
3
10
  ## [3.47.3](https://github.com/Applitools-Dev/sdk/compare/js/eyes-storybook@3.47.2...js/eyes-storybook@3.47.3) (2024-03-18)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-storybook",
3
- "version": "3.47.3",
3
+ "version": "3.47.4",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "applitools",
@@ -31,7 +31,6 @@
31
31
  "test:versions": "yarn build && yarn test:e2e:versions && yarn lint",
32
32
  "test:e2e": "MOCHA_GROUP=e2e run --top-level mocha --trace-warnings 'test/e2e/*.e2e.test.js'",
33
33
  "test:e2e:versions": "MOCHA_GROUP=e2e_versions run --top-level mocha --trace-warnings test/versions/*.e2e.versions.test.js",
34
- "test:e2e:versions_local": "APPLITOOLS_FRAMEWORK_VERSION=latest npx mocha --trace-warnings --require test/fixtures/storybook-versions/mochaHooks.js test/versions/*.e2e.versions.test.js",
35
34
  "test:sanity": "run --top-level mocha --trace-warnings 'test/sanity/*.test.js'",
36
35
  "test:heavy": "node bin/eyes-storybook.js -f test/fixtures/heavyStorybook/applitools.config.js",
37
36
  "storybook": "start-storybook -c test/fixtures/appWithStorybook -p 9001 -s test/fixtures",
@@ -52,7 +51,7 @@
52
51
  "changelog:init": "git config changelog.format \"* %s [[%h]($(echo $npm_package_repository_url|cut -d+ -f2|cut -d. -f1-2)/commit/%H)]\"",
53
52
  "changelog:install": "sudo apt-get install git-extras",
54
53
  "postinstall": "node src/postinstall",
55
- "up:framework": "yarn add --dev --caret @storybook/react${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
54
+ "up:framework": "cd test/fixtures/storybook-versions/${APPLITOOLS_FRAMEWORK_VERSION} && npm ci"
56
55
  },
57
56
  "dependencies": {
58
57
  "@applitools/core": "4.10.2",
@@ -68,7 +67,7 @@
68
67
  "detect-port": "1.3.0",
69
68
  "lodash": "4.17.21",
70
69
  "ora": "3.4.0",
71
- "puppeteer": "20.9.0",
70
+ "puppeteer": "21.11.0",
72
71
  "strip-ansi": "6.0.0",
73
72
  "throat": "6.0.2",
74
73
  "yargs": "17.7.2"
package/src/initPage.js CHANGED
@@ -9,6 +9,7 @@ function makeInitPage({iframeUrl, config, browser, logger, getTransitiongIntoIE,
9
9
  logger.log('initializing puppeteer page number ', pageId);
10
10
  const pages = await browserContexts[browserContexts.length - 1].pages();
11
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)
12
13
  const browserContext = await browser.createIncognitoBrowserContext();
13
14
  browserContexts.push(browserContext);
14
15
  }