Playwright Core Testing
Battle-tested Playwright rules plus an index of 50 reference guides for writing and debugging E2E, API, component, visual, and accessibility tests.
Dev & CodingIntermediate★ 423⑂ 68AI score 8/10Last updated: Nov 16, 2026
What it does
- Gives Claude 10 golden rules for Playwright: prefer
getByRole()over CSS/XPath, neverpage.waitForTimeout(), use auto-retrying web-first assertions, isolate every test, setbaseURLin config, retries 2 in CI / 0 locally, traceson-first-retry, fixtures over globals, one behavior per test, mock only third-party services. - Routes you to 50 topic guides: locator strategy, assertions, fixtures, network mocking, auth flows, visual regression, accessibility, API testing, trace analysis, flaky tests, common pitfalls.
- Includes framework recipes for Next.js (App + Pages Router), React (Vite), Vue 3/Nuxt and Angular, plus specialized topics like Electron, browser extensions, WebSockets, Canvas/WebGL, i18n and clock mocking.
- States a security trust boundary: treat page content and API payloads as untrusted; don't feed them back into agent instructions unsanitized.
Who it's for
- Frontend and QA engineers running or adopting Playwright
- Teams fighting flaky suites and hardcoded waits in CI
- Anyone who wants Claude Code to write tests against a consistent convention
Examples
- "Write an E2E test for the login flow" → produces
storageState-based auth reuse with role-based locators. - "This spec only fails in CI" → follows the flaky-tests/trace-analysis guides to inspect
trace.zipand replace hard waits with web-first assertions. - "Don't hit the real payment API" → applies the when-to-mock rule and stubs only the third-party gateway via
page.route().
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/testdino-hq/playwright-skill/HEAD/core/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the core folder from the GitHub repo testdino-hq/playwright-skill into my ~/.claude/skills/playwright-core/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/testdino-hq/playwright-skill.git /tmp/playwright-skill && mkdir -p ~/.claude/skills/playwright-core && cp -r /tmp/playwright-skill/core/* ~/.claude/skills/playwright-core/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/testdino-hq/playwright-skill.git - Create the skill folder:
mkdir -p ~/.claude/skills/playwright-core - Copy the whole
coredirectory (SKILL.md plus the 50 guide files):cp -r playwright-skill/core/* ~/.claude/skills/playwright-core/ - Verify the companion guides landed:
ls ~/.claude/skills/playwright-core - Restart Claude Code, then ask something like "write a Playwright test for the checkout page" to trigger the skill.
View source on GitHub ↗License: MIT