Agents Lookup

Use cases / Software development

Repair end-to-end tests broken by UI changes

When browser tests fail after a UI change, an agent replays them, finds what moved, and proposes updated locators or steps.

DifficultyIntermediate
Setup time1-2 hours
CategorySoftware development

The use case

A redesign can break dozens of browser tests even when the product still works, and fixing them is tedious. Playwright's healer agent runs failing tests, inspects the current page, and proposes fixes such as updated locators, waits or changed steps, rerunning until the test passes or it decides the feature is actually broken. The output is a diff to the test files. A developer still reviews each change to make sure the test is checking the same behavior, because a healed test that clicks a different button can hide a real regression.

Example workflow

  1. Collect failing end-to-end tests after a UI change
  2. Run the healer agent on them in a test environment
  3. Agent proposes locator and step changes
  4. Review each diff against the intended behavior
  5. Merge fixes and file bugs for real regressions

Tools

Risks and guardrails

Sources

Written by Agents Lookup. Credits and official pages for the tools this use case names: