Documentation Index
Fetch the complete documentation index at: https://docs.testsprite.com/llms.txt
Use this file to discover all available pages before exploring further.

Two Ways UI Tests Fail on Rerun
When you rerun a UI test that previously passed, two things can have changed since the last run:| Failure mode | What it looks like |
|---|---|
| UI moved, flow still correct | A button got renamed, a form got an extra field, a sidebar got reordered. The test fails even though there’s nothing actually broken in your product. |
| The flow itself is broken | Real bug. The test catching it is the point. |
What Happens When You Turn Auto-Heal On

| Auto-Heal toggle | Behavior |
|---|---|
| Off | TestSprite runs your saved test. If the page changed in a way that breaks the test, you get a Failed status — the test won’t pass until you fix it manually. |
| On | TestSprite runs your saved test. If the page changed but the underlying flow still works, the test recovers and is marked Passed with a note that auto-heal succeeded. If the flow itself is broken, the test stays Failed (correctly). |
Turning Auto-Heal On
Auto-Heal opts in at the rerun-trigger level — there’s no project-level setting. Three places carry the toggle, and each remembers its own choice:| Surface | Where the toggle lives |
|---|---|
| Single test rerun | The Rerun this test confirmation dialog has an Auto-heal on UI drift toggle. Choose per rerun. |
| Rerun all (batch) | The batch confirmation dialog carries the same toggle; it applies to every test in the batch. |
| Scheduled runs | The schedule creation page has an Enable auto-heal toggle saved with the schedule. Set once at creation; subsequent runs use it automatically. |

Rerun
When Auto-Heal Helps and When It Doesn’t
Helps: minor UI refactor that moves things around
Helps: minor UI refactor that moves things around
Submit → Save), restructured navigation (sidebar moved into a hamburger), added a wrapper element around a form field. The flow you’re testing still works; only the references to the page are stale. Auto-Heal recovers most of these.Helps: design system swap on a page you didn't think about
Helps: design system swap on a page you didn't think about
Select. Component API changed, DOM changed, accessibility roles changed — pure refactor. Auto-Heal re-binds the test to the new component without anyone hand-editing it.Helps: copy edit you didn't think tests would care about
Helps: copy edit you didn't think tests would care about
Doesn't help: actual product bug
Doesn't help: actual product bug
Doesn't help: feature was removed
Doesn't help: feature was removed
Doesn't help: long auth/onboarding gate
Doesn't help: long auth/onboarding gate
Free vs Pro Behavior
| Free plan | Starter / Standard | |
|---|---|---|
| Plain rerun | ||
| Rerun all | ||
| Scheduled reruns | ||
| Auto-Heal toggle | Visible, locked, leads to upgrade | Toggleable per rerun |
| Recovery on UI drift |
Cost and Credits
Auto-Heal only consumes extra credits when recovery actually does work — i.e. when your test would otherwise have failed and Auto-Heal saved it. Tests that pass on plain replay cost the same as a regular rerun; nothing extra is billed.Why Frontend-Only
Auto-Heal applies only to UI (frontend) tests. Backend tests don’t need it — they run by issuing HTTP requests to your API, which doesn’t drift in the same way a UI does. Routes don’t subtly change without an explicit API version bump. When backend tests fail on rerun, the cause is almost always one of these — and the right tool is the corresponding feature:Endpoint behaves differently
Auth token expired
Required fixture was deleted
Edge Cases & Troubleshooting
Auto-Heal recovered the test but I want to know what changed
Auto-Heal recovered the test but I want to know what changed
The test always fails on rerun, even though I just regenerated it
The test always fails on rerun, even though I just regenerated it
My scheduled run uses auto-heal but I'm not on a Pro plan anymore
My scheduled run uses auto-heal but I'm not on a Pro plan anymore
Can I auto-heal an integration (multi-step) UI test?
Can I auto-heal an integration (multi-step) UI test?
The auto-heal toggle is locked even though I just upgraded
The auto-heal toggle is locked even though I just upgraded
What happens if recovery itself errors out (network, transient failure)?
What happens if recovery itself errors out (network, transient failure)?