Self-healing Playwright tests

QA-Core is the agentic platform; qa-core-heal is its deterministic healing engine, published standalone on npm so any Playwright suite can use it without adopting the full platform.

$ npm install qa-core-heal
View on npm ↗View source on GitHub ↗
v0.1.2MIT license0 wrong heals across the eval harness

Five-stage pipeline

Planner01Explorer02Critic03Reality-Check04Stability05
01 · Planner

Turns requirements into an ordered test plan before any browser opens.

02 · Explorer

Walks the application and maps the real selectors, states, and flows it finds.

03 · Critic

Reviews generated tests for weak assertions and flaky patterns before they land.

04 · Reality-Check

Runs every candidate test against the live app and discards anything that does not reproduce.

05 · Stability

Watches suite health over time and hands broken selectors to the deterministic healing engine.

Deterministic by design

When a selector breaks, qa-core-heal repairs it the same way a careful engineer would — and declines when it can't be sure.

DOM structure analysis

Healing candidates come from analyzing the DOM structure itself — attributes, hierarchy, and stable anchors — not from guessing.

No LLM in the healing chain

The healing path contains no language model call. No API key, no network dependency, no prompt drift.

Same input, same output

Healing is a pure function of the page and the broken selector. Run it twice, get the identical heal twice.

Refuses to heal on low confidence

Below the confidence threshold it fails loudly instead of guessing — because a wrong heal is worse than a failed test.

Measured, not promised

Validated against a six-suite eval harness, cold-install verified. Shipping as v0.1.2 on npm.

22/22
Correct heals
6/6
Correct refusals
0
Wrong heals
Bring QA-Core to your suite →See all agents
Muhammad Usman
Open to work
© 2026 Muhammad Usman ·ISTQB® CTFLUpwork Top Rated+10+ Yrs Experience