/web:e2e-testingfrom web
Writes end-to-end tests with Playwright Test for full user flow verification. Use when adding, modifying, or removing user flows in an application. Do not use for isolated component behavior — use component-testing instead.
Ships in web. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Playwright Test against the real application — real server, real browser, real data.
e2e/ at the project root, NOT co-located with sourcee2e/flow-name.spec.ts — run with saved session automaticallye2e/flow-name.unauth.spec.ts — fresh browser, no sessionbun run e2ee2e/seeds/ as JSON filestest from ./utils (shared fixture), expect from @playwright/testimport { expect } from "@playwright/test";
import { test } from "./utils";
The shared test fixture waits for [data-hydrated] after every page.goto() — buttons and handlers are ready immediately.
| API | Use |
|---|---|
page.goto("/path") | Navigate to URL |
page.getByRole("button", { name }) | Query by ARIA role |
page.getByText("text") | Query by text content |
page.getByLabel("label") | Query by form label |
locator.click() | Click interaction |
locator.fill("value") | Type into input |
expect(page).toHaveURL(pattern) | Assert current URL |
expect(locator).toBeVisible() | Assert element visible |
page.waitForURL(pattern) | Wait for navigation |
page.context().storageState() | Save auth state |
| Scenario | Test type |
|---|---|
| Multi-step user flow across pages | E2E |
| Authentication and authorization | E2E |
| CRUD lifecycle | E2E |
| API integration across pages | E2E |
| Isolated UI component behavior | Component |
| Form validation feedback | Component |
| Component state management | Component |
Rule of thumb: involves chained steps across the real app → E2E. Tests isolated UI behavior → component test.
See examples/ for complete test examples by pattern:
| Example | When to use |
|---|---|
examples/navigation.md | Page transitions, link clicks, URL assertions |
examples/form-submission.md | Form fills, submissions, validation |
examples/crud-flow.md | Create, edit, delete lifecycle |
examples/auth-persistence.md | Login setup, session reuse, unauthenticated tests |
e2e/ directory.spec.ts (authenticated) or .unauth.spec.ts (unauthenticated)test from ./utils, expect from @playwright/teste2e/seeds/ when neededWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kvnwolf/devtools --plugin web7 skills in this plugin
/agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction./component-testingWrites component tests using Vitest Browser Mode with Playwright for real-browser testing. Use when testing React components, writing browser-based tests, verifying UI behavior, testing forms, or deciding whether a component needs a test./Other plugins' skills for the same job