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

> Ten Playwright skills from test plan to trusted spec: plan, port TestRail/Zephyr/Xray cases, generate specs and Page Objects from the live DOM, set up auth and data, review, heal, debug. Every test is seen failing, then passing, run as CI runs; heals never change assertions.

Playwright Test Pack: Plan, Write, Heal and De-flake Tests is a paid AI agent skill pack (several skills in one listing) on Agensi by Aishwarya Rai, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Aishwarya Rai](https://www.agensi.io/creators/aishwarya-wambule)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/playwright-test-pack-plan-write-heal-and-de-flake-tests
- Tags: testing, api, end-to-end-testing, api-testing, typescript, flaky-tests, page-objects, testrail

## 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
- Node.js
- Git
- tsc
- eslint

## Known limitations

Requires Playwright and TypeScript environment. Cannot import from password-protected TestRail instances without exported files. Does not support non-Playwright frameworks.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Playwright Test Pack: Plan, Write, Heal and De-flake Tests skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Which frameworks and test management tools are compatible with this skill pack?

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.

### How does this skill prevent the 'flaky test' problem better than standard AI prompting?

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.

### What specific components are included in the playwright-test-pack?

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.

### Can I use this skill to fix existing broken tests, or is it only for new test generation?

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.

### What are the prerequisites for setting up this skill in my workflow?

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.

### How are updates handled if the Playwright API or best practices change?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
