AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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, never page.waitForTimeout(), use auto-retrying web-first assertions, isolate every test, set baseURL in config, retries 2 in CI / 0 locally, traces on-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

  1. "Write an E2E test for the login flow" → produces storageState-based auth reuse with role-based locators.
  2. "This spec only fails in CI" → follows the flaky-tests/trace-analysis guides to inspect trace.zip and replace hard waits with web-first assertions.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/testdino-hq/playwright-skill.git
  3. Create the skill folder: mkdir -p ~/.claude/skills/playwright-core
  4. Copy the whole core directory (SKILL.md plus the 50 guide files): cp -r playwright-skill/core/* ~/.claude/skills/playwright-core/
  5. Verify the companion guides landed: ls ~/.claude/skills/playwright-core
  6. Restart Claude Code, then ask something like "write a Playwright test for the checkout page" to trigger the skill.