Skip to main content
The Test Cases list, grouped by use case with per-row status
The Test Cases page lists every test in the project, grouped by use case. You can change a test yourself or have TestSprite’s testing agent change it for you. Edits only count once the test re-runs, so saving a single case is Save & Run.

Editing a Single Test Case

A test case open as a drawer: Basics, Runtime steps, and the Preview pane
Click any row to open the test case as a drawer over the list, expandable to a full page. What you can change, and where: Editing the description is the most common refinement. Rewrite what the test should verify, click Save & Run, and TestSprite updates the steps to match and re-runs that test. Be specific:
Editing a test's description in its detail view
Before
After
For API tests, Save & Run replays the existing stored code. Click Regenerate under the prompt instead whenever your edit changes what the code must do; it rewrites the code from your edited prompt, then runs. Refine one or two tests at a time, re-run, and confirm before moving on; it’s much easier to debug than editing twenty at once.

Editing steps

The Edit steps & re-run dialog: the pass criterion above the editable step rows
The Edit steps modal lets you rewrite the flow from any step onward. Steps before the one you picked stay locked (they still run, just aren’t editable); everything after is free text. Add, remove, or rewrite steps, each typed as an action or an assertion, and adjust the pass criterion in the same modal. Saving starts a run with the new steps immediately. For UI tests, edited steps run directly, with no code-generation step in between. See Edit & Rerun for the other ways to re-run. For UI tests, Auto-Heal also absorbs UI drift on reruns, so a moved button doesn’t need an edit.

Asking AI for a Fix

The Chats panel open beside a test case
When you don’t know why a test failed, open Chats beside the test and ask, for example “Why did this fail?”, “What is this test checking?”, or “How do I fix this?”. The assistant answers from the test’s steps, the run’s recording, and the failure trace, and any change it proposes arrives as a card you approve first (see Approving Actions). It doesn’t see your application source code or PRD by default.

Batch Editing

Click Edit Test on the toolbar to open the batch editor: every test case in the plan on one screen, with a use-case nav on the left. It has two modes:
The Edit Test button on the Test Cases toolbar
Form mode: every case as an editable row with its steps expanded
Every case as a row with test name, priority, description, and each flow step editable in place. Best for touching a handful of cases in context.Save writes only the rows you changed and reports per case if any row fails, so a partial save never silently loses the rest.
Switching modes discards unsaved edits in the mode you’re leaving; the editor warns you first.

Adding Test Cases

The Add More Tests dropdown on the toolbar has both paths:
The Add More Tests dropdown, with the AI and manual paths
  • Add Tests with AI: describe what you want covered (optionally scoped to one use case), and TestSprite’s testing agent proposes a batch. Before anything is created, you can edit each proposal’s title, description, priority, and steps, untick the ones you don’t want, or hand-add rows.
  • Add Test Manually: a form with use case, title, priority, description, and a step list (action or assertion per step).
You can also add from the Coverage Map, per use case or with the per-feature ✨ AI shortcut.

Regenerating from Sources

When your app has changed so much that the plan is more outdated than fixable (a major redesign, or a new API contract across many endpoints), rebuild it. Open Test Coverage, click Regenerate from sources, and confirm. TestSprite’s testing agent discards the current use cases and extracts a new set from the project’s sources, in the same project. Then plan tests from the new use cases and run them as usual.
Regenerate From Sources on the Test Coverage page
Regenerating can’t be undone: all existing use cases and their generated test cases are removed. To keep the old suite alongside the new one, create a new project instead.

Deleting Test Cases

  • One case: the trash icon in its drawer, or the row’s context menu. A case that has never run is labeled “Remove from plan”; one with run history warns you the history goes with it.
Deleting a single case from its row
  • Many cases: select rows and use the trash button in the toolbar.
Deleting several selected cases from the toolbar
Deleting a test case permanently removes its run history too. If you might want the history later, deprioritize the case instead.

Where to Go Next

Coverage Map

Manage the plan visually, use case by use case

Edit & Rerun

Every way to re-run a UI test