How do you know a repaired browser test still protects the original requirement?
Playwright documents planner, generator and healer roles. Those roles give a team useful review points. Save the plan and expected outcome before generating tests, then use them to judge any later repair. A repaired test should still go red when the protected behaviour is broken.
Inspect the plan before the generated code
For an address-book journey, require the active delivery address to remain selected after a refresh. A plan that only adds an address and looks for a success message can pass while persistence is broken. Put the persistence check in the plan first, then inspect the saved spec to see where the generated assertion reads the selected address.
| Stage | Artefact to inspect | Question |
|---|---|---|
| Planner | Saved plan | Does it require a refresh and a read-back? |
| Generator | Generated Playwright spec | Which assertion identifies the chosen address? |
| Healer | Patch to the failing test | Would the old defect still fail after the patch? |
Try two different reasons for failure
This desk review follows the official Test Agents documentation. An informative healer trial uses one harmless label change and a separate revision that restores the wrong address. Inspect the diff the healer proposes in each case. A locator repair should preserve the final assertion. A changed expected address needs a product decision.