-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
CSF: Add Storybook test syntax (Storybook v10) #32455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
236 commits
Select commit
Hold shift + click to select a range
81e9c77
wip prototype for test fn plugin
yannbf 1803fb0
continue prototype
yannbf 78abf69
fixes
yannbf c2ecdb5
do not apply loader/plugin to svelte files
yannbf af298b5
no-op on non csf-factories
yannbf 5dc7ef7
Merge branch 'next' into yann/test-fn-prototype
yannbf 1086746
Handle type 'test' in Storybook UI
yannbf f455ffa
workaround
yannbf 5a08df8
Merge pull request #32168 from storybookjs/shilman/add-dev-cancel-event
shilman d37b759
Merge pull request #31785 from storybookjs/jeppe/fix-global-settings-…
yannbf 2390147
Merge pull request #32166 from storybookjs/docs-automocking-2
kylegach ba2ec9c
Merge pull request #32185 from storybookjs/shilman/tweak-survey
yannbf 8fe5aa6
Write changelog for 9.1.1 [skip ci]
storybook-bot 2a43712
Merge pull request #32175 from storybookjs/version-patch-from-9.1.0
yannbf a6bb54c
Bump version from "9.1.0" to "9.1.1" [skip ci]
storybook-bot ff40d89
Merge branch 'next' into yann/test-fn-prototype
yannbf bc01f93
add vitest integration support
yannbf 5f9bb80
Make vitest integration work
yannbf ff6eb10
Update ./docs/versions/next.json for v9.2.0-alpha.2
storybook-bot 462d8ba
Docs: Fix incorrect @next version specifiers
kylegach e6f92b8
Merge pull request #32213 from storybookjs/docs-snippets-next-to-late…
kylegach 629bdff
Merge pull request #32156 from storybookjs/docs-after-each
kylegach e10f871
Merge pull request #32198 from storybookjs/docs-bad-upgrading-link
kylegach d73c129
Merge pull request #32108 from gingeekrishna/fix-storybook-webpack-32105
valentinpalkovic bed61ea
Merge pull request #32224 from storybookjs/docs_fix_essentials_refere…
jonniebigodes 933b626
Merge pull request #32220 from storybookjs/yann/fix-jsx-issue-2
yannbf b53a9e1
Merge pull request #32218 from storybookjs/shilman/fix-cancel-telemetry
shilman 9c44db6
Merge pull request #32230 from sk-pub/bugfix/32229
valentinpalkovic bbf1e77
Merge pull request #31937 from mrginglymus/fix-addon-detection-windows
valentinpalkovic 190ceef
Merge pull request #32131 from JulioJ11/fix/nextjs-15-link-component
valentinpalkovic 9476827
Merge pull request #31928 from kachurun/SolidJS
shilman b5bbb76
Merge pull request #32240 from storybookjs/yann/fix-e2e-tests
yannbf fb9266c
Write changelog for 9.1.2 [skip ci]
storybook-bot c07651f
Update ./docs/versions/next.json for v9.2.0-alpha.3
storybook-bot 6f86c4a
Merge pull request #32197 from storybookjs/version-patch-from-9.1.1
yannbf 99c205c
Bump version from "9.1.1" to "9.1.2" [skip ci]
storybook-bot dda2670
Merge branch 'latest-release'
storybook-bot 3c00cc8
more experiments
yannbf cde0b32
cleanup
yannbf 6cc74e2
cleanup
yannbf 9d544a6
prepare for index type test
yannbf bef2d9e
update tests
yannbf 87446ca
update types
yannbf 110822c
update tests
yannbf b803204
support function references
yannbf 5dce7ad
add test render phase
yannbf 62cdd05
Update ./docs/versions/next.json for v10.0.0-beta.0
storybook-bot 08b3fb2
prepare for the UI work
yannbf 40df0de
updates
yannbf 8acca71
fix
yannbf 67643a8
fix
yannbf d7dc33d
fix
yannbf 991b3b5
fixes
yannbf beb32bf
fix
yannbf 4e90611
Fix types
kasperpeulen 9719ea6
Refactor test prototype
kasperpeulen 82b84e4
Improve a bit
kasperpeulen f8ff03a
Merge pull request #32238 from storybookjs/sidnioulz/issue-31436-table
valentinpalkovic b21eadc
Merge pull request #32216 from storybookjs/valentin/add-error-handlin…
valentinpalkovic 2bae930
Merge pull request #32283 from storybookjs/shilman/readme-utm-params
shilman 200d9bb
Merge pull request #32231 from storybookjs/docs_snippets_fix_incorrec…
jonniebigodes 3f0e5d7
Merge pull request #32232 from storybookjs/docs_fix_type_imports_snip…
jonniebigodes 633478c
Write changelog for 9.1.3 [skip ci]
storybook-bot 0f86613
Merge pull request #32287 from storybookjs/shilman/error-utm
shilman bbb4ffe
Merge pull request #32286 from storybookjs/shilman/configure-utm
shilman 730bbf0
Merge pull request #32284 from storybookjs/shilman/package-json-keywords
shilman 2d729ed
Merge pull request #32228 from storybookjs/docs-addon-vitest-config-typo
kylegach a0151ef
Merge pull request #32306 from storybookjs/valentin/fix-nextjs-webpac…
ndelangen eca1ace
fix unit tests
yannbf ee34e40
fix chromatic failures
yannbf 6ab99d4
Fix override in portable stories
kasperpeulen 024cde6
Merge remote-tracking branch 'origin/kasper/refactor-test-prototype' …
kasperpeulen 7def7d9
add fixes for portable stories and prepareStory
yannbf 1dba824
Next.js: Avoid multiple webpack versions at runtime
valentinpalkovic 2c99471
Merge pull request #32241 from storybookjs/version-patch-from-9.1.2
ndelangen ce39157
Bump version from "9.1.2" to "9.1.3" [skip ci]
storybook-bot 3ab5db3
Improved doTest type
kasperpeulen 8e74582
Improve test execution in StoryRender
kasperpeulen df6dce7
Merge pull request #32314 from storybookjs/kasper/refactor-test-proto…
yannbf ad68ec3
Next.js: Fix version mismatch error in Webpack
yannbf 91f0fc4
bring back all tests
yannbf 864ed55
update tests
yannbf d14ea0e
support story tests in single test run
yannbf 32f7796
update comments
yannbf 50fc0b7
fix vitest regex
yannbf 512c1e6
Refactor to see stories as tests
kasperpeulen 0358dcc
Remove some todos
kasperpeulen 620663c
Rename
kasperpeulen 91a0149
Fix
kasperpeulen 68603a9
fix
yannbf a444184
fix tests and revamp test filtering
yannbf c47c4fa
Merge pull request #32328 from storybookjs/kasper/see-tests-as-stories
yannbf 7b564ea
Add TestNode for sidebar
ghengeveld 52a3cf3
implement test metrics
yannbf 5c6ef7f
Some cleanup
ghengeveld d509fc3
Fix types, avoid any
ghengeveld 05e57e6
Add missing deps
ghengeveld 9c78432
Render test entries in sidebar and add-in wrapper entries for stories…
ghengeveld 700ec5b
Add story with play function
ghengeveld cbbd7be
Ensure wrapper gets proper children and tags
ghengeveld 5fe23d4
Fix filtering by test-fn tag
ghengeveld dfe2b36
Refactor sandbox generation script: streamline local registry handlin…
ndelangen 5aa436a
Update Storybook CLI path in sandbox generation script to use CommonJ…
ndelangen 6b8ea8f
Update SOLID generator options to disable component addition
ndelangen 05a264c
fix search item icon for story tests
yannbf f6c090e
add more stories
yannbf ebe497a
Merge pull request #32335 from storybookjs/yann/test-metrics
yannbf e335dc4
Add subtype property to distinguish tests from stories
ghengeveld 6fa8664
Add autodocs to test-fn stories for dev/test/debug
ghengeveld 8dee332
Refactor story index transformation logic for improved filtering and …
ghengeveld d9bf94a
Fix sortStory
ghengeveld b6c82bc
fix tests
yannbf 8e06a46
fix build/type issues
yannbf f70fbda
fix unit tests, write E2E
yannbf eefc73e
fix indexing of tests
yannbf 5640b6e
Merge pull request #32337 from storybookjs/sidebar-test-type
yannbf 5344b3f
fix snapshot
yannbf c166dc4
fix check
yannbf c0bad22
Merge pull request #32217 from storybookjs/docs-svelte-csf-improvements
kylegach 55ac169
Merge pull request #32320 from storybookjs/jeppe/fix-vps-dependency-r…
JReinhold 470f1fd
Merge pull request #32319 from storybookjs/copilot/fix-32318
JReinhold 58752c6
Merge pull request #32350 from storybookjs/norbert/deduplicate-babel
ndelangen 6b36e49
Merge pull request #32272 from storybookjs/kroeder/angular-config-mer…
valentinpalkovic 035243a
Write changelog for 9.1.4 [skip ci]
storybook-bot 07d688d
Update tags filter UI
ghengeveld 37a5853
Update ./docs/versions/next.json for v10.0.0-beta.1
storybook-bot e1fcd14
Update sandbox generation script to include resolutions for react and…
ndelangen c1dd869
Update sandbox generation script to include resolutions for @types/re…
ndelangen 2aca744
Merge pull request #32317 from storybookjs/version-patch-from-9.1.3
ndelangen 9f02684
Bump version from "9.1.3" to "9.1.4" [skip ci]
storybook-bot 6813ee2
Merge branch 'latest-release'
storybook-bot cf297c8
Enhance sidebar to support test entries and improve story handling
ghengeveld a95c291
Add default selection for tags in sidebar and update TagsFilter compo…
yannbf b6fbeda
add jsdocs
yannbf a632036
Remove console.log
ghengeveld 0b3d490
Enhance Button story rendering and improve sidebar node expansion logic
ghengeveld 9f16a26
Update VitestManager to use correct RegExp
ghengeveld 5705bb5
update to use defaultSelection instead
yannbf 24253d8
small rename
yannbf 8d18419
cleanup
yannbf 15e965e
Merge pull request #32373 from storybookjs/yann/add-tags-preset-to-main
yannbf 4831e99
fix build
yannbf 3e8c306
Implement indeterminate state for unrepresentable combination of defa…
ghengeveld 1a4ee93
disable save from controls in story tests
yannbf cd66148
fix build
yannbf bab3780
Add story for non-initial state
ghengeveld f570532
Fix filtering out stories which have tests
ghengeveld 7a03431
Fix default invert toggle setting
ghengeveld 07e99ae
Refactor CsfFile to support test tags and update related methods for …
yannbf b6c6e94
Make it possible to distinguish tests from stories in StoryStore.extr…
ghengeveld 85cf726
Update ./docs/versions/next.json for v10.0.0-beta.2
storybook-bot 639042c
small refactor
yannbf 3fa6097
Merge pull request #32385 from storybookjs/yann/fix-test-tags-extraction
yannbf 9b7fa17
fix tests
yannbf d61fba2
Merge branch 'yann/test-fn-prototype' into update-storystore-extract
yannbf 319ace2
Merge pull request #32388 from storybookjs/update-storystore-extract
yannbf 48cb2d9
Merge branch 'latest-release' into feature/test-syntax-in-csf
yannbf 478e4f1
undo some merge changes
yannbf 7aa48c2
Fix regression and failing E2E tests
yannbf f5e829d
fix test-runner tests
yannbf 0b21aff
fix unit tests
yannbf f793686
Fix focused test run in Storybook sidebar
yannbf 2d64830
Revert "Fix focused test run in Storybook sidebar"
yannbf 86db945
Fix focused test run in Storybook sidebar
yannbf 07beaea
remove log
yannbf c22aa61
use double spaces instead
yannbf f0cfe33
only use double space in parent stories
yannbf 3113762
fix tests
yannbf c2aedef
Merge pull request #32403 from storybookjs/yann/fix-focused-test-runs
yannbf d98408f
Implement include/exclude toggle for each tag to replace global inver…
ghengeveld 54ecd3a
Enhance codemod tests and support for non-conventional story formats …
yannbf 41c83af
Merge pull request #32414 from storybookjs/yann/fix-csf-factories-cod…
yannbf c652477
Update tags filter UI and fix filter function logic
ghengeveld 6941da2
Merge pull request #32329 from storybookjs/norbert/proceed-if-playwri…
ndelangen 4aaaeba
Merge pull request #32341 from storybookjs/docs-csf-next
kylegach 246e3ef
Merge pull request #32169 from diagramatics/satisfies-as
shilman 7a47f95
Write changelog for 9.1.5 [skip ci]
storybook-bot b52b74a
Merge branch 'feature/test-syntax-in-csf' into tags-filter-exclude
yannbf 4c348d3
Copy the default included/excluded sets to avoid accidental mutation
ghengeveld d28127c
Rename defaultSelection to defaultFilterSelection for clarity
ghengeveld 8a65895
Remove some built-in tags that will no longer exist
ghengeveld 7985f43
Revert check icon when not hovering
ghengeveld 67dfbfb
Delay tooltips
ghengeveld 00e53ca
Merge pull request #32417 from storybookjs/tags-filter-exclude
yannbf 8b9cc24
fix children calculation
yannbf 87ddc71
fix children calculation pt. 2
yannbf 3b12d84
Merge pull request #32390 from storybookjs/version-patch-from-9.1.4
shilman 56c04b0
Bump version from "9.1.4" to "9.1.5" [skip ci]
storybook-bot 9c1c6d9
Merge pull request #32356 from storybookjs/vy/sentry-release
vanessayuenn a9d51fd
Merge pull request #32438 from storybookjs/dannyhw/fix/react-native-w…
shilman 4e32f28
Merge pull request #32439 from storybookjs/norbert/fix-type-event-slo…
ndelangen 11b3884
Write changelog for 9.1.6 [skip ci]
storybook-bot c69e759
Merge pull request #32344 from storybookjs/shilman/init-version-speci…
ndelangen aac8a9d
Merge pull request #32448 from storybookjs/shilman/cli-integratino-te…
ndelangen ce2cc67
Merge pull request #32436 from storybookjs/version-patch-from-9.1.5
ndelangen 2b1bbd2
Update GitHub Actions workflow: change node-version-file quotes and u…
ndelangen 304edc3
Bump version from "9.1.5" to "9.1.6" [skip ci]
storybook-bot 05a4d33
Merge branch 'latest-release' into feature/test-syntax-in-csf
ndelangen 09c03f9
Merge branch 'next' into feature/test-syntax-in-csf
ndelangen de396c4
fix merge conflict
yannbf b5d65ed
fix e2e tests
yannbf 9f1fa3f
Merge branch 'next' into feature/test-syntax-in-csf-sb10
yannbf b868eb1
Special handling for built-in tags
ghengeveld f3a4f4a
replace tags filter play icon
yannbf ed673f0
Merge pull request #32481 from storybookjs/built-in-tags-icons
yannbf 25f0f92
Add missing subtype properties
ghengeveld 9183a9b
Change property order
ghengeveld 7913c9d
Remove subtype prop
ghengeveld ba4758a
Merge pull request #32490 from storybookjs/add-missing-subtype-props
ghengeveld 0bac997
Merge branch 'next' into feature/test-syntax-in-csf-sb10
yannbf a163b78
Make csf-factories codemod bail on transformation when story is not f…
yannbf 6c7eb65
fix tests
yannbf 8df5a47
Merge pull request #32498 from storybookjs/yann/improve-csf-factories…
yannbf 6aceace
Merge branch 'next' into feature/test-syntax-in-csf-sb10
yannbf fa3371d
fix types and import path handling
yannbf 9c8103e
Fix focused tests for stories with tests
ghengeveld 3942b0b
Remove tests from children of component, as they are attached to the …
ghengeveld 999aa03
Ensure we show the correct status icon for stories with tests
ghengeveld 9884d89
Merge pull request #32509 from storybookjs/fix-focused-tests
ghengeveld f31a74c
Merge branch 'next' into feature/test-syntax-in-csf-sb10
yannbf 669680c
fix tests
yannbf 2828dec
improve csf factories codemod
yannbf f0ce3fe
Fix built-in tags filtering
ghengeveld a1da280
add E2E tests for filter types
yannbf 0a995fa
add addons field even when there are no addons installed
yannbf fefa45e
Merge branch 'next' into feature/test-syntax-in-csf-sb10
yannbf 8a83592
only run e2e test in react
yannbf a25c124
fix keyboard shortcuts on e2e helper
yannbf 2f19c9d
Merge pull request #32526 from storybookjs/fix-built-in-tags-filtering
yannbf dea672e
Add feature flag
yannbf bc54bb1
Improve error message
yannbf 3f1f0b0
fix sandboxes
yannbf 6d28374
Fix types
yannbf 2e03469
fix lint
yannbf 5e1c061
enable test syntax in storybook:ui
yannbf 02995a7
provide features via the vitest integration
yannbf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add story with play function
- Loading branch information
commit 700ec5b59601c6cffd9b29a529ff853425bbf57e
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Text selector 'Default' relies on the meta args, but story has different args text. Should use 'Arg from story' to match the actual rendered text