Love Story: Testing angular components with Storybook and Playwright
summary
Claims that component tests run in real browsers using Storybook + Playwright, not JSDOM or Karma. Describes building stories that wrap Angular components, creating component fixtures to inject providers and users, and navigating Storybook routes to render each story in a real browser. Tests click elements, await Angular event emissions, take screenshots and DOM snapshots/traces, debug in VS Code, run headless and in CI, and trade off Karma/Jest fake-browser speed for reliable, visual, parallelizable checks.
AI-written summary · about
chapters (46)
- 0:00Intro
- 0:59Tallys programming
- 1:24Are you guys tired
- 1:42Tallys history
- 2:25Web Components
- 2:35Component Isolation
- 3:27Tally Barak
- 3:48Love Story
- 4:21Importance of Testing
- 5:11Testing in Isolation
- 7:13Component Ecosystem
- 7:54Component Packaging
- 8:23Storybook
- 8:52Browser automation
- 9:45Browser API
- 10:36Playwright
- 12:23Three things impacting Angular
- 12:35Testing Angular components
- 13:21Testing inputs
- 13:46Testing user interaction
- 14:08Summary
- 14:37How do we do that
- 14:53No I have no idea
- 15:26Writing our test
- 16:10Rendering the component
- 16:54Writing tests
- 17:28How does Karma work
- 18:19TestRunner
- 19:18fake events
- 19:49Nodejs
- 20:10Angularjs
- 20:56Fake Browser
- 21:57Suggestion
- 22:21Test Runner
- 23:16Storybook Component Testing
- 24:12Angularjs Component Testing
- 24:52Documentation Showcase
- 25:30Playwright Test
- 25:44Playwright Test Walkthrough
- 29:27Debug Playwright
- 29:40VS Code debugger
- 30:16VS Traces
- 30:40Recap
- 31:50Improvements
- 32:09Component States
- 32:45Questions
related talks
18mStorybook and Testing
24mCost-Effective Testing with Storybook and Playwright in Vue Applications
32mStorybook Your Angular App with Nx
24mStorybook Vitest
37mBridging the gap between UX and development – A Storybook
27mTesting design systems using storybook + Storybook 7.0 sneak peeks
27mComponent-Driven Development & Visual Test Coverage
31mReinforcing your blocks: A practical guide to UI component testing
