Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Storybook 10 for React: Interaction, A11y & Visual Testing
New

Storybook 10 for React: Interaction, A11y & Visual Testing

Build, document and test React components with Vitest: stories, play functions, accessibility and visual tests in CI
Last updated 11/2026
English
English

What you'll learn

  • Set up Storybook 10 in a React and Vite project, and write stories for every state of a component
  • Document components automatically with Autodocs, JSDoc and MDX pages
  • Mock APIs with MSW and modules with Storybook mocks, so every story works without a backend
  • Write interaction tests with play functions, userEvent, spies and steps
  • Run every story as a test with the Vitest addon, in the browser, the terminal and GitHub Actions
  • Catch and fix accessibility problems with the a11y addon, and fail the build on new ones
  • Add visual regression tests with Vitest screenshots, and review changes safely
  • Build, share, tag and upgrade a Storybook, and choose what to test with a clear strategy

Course content

9 sections • 18 lectures • 1h 8m total length
  • Welcome: components you can test without clicking around1:30
  • Setup: the booking app, Storybook 10 and a tour of its UI4:35

Requirements

  • React basics: components, props and hooks
  • Node 22.12 or newer installed on your computer
  • A free GitHub account for the CI lecture

Description

This course contains the use of artificial intelligence: lectures 2 to 17 use a voice generated by AI from the instructor's own voice, and the slides were created with AI help. The welcome and the closing lectures are in the instructor's real voice, and every screen recording is a real session.

Test every state of your React components in a real browser, and catch the bugs nobody clicks on: broken labels, unreadable text, and CSS changes that pass every other test.

In this course you take a real React booking app from zero stories to a documented, tested component library that runs in CI, with Storybook 10 and Vitest.

Most teams test their UI by clicking around the app. That's slow, and it skips the states that are hard to reach: the error when the API fails, the empty list, the fully booked room, the user who only uses a keyboard. Those are exactly where bugs hide.

What you'll build

You start with Northwind Stays, a small booking app built with React, Vite and TypeScript, with real bugs hidden in it. Step by step you:

  • write stories for every component and every state, with args, controls, decorators and a theme switcher

  • document the library with Autodocs, JSDoc and MDX, including a design tokens page

  • render components that fetch data, with MSW mocking the network and Storybook mocking modules

  • turn stories into interaction tests with play functions, userEvent, spies and steps, and watch one of them find a real accessibility bug

  • run every story as a test with the Vitest addon: from the sidebar, the terminal, with coverage, and in GitHub Actions

  • check accessibility on every story with axe, fix real violations, and fail the build on new ones

  • add screenshot tests with Vitest that catch a visual bug every other test misses

  • build, share, tag and upgrade your Storybook, and connect it to AI coding agents with the MCP addon

How it's taught

Every lecture is a real session: VS Code, the terminal, Storybook and the browser, recorded as it happened. No slides. Every line of code you see runs as shown, on Storybook 10.6 and Vitest 4.

What you get

  • The starter project, bugs included, and the finished project with every story and test

  • A clear testing strategy you can bring to your own components

  • Lectures of 4 to 6 minutes, each focused on one skill

This course contains the use of artificial intelligence.

Who this course is for:

  • React developers who want to build and test components in isolation, without clicking through the app
  • Front-end teams starting or cleaning up a component library or design system
  • Developers who used an older Storybook and want the current Storybook 10 testing workflow with Vitest