Why You Should Test UIS With Storybook
summary
Storybook now runs interaction tests directly in the browser using a play function that calls Testing Library assertions, and the Storybook Test Runner executes stories as smoke tests in parallel with Playwright + Jest. The interactions add-on records steps, offers click-to-debug links to deployed stories, and playback controls; the runner also produces code coverage and can inject axe for a11y checks. The project lists ~1,500 contributors and 350+ add-ons, and the browser-backed tests remove the HTML-blob debugging loop.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:48UI testing challenges
- 5:59What is Storybook
- 9:08Anatomy of a test
- 13:01Interaction tests in Storybook
- 15:47Demo of Storybook testing
- 19:16Storybook test runner
- 23:12Accessibility testing
- 26:01Code coverage reports
- 29:08Resources and tutorials
- 30:22Q&A on Storybook format
- 33:12Cross-browser testing
- 35:40Testing Library vs canvas
- 37:30Documentation in Storybook
- 40:19Storybook 7 docs update
- 41:21MDX format for interactions
- 44:14Closing and Q&A
