- Home
- Skills
- Testing & Debugging
- Playwright Test Pack: Plan, Write, Heal and De-flake Tests
Playwright Test Pack: Plan, Write, Heal and De-flake Tests
- Seen failing, then passing, run the way CI runs. Every new or healed test is made to fail once on purpose, then verified headless with --retries=0 and CI's workers.
$5
Playwright Test Pack: Plan, Write, Heal and De-flake Tests
Example session with this skill installed
This test went red on CI last night. Can you heal it?
Run 1: locator.click: Test timeout of 30000ms exceeded, waiting for getByRole('button', { name: 'Place order' }). The page snapshot shows a button reading "Place your order".
Run 2 (after someone loosened the locator to /place/i): expect(getByTestId('order-status')).toHaveText('Order placed') failed. Received: "Payment failed".
- Read your context and instructions
- Compiled the playwright test
There are two separate failures here, and only one is a test problem.
-
Stale locator (category A), healed. The button was renamed from "Place order" to "Place your order". I changed only the locator's name, to an exact match that resolves to one element. The loosened /place/i regex shouldn't be committed: it's broader than the original.
-
Possible product regression (category E), not patched. Once the click lands, the order ends in "Payment failed". I did not change toHaveText('Order placed'): editing the expected text would turn the test green and hide the bug. Check the CI trace or app logs for why payment fails, and whether it also fails by hand in the same environment. If it does, the test is right to stay red.
- await page.getByRole('button', { name: 'Place order' }).click();
+ await page.getByRole('button', { name: 'Place your order' }).click();
await expect(page.getByTestId('order-status')).toHaveText('Order placed');
Heal guard: the matcher and expected value are unchanged; no skip, fixme, force or soft assertion added. Verify the way CI runs: CI=1 npx playwright test tests/order.spec.ts --retries=0, and expect it to stay red at the status assertion until payment is fixed.
Connects securely to your tools. The creator never sees your data.
About this skill
Ten skills, plus an index that says which to use when, that take any web app from test plan to a Playwright suite you can trust.
What makes it different
- A heal guard. A heal may fix a locator, a wait or a fixture, but never what a test checks: matchers and expected values never change, and skip/fixme/force/soft assertions are never a heal. A failure that looks like a real product bug is reported as one, not patched green.
- Seen failing, then passing, run the way CI runs. Every new or healed test is made to fail once on purpose, then verified headless with
--retries=0and CI's workers.--headedis for diagnosis only. - No forced clicks. No
force: trueor JS clicks to get past an overlay; overlays are handled withaddLocatorHandleror saved consent, and submits are never retried. - Known gaps stay honest:
test.fail()with a linked issue, never a soft check that stays green. - CI-only failures diagnosed properly: trace first, then timezone, locale, viewport, fonts and workers, with the Docker image that matches your Playwright version.
- Login once with
storageState, per-worker accounts for tests that change server state, API seeding, network mocking that doesn't race or lie, popups, downloads, uploads, dialogs, iframes and visual baselines.
The skills: planner, case-importer (TestRail, Zephyr, Xray), generator (specs and Page Objects from the live DOM), fixtures, API tests, spec-reviewer, verification-discipline, healer, test-debugger and flake-hunting.
Code examples compile against @playwright/test 1.60. Not affiliated with Microsoft or the Playwright project.
Requires Playwright and TypeScript environment. Cannot import from password-protected TestRail instances without exported files. Does not support non-Playwright frameworks.
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 15 days ago
- Software
- Playwright
Node.js
Gittsceslint
Permissions
Reads test credentials from environment variables (e.g. TEST_EMAIL, TEST_PASSWORD) and sends them only to the app under test, never anywhere else. Runs Playwright and git commands in your project; writes test, fixture and page-object files there.
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.