storybookjs / test-runner

🚕 Turn stories into executable tests
https://storybook.js.org/docs/writing-tests/interaction-testing
MIT License
229 stars 72 forks source link

[bug] Handle new tags structure #453

Open shilman opened 5 months ago

shilman commented 5 months ago

https://github.com/storybookjs/storybook/pull/26634 introduces a new tag structure where tags can be defined at the project level and the test runner should be updated to handle the new behavior. For index.json mode, nothing should need to be done, but on the source transformation side the test runner probably needs fixing.

Also, we might consider making the test tag implicit. So if no --includeTags/--excludeTags is passed, then only include stories tagged with the test tag (which will be all stories by default in 8.1+)