@argos-ci/storybook 1.0.5 → 2.0.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +26 -16
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ async function argosScreenshot(page, context, options) {
38
38
  ...screenshotOptions,
39
39
  // Disable aria-busy stabilization by default
40
40
  stabilize: screenshotOptions.stabilize ?? {
41
- ariaBusy: false,
41
+ waitForAriaBusy: false,
42
42
  ...typeof screenshotOptions.stabilize === "object" ? screenshotOptions.stabilize : {}
43
43
  },
44
44
  ...fitToContentOptions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/storybook",
3
3
  "description": "Visual testing for Storybook test runner.",
4
- "version": "1.0.5",
4
+ "version": "2.0.0",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -39,35 +39,45 @@
39
39
  "node": ">=18.16.0"
40
40
  },
41
41
  "dependencies": {
42
- "@argos-ci/playwright": "4.2.3",
43
- "@argos-ci/util": "2.3.0"
42
+ "@argos-ci/playwright": "5.0.0",
43
+ "@argos-ci/util": "2.3.1"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@storybook/test-runner": "*",
47
47
  "playwright": "*"
48
48
  },
49
49
  "devDependencies": {
50
- "@argos-ci/cli": "2.5.5",
50
+ "@argos-ci/cli": "2.5.6",
51
51
  "@argos-ci/util": "workspace:*",
52
- "@storybook/addon-essentials": "^8.6.6",
53
- "@storybook/addon-interactions": "^8.6.6",
54
- "@storybook/addon-links": "^8.6.6",
55
- "@storybook/blocks": "^8.6.6",
56
- "@storybook/react": "^8.6.6",
57
- "@storybook/react-vite": "^8.6.6",
58
- "@storybook/test": "^8.6.6",
52
+ "@storybook/addon-essentials": "^8.6.9",
53
+ "@storybook/addon-interactions": "^8.6.9",
54
+ "@storybook/addon-links": "^8.6.9",
55
+ "@storybook/blocks": "^8.6.9",
56
+ "@storybook/react": "^8.6.9",
57
+ "@storybook/react-vite": "^8.6.9",
58
+ "@storybook/test": "^8.6.9",
59
59
  "@storybook/test-runner": "^0.22.0",
60
- "playwright": "^1.49.1",
60
+ "http-server": "^14.1.1",
61
+ "playwright": "^1.51.1",
61
62
  "prop-types": "^15.8.1",
62
- "storybook": "^8.6.6"
63
+ "storybook": "^8.6.9",
64
+ "wait-on": "^8.0.3"
63
65
  },
64
66
  "scripts": {
65
67
  "build": "tsup && cp ./src/index.cjs ./dist",
66
68
  "storybook": "storybook dev -p 6006",
67
69
  "build-storybook": "storybook build",
68
70
  "test-storybook": "NODE_NO_WARNINGS=1 NODE_OPTIONS=--experimental-vm-modules test-storybook",
69
- "argos-upload": "pnpm exec argos upload screenshots --build-name \"argos-storybook-e2e-node-$NODE_VERSION-$OS\"",
70
- "e2e": "pnpm run test-storybook && pnpm run argos-upload"
71
+ "install-playwright": "playwright install chromium --with-deps",
72
+ "argos-upload": "argos upload screenshots --build-name \"argos-storybook-e2e-node-$NODE_VERSION-$OS\"",
73
+ "serve-storybook": "http-server storybook-static --port 6006 --silent",
74
+ "wait-storybook": "wait-on tcp:127.0.0.1:6006",
75
+ "build-e2e": "pnpm run build-storybook --quiet && pnpm run install-playwright",
76
+ "test-e2e": "pnpm run test-storybook && pnpm run argos-upload",
77
+ "e2e": "pnpm dlx concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm run serve-storybook\" \"pnpm run wait-storybook && pnpm run test-e2e\"",
78
+ "check-types": "tsc",
79
+ "check-format": "prettier --check --ignore-unknown --ignore-path=./.gitignore --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
80
+ "lint": "eslint ."
71
81
  },
72
- "gitHead": "4f538068d5e42c378acdbaca292ab8cb1b49d031"
82
+ "gitHead": "6385df8f840714c9d77c52b2035bdbbc1b148791"
73
83
  }