Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/storybook-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
NODE_ENV: test
run: npm run storybook:build

- name: Build E2E Storybook
env:
NODE_ENV: test
run: npm run storybook:e2e:build

- name: Install test-runner and Playwright dependencies
run: |
npm install --no-save @storybook/test-runner@0.24.2
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
"storybook:build": "npm run --workspace @wordpress/storybook storybook:build",
"storybook:dev": "concurrently \"npm run dev\" \"wait-on .dev-ready && npm run --workspace @wordpress/storybook storybook:dev\"",
"storybook:e2e:dev": "concurrently \"npm run dev\" \"wait-on .dev-ready && npm run --workspace @wordpress/storybook-playwright storybook:dev\"",
"storybook:e2e:build": "npm run --workspace @wordpress/storybook-playwright storybook:build",
"test": "npm-run-all lint test:unit",
"test:create-block": "bash ./bin/test-create-block.sh",
"test:e2e": "npm run --workspace @wordpress/e2e-tests-playwright test:e2e",
Expand Down
4 changes: 4 additions & 0 deletions storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"bugs": {
"url": "https://github.com/WordPress/gutenberg/issues"
},
"exports": {
"./main": "./main.ts",
"./preview": "./preview.jsx"
},
"devDependencies": {
"@storybook/addon-a11y": "^10.2.8",
"@storybook/addon-docs": "^10.2.8",
Expand Down
1 change: 1 addition & 0 deletions test/storybook-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"access": "public"
},
"scripts": {
"storybook:build": "storybook build -c ./storybook -o ./build",
"storybook:dev": "storybook dev -c ./storybook -p 50241",
"test:e2e": "playwright test --config playwright.config.ts"
}
Expand Down
Loading