Playwright Component Testing

Design, implement, migrate, and diagnose isolated React or Vue component tests with Playwright and an application-owned story gallery.

9 stars 3 forksTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add sandbaseai/workbuddy-skill --skill playwright-component-testing
Manual install
git clone --depth 1 https://github.com/sandbaseai/workbuddy-skill.git /tmp/workbuddy-skill
mkdir -p ~/.claude/skills
cp -r /tmp/workbuddy-skill/skills/playwright-component-testing ~/.claude/skills/playwright-component-testing

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Playwright Component Testing

Use this skill for isolated React or Vue component tests with ordinary Playwright tests and an application-owned story gallery. Preserve the project's framework, bundler, package manager, test conventions, and existing Playwright configuration.

## Decide whether component testing fits

Use component tests for focused UI states, event behavior, accessibility semantics, visual variants, and boundary props. Keep full navigation, authentication, multi-service journeys, and browser-policy integration in end-to-end tests. Do not duplicate the same behavior at every layer.

Before changing files, inspect the framework and version, bundler, package scripts, Playwright version and config, existing test layout, global CSS, providers, aliases, and CI commands. Confirm that the installed Playwright version exposes the required mount fixture; do not assume an API solely from the source skill.

## Build an application-owned gallery

A story is a small component wrapper for one stable scenario. A gallery page resolves a story ID, renders the story into a dedicated root, and exposes mount, update, and unmount behavior to Playwright.

- With Vite, prefer a gallery HTML entry inside the project so existing plugins, aliases, transforms, and CSS apply.
- With another bundler, use the application's supported development entry or a deliberately small standalone server. Avoid introducing a second build system unless necessary.
Read the full skill on GitHub

Details

Skill name
playwright-component-testing
Path
skills/playwright-component-testing/SKILL.md
License
MIT
Repo updated
8 September 2026

FAQ

What does the Playwright Component Testing skill do?

Design, implement, migrate, and diagnose isolated React or Vue component tests with Playwright and an application-owned story gallery.

How do I install the Playwright Component Testing skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add sandbaseai/workbuddy-skill --skill playwright-component-testing. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Playwright Component Testing popular?

It lives in sandbaseai/workbuddy-skill, which has 9 GitHub stars and 3 forks.

Related skills

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.