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 ask the agent to 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 the Agent for a Fix

A failed test open beside the chat, with Find the Cause and Find a Fix under its result
When you don’t know why a test failed, ask the agent. A failed or blocked result has two buttons: Find the Cause and Find a Fix. Either sends the question to the agent in the chat beside the page; you can also just type it (“Why did this fail?”, “What is this test checking?”). The agent reads the run’s results, the test’s steps, and the project’s notes, docs and code, then says which it is: your app is wrong, the test is wrong, or something got in the way. When the test is wrong it fixes it and says what it changed, and the change arrives as a proposal you apply first. It never changes what a test expects just to make it pass.

Batch Editing

Click Edit Test Plan on the toolbar to open the batch editor on the Plan tab: every test case in the plan on one screen, grouped by use case. It has two modes:
The Edit Test Plan 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, and the request goes to the agent. The tests come back as a proposal on the Plan tab, where you can edit each one, untick the ones you don’t want, and apply. See Proposed Test Cases.
  • Add Test Manually: a form with use case, title, priority, description, and a step list (action or assertion per step).
You can also just ask in the chat: “Add tests for the new export feature.” When your app has changed a lot (a major redesign, or a new API contract across many endpoints), tell the agent what changed. It explores the app again, updates the notes, and proposes the changes to the plan: new tests, changed ones, and ones to remove.

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

Proposed Test Cases

Review and apply what the agent proposes

Edit & Rerun

Every way to re-run a UI test