Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.
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.
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:
What
Where
Priority
The Basics section: High / Medium / Low
Test Description (Prompt)
The Basics section: the natural-language statement of what the test verifies, which the run is judged against
Steps
The Edit steps modal (see below)
Code
The Code tab
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:
Before
Verify user can log in with valid credentials.
After
Verify the Sign In link directs users to the login page, thatsubmitting email "test@example.com" + password "test123" lands themon the dashboard, and that the navbar avatar shows after login.
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 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
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:
Form mode
YAML mode
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.
The whole plan as one YAML document. Best for sweeping edits: renumbering steps across many cases, find-and-replace on a URL, or pasting cases between projects.
useCases: - useCase: Authentication slug: authentication testCases: - id: TC001 priority: High name: Login with valid credentials description: Verify that submitting valid credentials lands the user on the dashboard. steps: - Navigate to the login page - Enter "user@example.com" and the test password - Click the Sign In button - assert: The dashboard page is displayed
The rules (also in the editor’s header comment):
A plain step line is an action; assert: ... marks an assertion.
Add a case by copying an existing one and removing its id line.
Remove a case by deleting its block.
Leave id and slug values as they are; they map your edits back to existing cases.
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:
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.
Many cases: select rows and use the trash button in the toolbar.
Deleting a test case permanently removes its run history too. If you might want the history later, deprioritize the case instead.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"TestSprite Documentation","colors":{"primary":"#151916","light":"#F5F5F4","dark":"#171B18"},"logo":{"light":"https://mintcdn.com/testspriteinc/-Pguo2A-jFFq2l4c/logo/light-mode.svg?fit=max\u0026auto=format\u0026n=-Pguo2A-jFFq2l4c\u0026q=85\u0026s=ae3fa561b9ee31984d80d787a7fa166e","dark":"https://mintcdn.com/testspriteinc/-Pguo2A-jFFq2l4c/logo/dark-mode.svg?fit=max\u0026auto=format\u0026n=-Pguo2A-jFFq2l4c\u0026q=85\u0026s=b8554ece60a00f55f9ce274355c66df8"},"favicon":{"light":"https://mintcdn.com/testspriteinc/3tFsKENc_ol65zBe/favicon-light.svg?fit=max\u0026auto=format\u0026n=3tFsKENc_ol65zBe\u0026q=85\u0026s=f9f0ae65cbbf1b93530a042cda417060","dark":"https://mintcdn.com/testspriteinc/3tFsKENc_ol65zBe/favicon.svg?fit=max\u0026auto=format\u0026n=3tFsKENc_ol65zBe\u0026q=85\u0026s=e8840d7f1d55131c5e93a60d9ef34334"},"appearance":{"default":"system","strict":false},"background":{"color":{"light":"#FBFBF9","dark":"#131313"}},"navbar":{"primary":{"type":"button","label":"Sign In","href":"https://www.testsprite.com/auth/cognito/sign-in"}},"footer":{"socials":{"x":"https://x.com/Test_Sprite","github":"https://github.com/TestSprite/Docs","linkedin":"https://linkedin.com/company/testsprite","discord":"https://discord.gg/QQB9tJ973e"}},"fonts":{"heading":{"family":"Newsreader","weight":400},"body":{"family":"Geist","weight":400}},"contextual":{"options":["copy"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://www.testsprite.com/"},{"anchor":"Community","icon":"comments","href":"https://discord.gg/QQB9tJ973e"},{"anchor":"Contact Us","icon":"address-book","href":"https://calendly.com/contact-hmul/schedule"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"testspriteinc","hasAudioNarration":false,"actualSubdomain":"testspriteinc","customDomains":["docs.testsprite.com"],"gitSource":{"type":"github","owner":"testsprite","repo":"docs","deployBranch":"v1.0","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6b07ad40ef987dacf5f7d611","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Core","count":56},{"language":"default","tag":"Web Portal","count":38},{"language":"default","tag":"MCP Server","count":25},{"language":"default","tag":"CLI","count":23},{"language":"default","tag":"Getting Started","count":16},{"language":"default","tag":"UI Testing","count":10},{"language":"default","tag":"Automation \u0026 Integrations","count":8},{"language":"default","tag":"API Testing","count":8},{"language":"default","tag":"Concepts","count":7},{"language":"default","tag":"Tests","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"styles/border-radius.css","content":":root{--border-radius-sm: 2px;--border-radius-md: 4px;--border-radius-lg: 6px;--border-radius-xl: 8px;--border-radius-2xl: 10px}.rounded,.rounded-sm,.rounded-md,.rounded-lg,.rounded-xl,.rounded-2xl,.rounded-3xl,.rounded-full{border-radius:var(--border-radius-lg)!important}.rounded-sm{border-radius:var(--border-radius-sm)!important}.rounded,.rounded-md{border-radius:var(--border-radius-md)!important}.rounded-lg{border-radius:var(--border-radius-lg)!important}.rounded-xl{border-radius:var(--border-radius-xl)!important}.rounded-2xl,.rounded-3xl{border-radius:var(--border-radius-2xl)!important}div[class*=\"Frame\"],div[class*=\"frame\"],section[class*=\"Frame\"],section[class*=\"frame\"],article[class*=\"Frame\"],article[class*=\"frame\"]{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}div[class*=\"Frame\"] img,div[class*=\"frame\"] img,section[class*=\"Frame\"] img,section[class*=\"frame\"] img{border-radius:var(--border-radius-lg)!important}div[class*=\"Frame\"] iframe,div[class*=\"frame\"] iframe,section[class*=\"Frame\"] iframe,section[class*=\"frame\"] iframe{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}iframe,iframe[class],iframe[className],iframe.w-full,iframe.aspect-video,iframe.rounded-xl,iframe[class*=\"rounded\"]{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}div[class*=\"content\"] iframe,main iframe,article iframe,section iframe{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}button,.button,a[role=\"button\"],[class*=\"Button\"]{border-radius:var(--border-radius-md)!important}nav button,nav a[role=\"button\"],header button,header a[role=\"button\"]{border-radius:var(--border-radius-md)!important}button[class*=\"icon\"],.icon-button,[class*=\"IconButton\"]{border-radius:var(--border-radius-sm)!important}[class*=\"CardGroup\"],[class*=\"card-group\"]{border-radius:0!important}div[class*=\"Columns\"],div[class*=\"columns\"]{border-radius:0!important}a[class*=\"Card\"],a[class*=\"card\"]{border-radius:var(--border-radius-lg)!important}div[class*=\"Card\"]:not([class*=\"Group\"]):not([class*=\"Columns\"]),article[class*=\"Card\"]:not([class*=\"Group\"]),section[class*=\"Card\"]:not([class*=\"Group\"]){border-radius:var(--border-radius-lg)!important}.card{border-radius:var(--border-radius-lg)!important}[class*=\"feature\"]:not([class*=\"group\"]),[class*=\"Feature\"]:not([class*=\"group\"]),.feature-card{border-radius:var(--border-radius-lg)!important}pre,code[class*=\"language-\"],pre[class*=\"language-\"],div[class*=\"CodeBlock\"],[class*=\"codeblock\"],.code-block{border-radius:var(--border-radius-md)!important}code:not([class*=\"language-\"]),code:not(pre code){border-radius:var(--border-radius-sm)!important}[class*=\"code-toolbar\"],button[class*=\"copy\"],[class*=\"CopyButton\"]{border-radius:var(--border-radius-sm)!important}.code-block [data-fade-overlay]{display:none!important}.code-block [data-component-part=\"scroll-area-viewport\"][data-overflow-x-end]{-webkit-mask-image:linear-gradient(to right, #000 calc(100% - 120px), transparent calc(100% - 40px));mask-image:linear-gradient(to right, #000 calc(100% - 120px), transparent calc(100% - 40px))}[class*=\"Callout\"],[class*=\"callout\"],[class*=\"Alert\"],[class*=\"alert\"],.note,.tip,.warning,.info,aside{border-radius:var(--border-radius-lg)!important}input[type=\"text\"],input[type=\"email\"],input[type=\"password\"],input[type=\"search\"],input[type=\"url\"],input[type=\"tel\"],input[type=\"number\"],textarea,select,[class*=\"Input\"],[class*=\"input\"]{border-radius:var(--border-radius-md)!important}[class*=\"Search\"] input,[class*=\"search\"] input,input[placeholder*=\"Search\"],input[placeholder*=\"search\"]{border-radius:var(--border-radius-xl)!important}img,picture,[class*=\"Image\"],[class*=\"image\"]{border-radius:var(--border-radius-md)!important}video,iframe,frame{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}*[class*=\"Frame\"],*[class*=\"frame\"],div[class*=\"Frame\"],div[class*=\"frame\"],section[class*=\"Frame\"],section[class*=\"frame\"]{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}html frame,html frameset,body frame,body frameset,div[class*=\"frame-container\"],div[class*=\"frame-wrapper\"],div[class*=\"Frame-container\"],div[class*=\"Frame-wrapper\"],section[class*=\"frame\"],section[class*=\"Frame\"],article[class*=\"frame\"],article[class*=\"Frame\"]{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}frame,iframe,frameset{border:none!important;border-radius:var(--border-radius-lg)!important;overflow:hidden!important}embed,object{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}div[style*=\"border\"],div[style*=\"frame\"],iframe[style*=\"border\"],iframe[style*=\"frame\"]{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}*{\u0026[class*=\"frame\"]{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}}frame[style],iframe[style],frameset[style]{border-radius:var(--border-radius-lg)!important;overflow:hidden!important}frame *,iframe *,frameset *{border-radius:inherit!important}[class*=\"sidebar\"] a,[class*=\"Sidebar\"] a,nav[class*=\"nav\"] a,aside[class*=\"nav\"] a{border-radius:var(--border-radius-sm)!important}[class*=\"sidebar\"] a[class*=\"active\"],[class*=\"Sidebar\"] a[class*=\"active\"],nav a[class*=\"active\"]{border-radius:var(--border-radius-sm)!important}[class*=\"Tab\"],[class*=\"tab\"],[role=\"tab\"]{border-radius:var(--border-radius-sm)!important}[class*=\"TabPanel\"],[role=\"tabpanel\"]{border-radius:var(--border-radius-md)!important}[class*=\"Modal\"],[class*=\"modal\"],[class*=\"Dialog\"],[class*=\"dialog\"],[role=\"dialog\"],[role=\"alertdialog\"]{border-radius:var(--border-radius-xl)!important}[class*=\"overlay\"],[class*=\"Overlay\"],[class*=\"backdrop\"],[class*=\"Backdrop\"]{backdrop-filter:blur(8px)}[class*=\"Badge\"],[class*=\"badge\"],[class*=\"Tag\"],[class*=\"tag\"],.badge,.pill{border-radius:var(--border-radius-xl)!important}[class*=\"status\"],[class*=\"Status\"],span[class*=\"indicator\"]{border-radius:50%!important}[class*=\"Dropdown\"],[class*=\"dropdown\"],[class*=\"Menu\"],[class*=\"menu\"],[role=\"menu\"],[class*=\"Popover\"],[class*=\"popover\"]{border-radius:var(--border-radius-md)!important}[role=\"menuitem\"],[class*=\"MenuItem\"],[class*=\"menuitem\"]{border-radius:var(--border-radius-sm)!important}[class*=\"Tooltip\"],[class*=\"tooltip\"],[role=\"tooltip\"]{border-radius:var(--border-radius-sm)!important}[class*=\"Progress\"],[class*=\"progress\"],progress{border-radius:var(--border-radius-xl)!important}[class*=\"Loader\"],[class*=\"loader\"],[class*=\"Spinner\"],[class*=\"spinner\"]{border-radius:50%!important}hr,[class*=\"Divider\"],[class*=\"divider\"],[class*=\"Separator\"]{border-radius:var(--border-radius-sm)!important}footer [class*=\"container\"],footer section{border-radius:var(--border-radius-lg)!important}header [class*=\"container\"]{border-radius:var(--border-radius-lg)!important}[class*=\"Step\"],[class*=\"step\"]{border-radius:var(--border-radius-lg)!important}[class*=\"anchor\"] a,a[class*=\"anchor\"]{border-radius:var(--border-radius-sm)!important}[class*=\"ParamField\"],[class*=\"param-field\"]{border-radius:var(--border-radius-md)!important}[class*=\"ResponseField\"],[class*=\"response-field\"]{border-radius:var(--border-radius-md)!important}@media (max-width: 768px){:root{--border-radius-sm: 4px;--border-radius-md: 8px;--border-radius-lg: 12px;--border-radius-xl: 16px;--border-radius-2xl: 20px}}kbd{white-space:nowrap!important}@media (prefers-color-scheme: dark){kbd{background-color:#2F3033!important;color:#f9fafb!important;border:1px solid #3a3a3a!important}}[data-theme=\"dark\"] kbd,.dark kbd{background-color:#2F3033!important;color:#f9fafb!important;border:1px solid #3a3a3a!important}#sidebar ul.sidebar-group>li>ul{border-left:1px solid rgb(0 0 0 / 0.1);margin-left:calc(1.5rem - 0.5px);padding-left:0.375rem}#sidebar ul.sidebar-group>li>ul a{padding-left:0.5rem!important}.dark #sidebar ul.sidebar-group>li>ul,html.dark #sidebar ul.sidebar-group>li>ul,[data-theme=\"dark\"] #sidebar ul.sidebar-group>li>ul{border-left-color:rgb(255 255 255 / 0.14)}#sidebar,#sidebar a,#sidebar button,#sidebar .sidebar-group-header{font-size:13px;line-height:1.45}#table-of-contents,#table-of-contents a,#table-of-contents span,#table-of-contents div{font-size:13px;line-height:1.45}#sidebar .sidebar-group-header{font-weight:500}html,*,*::before,*::after{scrollbar-width:none;-ms-overflow-style:none}::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}#sidebar a,#sidebar ul.sidebar-group>li>button{border-radius:var(--border-radius-xl)!important}.card .prose{font-size:14px;line-height:1.5}.steps .step>div>p.font-semibold{font-weight:500}"},{"filePath":"styles/agent-loop.css","content":".agent-loop{--loop-ink: #1b3327;--loop-muted: #40584a;--loop-line: #799482;--loop-edge: #cfdfd2;--loop-surface: #fff;--loop-wash: #f2f7f2;--loop-action: #205c3b;--loop-action-ink: #fff;--loop-pass: #267347;--loop-fail: #9b4b22;margin:1.75rem 0;padding:clamp(16px, 4%, 32px);border:1px solid var(--loop-edge);border-radius:14px;background:var(--loop-wash);color:var(--loop-ink);text-align:center}:is(.dark,[data-theme=\"dark\"]) .agent-loop{--loop-ink: #eef6ee;--loop-muted: #b7c6bb;--loop-line: #72927d;--loop-edge: #38483d;--loop-surface: #232d26;--loop-wash: #1b211d;--loop-action: #9cddb0;--loop-action-ink: #13311f;--loop-pass: #a2deb3;--loop-fail: #efb38e}.agent-loop-question{max-width:32ch;margin:0 auto;color:var(--loop-ink);font-size:clamp(17px, 1.5vw, 21px);font-weight:600;line-height:1.3;text-wrap:balance}.agent-loop-pair{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:12px}.agent-loop-path,.agent-loop-outcome{padding:12px clamp(7px, 3%, 20px);font-size:14px;line-height:1.45}.agent-loop-path{border:1px solid var(--loop-edge);border-radius:8px;background:var(--loop-surface)}.agent-loop-pair b{display:block;margin-bottom:4px;color:var(--loop-ink);font-size:15px;font-weight:600}.agent-loop-pair b+span{display:block;max-width:34ch;margin:0 auto;color:var(--loop-muted);text-wrap:pretty}.agent-loop-fork{position:relative;height:28px}.agent-loop-fork::before,.agent-loop-fork::after{position:absolute;content:\"\"}.agent-loop-fork::before{top:0;bottom:50%;left:50%;border-left:1.5px solid var(--loop-line)}.agent-loop-fork::after{inset:50% calc(25% - 3px) 0;border:1.5px solid var(--loop-line);border-bottom:0;border-radius:6px 6px 0 0}.agent-loop-join{transform:rotate(180deg)}.agent-loop a.agent-loop-run{display:table;margin:0 auto;padding:9px 18px;border-radius:7px;background:var(--loop-action);color:var(--loop-action-ink);font-family:\"IBM Plex Mono\", ui-monospace, monospace;font-size:15px;font-weight:600;text-decoration:none}.agent-loop-run:is(:hover,:focus-visible){outline:2px solid var(--loop-action);outline-offset:3px}.agent-loop-run::before{display:inline-block;margin-right:9px;border-block:5px solid transparent;border-left:8px solid currentColor;content:\"\"}.agent-loop-outcome{padding-block:4px 0}.agent-loop-mark{display:inline-grid;width:17px;height:17px;place-content:center;margin-right:3px;border:1px solid currentColor;border-radius:50%;color:var(--loop-pass);font:600 13px/1 system-ui, sans-serif}.agent-loop-outcome:last-child .agent-loop-mark{color:var(--loop-fail)}"},{"filePath":"styles/brand.css","content":"@font-face{font-family:\"Geist Mono\";font-style:normal;font-weight:400;font-display:swap;src:url(\"/fonts/geist-mono/geist-mono-latin-400-normal.woff2\") format(\"woff2\");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,\n U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}@font-face{font-family:\"Geist Mono\";font-style:normal;font-weight:400;font-display:swap;src:url(\"/fonts/geist-mono/geist-mono-symbols2-400-normal.woff2\") format(\"woff2\");unicode-range:U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F}@font-face{font-family:\"Geist\";font-style:normal;font-weight:500 700;font-display:swap;src:url(\"/fonts/geist/geist-latin-wght-normal.woff2\") format(\"woff2\");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,\n U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}code,pre{font-family:\"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}#page-title,#content h1,#content h2,#content h3{font-weight:400}#content h4,#content h5,#content h6,#content [data-component-part=\"card-title\"],#sidebar-title{font-family:var(--font-family-body-custom, \"Geist\", system-ui, sans-serif);font-weight:500}#table-of-contents :is(h2,button),#table-of-contents :is(h2,button) *{font-family:var(--font-family-body-custom, \"Geist\", system-ui, sans-serif);font-weight:500}.dark #topbar-cta-button a>span:first-child{background-color:#FAFAFA}.dark #topbar-cta-button a span,.dark #topbar-cta-button a svg{color:#131313}div.callout:is([data-callout-type=\"tip\"],[data-callout-type=\"check\"]){--callout-ink: #047857;--callout-wash: rgb(110 231 183 / 0.26)}div.callout[data-callout-type=\"warning\"]{--callout-ink: #B45309;--callout-wash: rgb(252 211 77 / 0.25)}div.callout[data-callout-type=\"danger\"]{--callout-ink: #BE123C;--callout-wash: rgb(253 164 175 / 0.3)}div.callout[data-callout-type=\"note\"]{--callout-ink: #0062AA;--callout-wash: rgb(52 139 219 / 0.08)}.dark div.callout:is([data-callout-type=\"tip\"],[data-callout-type=\"check\"]){--callout-ink: #34D399;--callout-wash: rgb(110 231 183 / 0.13)}.dark div.callout[data-callout-type=\"warning\"]{--callout-ink: #FBBF24;--callout-wash: rgb(252 211 77 / 0.13)}.dark div.callout[data-callout-type=\"danger\"]{--callout-ink: #FB7185;--callout-wash: rgb(253 164 175 / 0.12)}.dark div.callout[data-callout-type=\"note\"]{--callout-ink: #60A5FA;--callout-wash: rgb(52 139 219 / 0.2)}div.callout:is([data-callout-type=\"tip\"],[data-callout-type=\"check\"],[data-callout-type=\"warning\"],[data-callout-type=\"danger\"],[data-callout-type=\"note\"]){background-color:var(--callout-wash);border-color:color-mix(in srgb, var(--callout-ink) 22%, transparent)}div.callout:is([data-callout-type=\"tip\"],[data-callout-type=\"check\"],[data-callout-type=\"warning\"],[data-callout-type=\"danger\"],[data-callout-type=\"note\"]) [data-component-part=\"callout-icon\"] svg{color:var(--callout-ink)}div.callout:is([data-callout-type=\"tip\"],[data-callout-type=\"check\"],[data-callout-type=\"warning\"],[data-callout-type=\"danger\"],[data-callout-type=\"note\"]) [data-component-part=\"callout-content\"]{color:rgb(var(--primary, 21 25 22))}.dark div.callout:is([data-callout-type=\"tip\"],[data-callout-type=\"check\"],[data-callout-type=\"warning\"],[data-callout-type=\"danger\"],[data-callout-type=\"note\"]) [data-component-part=\"callout-content\"]{color:rgb(var(--primary-light, 245 245 244))}#header .eyebrow{color:#1F6A75}.dark #header .eyebrow{color:#7FC1C9}"}]}
{"page":{"pagePath":"web-portal/core/working-with-test/managing-test-cases","slug":"/web-portal/core/working-with-test/managing-test-cases","pageMetadata":{"title":"Managing Test Cases","description":"Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.","href":"/web-portal/core/working-with-test/managing-test-cases"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CodeBlock,Columns,Frame,Heading,OptimizedImage,Tab,Table,Tabs,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/managing-test-case-overview.png?fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=30afa9cf738e15343e8b8696f7bf44d1`,alt:`The Test Cases list, grouped by use case with per-row status`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`952`,height:`952`,\"data-path\":`images/managing-test-case-overview.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/managing-test-case-overview.png?w=280\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=ee18510545922e83a8d059b749cd6306 280w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/managing-test-case-overview.png?w=560\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=eb4badb43fe5ba940c5aa0a4929e8aea 560w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/managing-test-case-overview.png?w=840\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=a4e20ec45b156dda09e998e2c72243e0 840w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/managing-test-case-overview.png?w=1100\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=97d51eed33b964921d48a7a828f3ac5f 1100w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/managing-test-case-overview.png?w=1650\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=1add13e93001b66bfd40879fcf62e6f9 1650w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/managing-test-case-overview.png?w=2500\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=6b757f030f9b1e861085b0b32fb5c25e 2500w`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(`kbd`,{children:`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 `,_jsx(_components.strong,{children:`Save \u0026 Run`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`To…`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Use`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Refocus or extend one test`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.a,{href:`#editing-a-single-test-case`,children:`Edit its description`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Rewrite a test’s flow step by step`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.a,{href:`#editing-steps`,children:`Edit its steps`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Understand a failure and get a fix`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.a,{href:`#asking-the-agent-for-a-fix`,children:`Ask the agent`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Change many tests at once`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.a,{href:`#batch-editing`,children:`Batch editing`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Add coverage`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.a,{href:`#adding-test-cases`,children:`Adding test cases`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`editing-a-single-test-case`,children:`Editing a Single Test Case`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-edit-single.png?fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=732ffc692d5399702a1428337d794a41`,alt:`A test case open as a drawer: Basics, Runtime steps, and the Preview pane`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`952`,height:`952`,\"data-path\":`images/managing-test-case-edit-single.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-edit-single.png?w=280\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=1fd8a95d265077f5f1a7f2bd5e3a9912 280w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-edit-single.png?w=560\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=dfc6030cc43a31f16a225f3f14487c2a 560w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-edit-single.png?w=840\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=c0bf90c0deb3c9be252cba20d2d512fa 840w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-edit-single.png?w=1100\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=38aa09e2453f654ac1cb4789e9b9982b 1100w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-edit-single.png?w=1650\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=c41429d485acbb4094e3b505b689d671 1650w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-edit-single.png?w=2500\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=c761a3be2cc16a01ba58f658df8f9fb1 2500w`})}),`\n`,_jsx(_components.p,{children:`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:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`What`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Where`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Priority`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The Basics section: High / Medium / Low`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Test Description (Prompt)`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The Basics section: the natural-language statement of what the test verifies, which the run is judged against`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Steps`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The `,_jsx(`kbd`,{children:`Edit steps`}),` modal (see below)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Code`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`The Code tab`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Editing the description is the most common refinement. Rewrite what the test should verify, click `,_jsx(`kbd`,{children:`Save \u0026 Run`}),`, and TestSprite updates the steps to match and re-runs that test. Be specific:`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refine-edit-description.png?fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=0d721e84b27ea52fe2bee3651912aeb1`,alt:`Editing a test's description in its detail view`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`509`,height:`509`,\"data-path\":`images/refine-edit-description.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refine-edit-description.png?w=280\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=7b551e588cebedd1a8d922358c94edbb 280w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refine-edit-description.png?w=560\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=4ca19ca0d69f7b68647df891fdc800c7 560w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refine-edit-description.png?w=840\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=31847395fd637b9a1db0f6e8f5b49c52 840w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refine-edit-description.png?w=1100\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=4c4f45a58dcb43abdcc8f206518c06fa 1100w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refine-edit-description.png?w=1650\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=f546614cf095bdf647dfba8e40daf9f2 1650w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refine-edit-description.png?w=2500\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=025cc6925680ff42a0ceb6a9bdac4668 2500w`})}),`\n`,_jsx(CodeBlock,{filename:`Before`,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Verify user can log in with valid credentials.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(CodeBlock,{filename:`After`,numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Verify the Sign In link directs users to the login page, that`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`submitting email \"test@example.com\" + password \"test123\" lands them`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`on the dashboard, and that the navbar avatar shows after login.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`For API tests, `,_jsx(`kbd`,{children:`Save \u0026 Run`}),` replays the existing stored code. Click `,_jsx(`kbd`,{children:`Regenerate`}),` under the prompt instead whenever your edit changes what the code must do; it rewrites the code from your edited prompt, then runs.`]}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`3`,id:`editing-steps`,children:`Editing steps`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/ui-testing-step-edit-in-editor.png?fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=d65cd03304b103da99df227d156732e9`,alt:`The Edit steps \u0026 re-run dialog: the pass criterion above the editable step rows`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`779`,height:`779`,\"data-path\":`images/ui-testing-step-edit-in-editor.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/ui-testing-step-edit-in-editor.png?w=280\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=cc84a2cb1842877ba9fa4524d384a6de 280w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/ui-testing-step-edit-in-editor.png?w=560\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=57bf64f37e359470ae42dd7a4b92c415 560w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/ui-testing-step-edit-in-editor.png?w=840\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=7b8b1d62d60a446319c8884ada8a0a96 840w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/ui-testing-step-edit-in-editor.png?w=1100\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=6dd3869f5ff79cad3c2109a47385c1d5 1100w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/ui-testing-step-edit-in-editor.png?w=1650\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=3aab6b594bbc388473d9cf6857639a41 1650w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/ui-testing-step-edit-in-editor.png?w=2500\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=cea5d3c56301d7c779597f994199d7ad 2500w`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(`kbd`,{children:`Edit steps`}),` modal lets you rewrite the flow from any step onward. Steps `,_jsx(_components.strong,{children:`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 `,_jsx(_components.em,{children:`action`}),` or an `,_jsx(_components.em,{children:`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 `,_jsx(_components.a,{href:`/web-portal/core/ui/ui-rerun`,children:`Edit \u0026 Rerun`}),` for the other ways to re-run.`]}),`\n`,_jsxs(_components.p,{children:[`For UI tests, `,_jsx(_components.a,{href:`/web-portal/core/ui/auto-heal`,children:`Auto-Heal`}),` also absorbs UI drift on reruns, so a moved button doesn’t need an edit.`]}),`\n`,_jsx(Heading,{level:`2`,id:`asking-the-agent-for-a-fix`,children:`Asking the Agent for a Fix`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refining-chat.png?fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=61974bfe6f841ede15e6195960a9409e`,alt:`A failed test open beside the chat, with Find the Cause and Find a Fix under its result`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`903`,height:`903`,\"data-path\":`images/refining-chat.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refining-chat.png?w=280\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=d1694635fbd64a2fd98f4d401e1c2d81 280w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refining-chat.png?w=560\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=001f18a2572426b57774ed4a0a232d19 560w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refining-chat.png?w=840\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=52f3be609ab1cebbdfcacfefd329e4ad 840w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refining-chat.png?w=1100\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=16d2376fe124e09ac686c7261ac0b82d 1100w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refining-chat.png?w=1650\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=7f76a472c331f38c0866f12bb3540994 1650w, https://mintcdn.com/testspriteinc/IV-iejaf59JAQSCI/images/refining-chat.png?w=2500\u0026fit=max\u0026auto=format\u0026n=IV-iejaf59JAQSCI\u0026q=85\u0026s=a1d4a9aacda13632032d99bf2e53f9d7 2500w`})}),`\n`,_jsxs(_components.p,{children:[`When you don’t know why a test failed, ask the agent. A failed or blocked result has two buttons: `,_jsx(`kbd`,{children:`Find the Cause`}),` and `,_jsx(`kbd`,{children:`Find a Fix`}),`. Either sends the question to the agent in the chat beside the page; you can also just type it (`,_jsx(_components.em,{children:`“Why did this fail?”`}),`, `,_jsx(_components.em,{children:`“What is this test checking?”`}),`).`]}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`2`,id:`batch-editing`,children:`Batch Editing`}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(`kbd`,{children:`Edit Test Plan`}),` on the toolbar to open the batch editor on the `,_jsx(_components.strong,{children:`Plan`}),` tab: every test case in the plan on one screen, grouped by use case. It has two modes:`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-click-edit.png?fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=e952e1f011045e94e3d9ec3f6c42853c`,alt:`The Edit Test Plan button on the Test Cases toolbar`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`659`,height:`659`,\"data-path\":`images/managing-test-case-batch-click-edit.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-click-edit.png?w=280\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=63221857bf12563cfe049ad7b688b482 280w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-click-edit.png?w=560\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=cb7d2fc90340ddeb2b31cc3a60ba6415 560w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-click-edit.png?w=840\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=d01a16af006aaf16bee5a3d9b37b9023 840w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-click-edit.png?w=1100\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=ff7ee41b4d7dcf7cc74b0e8ab4f02c66 1100w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-click-edit.png?w=1650\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=1d44ac3792322f2f0a6b9b85c52f2f04 1650w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-click-edit.png?w=2500\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=d0aa62a768fd8f038e57e033e4e4c63a 2500w`})}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Form mode`,id:`form-mode`,children:[_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-form.png?fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=ec2f64f11ef2a01f99c3ded5e94daedb`,alt:`Form mode: every case as an editable row with its steps expanded`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`769`,height:`769`,\"data-path\":`images/managing-test-case-batch-form.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-form.png?w=280\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=96d264bc75511dae17f78a8f975a2cf3 280w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-form.png?w=560\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=59515732c7a6695b760aa028fc095901 560w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-form.png?w=840\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=1b8ddd21b1adb574d22538477cf4286b 840w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-form.png?w=1100\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=c305c12361366fcc98825ee6a7cccf1c 1100w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-form.png?w=1650\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=1586d30b1b2304cb770fa62c6de8a2c4 1650w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-form.png?w=2500\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=4459cb2b86563d0eb4f5c9fc93d32d6d 2500w`})}),_jsxs(_components.p,{children:[`Every case as a row with `,_jsx(_components.strong,{children:`test name, priority, description, and each flow step`}),` editable in place. Best for touching a handful of cases in context.`]}),_jsx(_components.p,{children:`Save writes only the rows you changed and reports per case if any row fails, so a partial save never silently loses the rest.`})]}),_jsxs(Tab,{title:`YAML mode`,id:`yaml-mode`,children:[_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-yaml.png?fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=0d6e8452b8dbb667b7bc586137e4dfca`,alt:`YAML mode: the whole plan as one editable document`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`769`,height:`769`,\"data-path\":`images/managing-test-case-batch-yaml.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-yaml.png?w=280\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=5c497352a167a4606a6ce24b521cd5a7 280w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-yaml.png?w=560\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=15324b232575f19abe455ca208068530 560w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-yaml.png?w=840\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=29d6b42b201cd419f6dfb979bee5138b 840w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-yaml.png?w=1100\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=76d2e4d35da8cf7eeb6f43b212215ea3 1100w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-yaml.png?w=1650\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=dd9193b18f38e7a452274d46e30bc818 1650w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-batch-yaml.png?w=2500\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=cd6c9a4086a65ca24335d8604a8562ff 2500w`})}),_jsx(_components.p,{children:`The whole plan as one YAML document. Best for sweeping edits: renumbering steps across many cases, find-and-replace on a URL, or pasting cases between projects.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`useCases`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`useCase`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Authentication`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` slug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`authentication`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` testCases`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`TC001`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` priority`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`High`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Login with valid credentials`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Verify that submitting valid credentials lands the`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` user on the dashboard.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` steps`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Navigate to the login page`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Enter \"user@example.com\" and the test password`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Click the Sign In button`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`assert`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`The dashboard page is displayed`})]}),`\n`]})})}),_jsx(_components.p,{children:`The rules (also in the editor’s header comment):`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A plain step line is an `,_jsx(_components.strong,{children:`action`}),`; `,_jsx(_components.code,{children:`assert: ...`}),` marks an `,_jsx(_components.strong,{children:`assertion`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add`}),` a case by copying an existing one and removing its `,_jsx(_components.code,{children:`id`}),` line.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Remove`}),` a case by deleting its block.`]}),`\n`,_jsxs(_components.li,{children:[`Leave `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`slug`}),` values as they are; they map your edits back to existing cases.`]}),`\n`]})]})]}),`\n`,_jsx(_components.p,{children:`Switching modes discards unsaved edits in the mode you’re leaving; the editor warns you first.`}),`\n`,_jsx(Heading,{level:`2`,id:`adding-test-cases`,children:`Adding Test Cases`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(`kbd`,{children:`Add More Tests`}),` dropdown on the toolbar has both paths:`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-add-more.png?fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=4ab6d6c2b3bc0ad12957ac0366d3d86d`,alt:`The Add More Tests dropdown, with the AI and manual paths`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`659`,height:`659`,\"data-path\":`images/managing-test-case-add-more.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-add-more.png?w=280\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=17c15e2bdd4ecb82dda89badf786a537 280w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-add-more.png?w=560\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=cd4448472bf4cb7b37eb1162584097f1 560w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-add-more.png?w=840\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=d08f59a0c7e89d75913ce63b607a37b7 840w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-add-more.png?w=1100\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=92117f791bc9befdfa89b6ba990fff1c 1100w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-add-more.png?w=1650\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=b0be917531747b91c63bb8ac487291d3 1650w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-add-more.png?w=2500\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=191bc7a4c30631335375a9e4e6e20434 2500w`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`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 `,_jsx(_components.strong,{children:`Plan`}),` tab, where you can edit each one, untick the ones you don’t want, and apply. See `,_jsx(_components.a,{href:`/web-portal/core/ui/agent-plan`,children:`Proposed Test Cases`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Add Test Manually`}),`: a form with use case, title, priority, description, and a step list (action or assertion per step).`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`You can also just ask in the chat: `,_jsx(_components.em,{children:`“Add tests for the new export feature.”`})]}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsx(Heading,{level:`2`,id:`deleting-test-cases`,children:`Deleting Test Cases`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`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.`]}),`\n`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-one.png?fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=065903395a784d3b71ee4c6cf2068a6c`,alt:`Deleting a single case from its row`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`659`,height:`659`,\"data-path\":`images/managing-test-case-delete-one.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-one.png?w=280\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=2e241de20ebba3b1c6c0c478ca063859 280w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-one.png?w=560\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=e2b01c8379a4684a832457ff213e58f9 560w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-one.png?w=840\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=b7753a0b34dbd58c000d60e3dce8bbe0 840w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-one.png?w=1100\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=157135be7f0334275726c58e0572228e 1100w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-one.png?w=1650\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=8cbe7b6b4a424a551da200db9e689af5 1650w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-one.png?w=2500\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=d732d8df8efd4b2cbc86f18efdf0760f 2500w`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Many cases`}),`: select rows and use the trash button in the toolbar.`]}),`\n`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-batch.png?fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=294f72fb4bfe6bce5513f8ae9c3102fb`,alt:`Deleting several selected cases from the toolbar`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`659`,height:`659`,\"data-path\":`images/managing-test-case-delete-batch.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-batch.png?w=280\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=45432dbec379e4b886b62f1f3f03f0a3 280w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-batch.png?w=560\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=c5f51d7105e6615edc1f54fd3a6c14ce 560w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-batch.png?w=840\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=d3f1b8527eef994fedcf0de051dce215 840w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-batch.png?w=1100\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=9f34b4dcd1751f07f5f0399cb5bc2463 1100w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-batch.png?w=1650\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=269e81971f1b57bdb9919b414f23a18d 1650w, https://mintcdn.com/testspriteinc/j_xmvCOBqyVxazzK/images/managing-test-case-delete-batch.png?w=2500\u0026fit=max\u0026auto=format\u0026n=j_xmvCOBqyVxazzK\u0026q=85\u0026s=7ae9d53cdea76994469f1c280c12c42c 2500w`})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Deleting a test case permanently removes its run history too. If you might want the history later, deprioritize the case instead.`})}),`\n`,_jsx(Heading,{level:`2`,id:`where-to-go-next`,children:`Where to Go Next`}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Card,{title:`Proposed Test Cases`,href:`/web-portal/core/ui/agent-plan`,icon:`list-check`,children:_jsx(_components.p,{children:`Review and apply what the agent proposes`})}),_jsx(Card,{title:`Edit \u0026 Rerun`,href:`/web-portal/core/ui/ui-rerun`,icon:`arrow-rotate-right`,children:_jsx(_components.p,{children:`Every way to re-run a UI test`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Managing Test Cases","description":"Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.","href":"/web-portal/core/working-with-test/managing-test-cases"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Editing a Single Test Case","slug":"editing-a-single-test-case","depth":2,"children":[{"title":"Editing steps","slug":"editing-steps","depth":3,"children":[]}]},{"title":"Asking the Agent for a Fix","slug":"asking-the-agent-for-a-fix","depth":2,"children":[]},{"title":"Batch Editing","slug":"batch-editing","depth":2,"children":[]},{"title":"Adding Test Cases","slug":"adding-test-cases","depth":2,"children":[]},{"title":"Deleting Test Cases","slug":"deleting-test-cases","depth":2,"children":[]},{"title":"Where to Go Next","slug":"where-to-go-next","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"testspriteinc","siteName":"TestSprite Documentation","title":"Managing Test Cases - TestSprite Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T07:58:21.970Z","originalFileLocation":"web-portal/core/working-with-test/managing-test-cases.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.\">\u003cmeta data-mint-head name=\"application-name\" content=\"TestSprite Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Managing Test Cases - TestSprite Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TestSprite Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://testspriteinc.mintlify.site/_mintlify/api/og/v2?division=Working+with+Tests\u0026amp;title=Managing+Test+Cases\u0026amp;description=Edit%2C+refine%2C+add%2C+and+delete+test+cases%3A+change+a+test+yourself%2C+have+the+agent+change+it%2C+or+batch-edit+the+plan.\u0026amp;theme=26398f3e06eaaac29d392671\u0026amp;signature=c890cf8fd4789e4291767240db6054e2e74bafe002ad2f46a3f2f0d0573445dc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Managing Test Cases - TestSprite Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://testspriteinc.mintlify.site/_mintlify/api/og/v2?division=Working+with+Tests\u0026amp;title=Managing+Test+Cases\u0026amp;description=Edit%2C+refine%2C+add%2C+and+delete+test+cases%3A+change+a+test+yourself%2C+have+the+agent+change+it%2C+or+batch-edit+the+plan.\u0026amp;theme=26398f3e06eaaac29d392671\u0026amp;signature=c890cf8fd4789e4291767240db6054e2e74bafe002ad2f46a3f2f0d0573445dc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/testspriteinc/wPegTz1809S7PG91/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TestSprite Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#151916\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/web-portal/core/working-with-test/managing-test-cases.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.testsprite.com/#organization\",\"name\":\"TestSprite Documentation\",\"url\":\"https://docs.testsprite.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/testspriteinc/-Pguo2A-jFFq2l4c/logo/light-mode.svg?fit=max\u0026auto=format\u0026n=-Pguo2A-jFFq2l4c\u0026q=85\u0026s=ae3fa561b9ee31984d80d787a7fa166e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.testsprite.com#website\",\"name\":\"TestSprite Documentation\",\"url\":\"https://docs.testsprite.com\",\"publisher\":{\"@id\":\"https://docs.testsprite.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases#webpage\",\"url\":\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases\",\"name\":\"Managing Test Cases\",\"description\":\"Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.\",\"dateModified\":\"2026-11-19T07:58:21.970Z\",\"isPartOf\":{\"@id\":\"https://docs.testsprite.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core\",\"item\":\"https://docs.testsprite.com/web-portal/core/ui/ui-testing\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Working with Tests\",\"item\":\"https://docs.testsprite.com/web-portal/core/working-with-test/test-detail\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Managing Test Cases\",\"item\":\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases#article\",\"headline\":\"Managing Test Cases\",\"name\":\"Managing Test Cases\",\"description\":\"Edit, refine, add, and delete test cases: change a test yourself, have the agent change it, or batch-edit the plan.\",\"url\":\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases\",\"mainEntityOfPage\":{\"@id\":\"https://docs.testsprite.com/web-portal/core/working-with-test/managing-test-cases#webpage\"},\"dateModified\":\"2026-11-19T07:58:21.970Z\",\"publisher\":{\"@id\":\"https://docs.testsprite.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.testsprite.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TestSprite Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"TestSprite Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/web-portal/core/working-with-test/managing-test-cases.md","siteName":"TestSprite Documentation","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://www.testsprite.com/"},{"anchor":"Community","icon":"comments","href":"https://discord.gg/QQB9tJ973e"},{"anchor":"Contact Us","icon":"address-book","href":"https://calendly.com/contact-hmul/schedule"}]},"tabs":[{"tab":"Web Portal","icon":"window-maximize","groups":[{"group":"Getting Started","pages":[{"title":"Overview","icon":"clipboard-list","href":"/web-portal/getting-started/overview"},{"title":"Introduction","icon":"book-open","href":"/web-portal/getting-started/introduction"},{"group":"Concepts","icon":"book","expanded":true,"pages":[{"title":"Key Terms","href":"/web-portal/concepts/key-terms"},{"title":"Testing Lifecycle","href":"/web-portal/concepts/testing-lifecycle"}]}]},{"group":"Core","pages":[{"group":"UI Testing","icon":"window-maximize","expanded":true,"pages":[{"title":"Overview","href":"/web-portal/core/ui/ui-testing"},{"title":"Quickstart","href":"/web-portal/core/ui/quickstart"},{"title":"Setup","href":"/web-portal/core/ui/agent-setup"},{"title":"Exploration \u0026 Notes","href":"/web-portal/core/ui/agent-exploration"},{"title":"Proposed Test Cases","href":"/web-portal/core/ui/agent-plan"},{"title":"Test Generation \u0026 Execution (UI)","href":"/web-portal/core/ui/ui-test-gen"},{"title":"Step-by-Step Replay","href":"/web-portal/core/ui/ui-step-by-step"},{"title":"Map View","href":"/web-portal/core/ui/map-view"},{"title":"Edit \u0026 Rerun","href":"/web-portal/core/ui/ui-rerun"},{"title":"Auto-Heal","href":"/web-portal/core/ui/auto-heal"}]},{"group":"API Testing","icon":"terminal","expanded":true,"pages":[{"title":"Overview","href":"/web-portal/core/api/api-testing"},{"title":"Quickstart","href":"/web-portal/core/api/quickstart"},{"title":"Credentials Setup","href":"/web-portal/core/api/agent-credentials"},{"title":"API Calls","href":"/web-portal/core/api/agent-api-calls"},{"title":"Endpoint Tests","href":"/web-portal/core/api/endpoint-tests"},{"title":"Integration Tests","href":"/web-portal/core/api/integration-tests"},{"title":"Auto-Auth","href":"/web-portal/core/api/auto-auth"},{"title":"Rerun","href":"/web-portal/core/api/api-rerun"}]},{"group":"Working with Tests","icon":"wrench","expanded":true,"pages":[{"title":"Test Detail Page","description":"A tour of a project: the chat and the pages beside it, the left nav, the test case view, and where the run controls live.","href":"/web-portal/core/working-with-test/test-detail"},{"title":"Managing Test Cases","href":"/web-portal/core/working-with-test/managing-test-cases"},{"title":"Test Runs \u0026 Reports","description":"Watch a run as it happens, then read its report and download it as a PDF for your PM, leadership, or a release record.","href":"/web-portal/results/test-report"},{"title":"Insights","href":"/web-portal/results/project-overview"}]},{"group":"Project Settings","icon":"gear","expanded":true,"pages":[{"title":"Environments","href":"/web-portal/setup/environments"},{"title":"Project Sources","href":"/web-portal/setup/project-sources"},{"title":"Run Behavior","href":"/web-portal/setup/execution-settings"}]},{"group":"Automation \u0026 Integrations","icon":"plug","expanded":true,"pages":[{"title":"GitHub Integration","href":"/web-portal/integrations/github-integration"},{"title":"Test Lists","href":"/web-portal/maintenance/test-lists"},{"title":"Test Schedules","href":"/web-portal/maintenance/monitoring"},{"title":"Slack Notifications","sidebarTitle":"Notifications (Slack)","href":"/web-portal/integrations/slack-notifications"},{"title":"Ticketing","sidebarTitle":"Ticketing (Jira, Linear)","href":"/web-portal/integrations/ticketing"}]},{"group":"Workspace \u0026 Admin","icon":"users-gear","expanded":true,"pages":[{"title":"Workspaces","href":"/web-portal/admin/workspaces"},{"title":"Members \u0026 Roles","href":"/web-portal/admin/members-and-roles"},{"title":"Sharing a Project","href":"/web-portal/admin/sharing"},{"title":"API Keys","href":"/web-portal/admin/api-keys"}]}]}]},{"tab":"CLI","icon":"terminal","pages":[{"title":"CLI","href":"/cli/getting-started/overview"}]},{"tab":"MCP Server","icon":"square-terminal","pages":[{"title":"MCP Server","href":"/mcp/getting-started/introduction"}]},{"tab":"Learn","icon":"graduation-cap","pages":[{"title":"Learn","href":"/learn/mcp-demo"}]}]},"basePath":"","title":"Managing Test Cases - TestSprite Documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-otd7Y6S-.js","DynamicMarkdown-QJ7LkRm3.js","zoom-image-lightbox-BodsesVp.js","lightbox-handle-r17bVUz3.js"]}