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-healFive-stage pipeline
Turns requirements into an ordered test plan before any browser opens.
Walks the application and maps the real selectors, states, and flows it finds.
Reviews generated tests for weak assertions and flaky patterns before they land.
Runs every candidate test against the live app and discards anything that does not reproduce.
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.