Self-Healing E2E Tests When a Coding Agent Renames Your Selectors
A coding agent refactors a component, renames a data-testid, and your Playwright suite goes red. Here is a three-layer setup, verified on Playwright 1.63.0 and Claude Code 2.1.197: locators that survive, a PreToolUse hook that blocks the rename, and a CI guard that lets the Playwright healer agent fix locators but never rewrite an assertion.