Playwright Test Pack: Plan, Write, Heal and De-flake Tests

    by Aishwarya Rai

    1

    - 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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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.

    1. 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.

    2. 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=0 and CI's workers. --headed is for diagnosis only.
    • No forced clicks. No force: true or JS clicks to get past an overlay; overlays are handled with addLocatorHandler or 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    PlaywrightNode.jsGittsceslint

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Browser
    Network Access
    Environment Variables

    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.

    Listed15 days ago

    What's inside

    Frequently Asked Questions

    This pack is designed specifically for Playwright (TypeScript) environments. It works with standard CI providers like GitHub Actions and Jenkins, and can import manual test data from TestRail, Zephyr, or Xray.

    Unlike generic AI prompts that may suggest brittle 'sleep' commands, this skill enforces web-first assertions and 'seen-failing' protocols. It uses real-time DOM inspection to generate locators that are resilient to UI changes, ensuring your suite stays stable in headless CI environments.

    The purchase includes the full suite of specialized workflows: playwright-planner, case-importer, playwright-generator, spec-reviewer, playwright-healer, and the flake-hunting module. You also receive documentation on integrating these into your existing Playwright project.

    Yes, the playwright-healer can ingest failure logs and traces from red tests to identify if a failure is due to a stale locator, environment drift, or a genuine regression. It then suggests specific code corrections to restore the test to a passing state.

    Setup is straightforward: you need an existing Playwright installation and access to your target application's URL. Once the skill is connected to your agent, you can immediately begin importing cases or generating Page Objects by pointing the agent at your live site.

    Buyers receive access to all future updates and optimizations for this version of the skill pack. As Playwright releases new features or best practices change, the underlying logic is updated to ensure your generated code remains modern and efficient.

    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.