~/talk

Component Testing That Scales: How to Power Up Cypress With Storybook

Talkat CypressConf 2025 · 2025-10-21..10-24· [testing, component-design]
slides:none on file

Claims that combining Cypress component testing with Storybook turns documentation into executable fixtures, reusing stories instead of duplicating fixtures and eliminating iframe/server overhead. Demo shows a flight‑search app (React + TypeScript + Vite + Tailwind) using Storybook 9, Cypress 13 and Mock Service Worker to test search form and flight card variants; tests mount composed stories and run in a real browser with network stubbing and HMR, all passing in the demo. Key points: composeStories imports stories as modules, mounts in real browser with Cypress 13, reuses Storybook decorators and args.

AI-written summary · about

  1. 0:00Introduction
  2. 1:24Why component testing
  3. 3:12Cypress component testing
  4. 4:35Storybook overview
  5. 5:39Combining Cypress and Storybook
  6. 8:28When Cypress shines
  7. 10:35Storybook vs Cypress
  8. 12:43Compost stories explained
  9. 14:05Setting up Cypress
  10. 15:55Scaling the setup
  11. 17:20Mocking strategies
  12. 18:25Consistency across tests
  13. 20:10Cypress Cloud benefits
  14. 23:43Demo project overview
  15. 25:29Running the application
  16. 29:04Storybook stories
  17. 31:11Cypress component testing
  18. 34:23Running component tests
  19. 37:15End-to-end testing
  20. 41:14Demo recap
  21. 42:00Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.