storybook-testing

Automate Storybook interaction and a11y testing for Next.js Vite projects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/SatohaCC/nextjs-mdx-blog --skill storybook-testing-satohacc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storybook-testing
Source: https://github.com/SatohaCC/nextjs-mdx-blog/tree/main/.agents/skills/storybook
Command: npx skills add https://github.com/SatohaCC/nextjs-mdx-blog --skill storybook-testing-satohacc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Storybook testing in Next.js (Vite) projects can be time consuming and error-prone without clear guidance on interactions, a11y checks, and AI integration.

Core Features & Use Cases

  • Provide play function driven interaction tests in Storybook.
  • Enable a11y checks via axe-core and Storybook a11y integration.
  • Integrate AI-assisted manifests and MCP server workflows to support AI agents.

Quick Start

Install Storybook for a Next.js/Vite project, enable a11y and vitest integration, and start writing play-based tests for stories.

Frequently Asked Questions about storybook-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write interaction tests for Storybook using play functions?

Storybook interaction tests use play functions combined with userEvent to simulate user interactions. This automates writing these tests for Next.js or Vite component stories, verifying interaction behavior across pages and app routes.

Can I run a11y checks in Storybook for Next.js Vite projects?

Yes, a11y checks are enabled via axe-core and Storybook a11y integration. This automates accessibility verification across component stories, ensuring your Next.js or Vite pages and app routes meet accessibility standards.

How does AI integration work with Storybook testing workflows?

AI integration works by generating manifests and communicating with an MCP server. This enables AI agents to assist in test scenarios, supporting automated generation and verification for Next.js Storybook projects.

Does this approach support Next.js app router and RSC flags?

Yes, Next.js app router and RSC flags are fully supported. The testing workflow includes Next.js routing mocks and specific flags to ensure component stories and interaction tests align with app router architecture.

What's the best way to automate Storybook testing for Next.js components?

The best way is combining play functions, axe-core a11y checks, and AI-assisted manifests. This automates Storybook testing by applying interaction tests, accessibility verification, and MCP workflows across your Next.js stories.