Works with the AI Agents you already use
Playwright End-to-End Test Writer
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$7
Playwright End-to-End Test Writer
Example session with this skill installed
Run the Playwright End-to-End Test Writer skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the playwright end-to-end test
Here is what the Playwright End-to-End Test Writer skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:3: [HIGH] PW002 focused test committed (.only)
test.only('checkout works', async ({ page }) => {
fix: remove .only; set forbidOnly: !!process.env.CI in playwright.config
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:5: [HIGH] PW001 fixed sleep (waitForTimeout)
await page.waitForTimeout(3000);
fix: wait for a condition instead: await expect(locator).toBeVisible(), await page.waitForResponse(...), or expect.poll(...)
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:9: [HIGH] PW003 web-first assertion without await
expect(page.getByText('Thanks')).toBeVisible();
fix: add await: the assertion is async and otherwise never fails the test
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:6: [MEDIUM] PW005 XPath selector
await page.click('//button[@id="pay"]');
fix: prefer getByRole / getByLabel / getByText / getByTestId
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:7: [MEDIUM] PW006 layout- or build-dependent CSS selector
await page.locator('.css-1x2y3z4 > div:nth-child(2)').click({ force: true });
fix: use a user-facing locator or a data-testid; generated class names change between builds
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:7: [MEDIUM] PW008 force: true skips actionability checks
await page.locator('.css-1x2y3z4 > div:nth-child(2)').click({ force: true });
fix: find out why the element is not actionable (overlay, animation, disabled) and wait for that
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:8: [MEDIUM] PW007 legacy ElementHandle API
const el = await page.$('#total');
fix: use page.locator(...) / getBy* locators, which auto-wait and re-query
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:10: [MEDIUM] PW004 boolean/text snapshot assertion does not retry
expect(await page.getByRole('alert').isVisible()).toBe(true);
fix: use a web-first matcher: toBeVisible(), toHaveText(), toHaveValue(), toHaveCount()
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:12: [MEDIUM] PW011 waitForSelector
await page.waitForSelector('.done');
fix: use await expect(page.getByRole(...)).toBeVisible() or locator.waitFor()
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:4: [LOW] PW010 hard-coded absolute URL in goto
await page.goto('https://shop.example.com/cart');
fix: set use.baseURL in playwright.config and call page.goto('/path')
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:11: [LOW] PW009 networkidle wait
await page.waitForLoadState('networkidle');
fix: the docs discourage networkidle; assert on the element or response you need
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:13: [INFO] PW014 logs in through the UI inside a spec
fix: log in once in an auth.setup.ts project and reuse storageState (see references/auth.md)
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/testing-qa-skills/tests/fixtures/playwright-e2e/bad/checkout.spec.ts:18: [INFO] PW013 skipped/fixme test
test.skip('later', async () => {});
fix: link an issue and a reason; skipped tests rot
13 finding(s
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Write and stabilise Playwright Test end-to-end tests - user-facing locators (getByRole, getByLabel, getByTestId), web-first assertions, custom fixtures and page objects, authentication with storageState and setup projects, network mocking with page.route, test data isolation, trace viewer and UI mode debugging, CI config with retries, sharding and reports; plus a linter script that finds waitForTimeout, missing await on expect and on actions (click, fill, goto), non-retrying assertions, XPath and nth-child selectors, force clicks, networkidle and committed test.only.
Who it's for
Use when the user writes, reviews or debugs Playwright tests, asks about e2e/browser tests, flaky UI tests, logging in once for all tests, or reading a Playwright trace.
What's inside
- Tested, offline Python script(s): spec_lint.py (deterministic results, standard library only unless noted)
- Reference guides: locators.md, auth.md, fixtures-and-mocks.md, debugging.md, ci.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Decision points
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/testing-qa-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
- Playwright
Node.js
Python 3.8+