playwright-test-writer
/playwright-test-writer
Write or extend Playwright end-to-end tests for a web page or feature. Use when the user asks to add, write, improve or fix Playwright, e2e or browser tests.
- Author
- skillsinaction ↗
- Repository
- skills-in-action ↗
- Licence
- MIT
- Last repository change
- 02.11.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/check.mjs
What it does and when to use it
Write or extend Playwright end-to-end tests for a web page or feature. Use when the user asks to add, write, improve or fix Playwright, e2e or browser tests.
Original author description
Write or extend Playwright end-to-end tests for a web page or feature. Use when the user asks to add, write, improve or fix Playwright, e2e or browser tests.
How it works
- Workflow
SKILL.md preview
---
name: playwright-test-writer
description: Write or extend Playwright end-to-end tests for a web page or feature. Use when the user asks to add, write, improve or fix Playwright, e2e or browser tests.
---
# Playwright test writer
## Workflow
1. Read the spec first (SPEC.md, README, ticket), then the page. Expected values come
from the spec, never from whatever the page shows today.
2. List every rule as a behaviour before writing code. For each rule cover:
- the happy path,
- each boundary (just below, exactly at, just above),
- invalid input and the exact error text,
- interactions between rules (e.g. two discounts, replace vs. stack).
3. Write tests in tests/*.spec.ts:
- locators: getByRole, getByLabel, getByText, or getByTestId. No CSS or XPath chains.
- assertions: web-first only, e.g. `await expect(locator).toHaveText('€25.45')`.
- assert exact values (full strings, two decimals), not "contains a number".
- no waitForTimeout, no test.only, one behaviour per test, clear names.
4. Run `node .claude/skills/playwright-test-writer/scripts/check.mjs`
(or the same path under .agents/skills). It runs the suite and lints for smells.
Fix until it reports PASS.
5. Finish with a short table: rule -> test names.
See reference/patterns.md for locator and assertion examples.
Files in this package (3)
- SKILL.md 1 KB
- reference/patterns.md 1 KB
- scripts/check.mjs 1 KB
Versions
The database has no other skills named playwright-test-writer.
Database snapshot: 13.11.2026 · package version f94edc199d9d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 5 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95e2e-test-writer
Write comprehensive end-to-end tests using Playwright with page object model pattern. Use when creating browser-based tests for user workflows. - 95playwright-test
Creates Playwright browser-based end-to-end tests for Next.js pages covering complete user journeys from start to finish. Use when the user asks to "write Playwright tests", "create e2e tests", "write integration tests", "test in the browser", or mentions end-to-end testing,… - 95playwright-e2e-tests
Write and maintain Playwright end-to-end tests for the Onyx application. Use when creating new E2E tests, debugging test failures, adding test coverage, or when the user mentions Playwright, E2E tests, or browser testing. - 100generate
Generate Playwright tests. Use when user says \"write tests\", \"generate tests\", \"add tests for\", \"test this component\", \"e2e test\", \"create test for\", \"test this page\", or \"test this feature\". - 100generate
Generate Playwright tests. Use when user says "write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", or "test this feature". - 100generate
Generate Playwright tests. Use when user says "write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", or "test this feature".