Skip to content

Commit 8d54679

Browse files
abossardCopilot
andcommitted
Fix: all E2E tests now clean up created agents
Two tests were creating agents via the UI but not deleting them, leaving orphans in the DB after each test run: - 'runs an agent and appends output to run button' - 'requires and forwards configured run input' Added Delete button clicks at the end of both tests. All 10 agent-creating tests now verified to clean up. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 38cb0e4 commit 8d54679

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/e2e/workbench.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ test.describe("Agent Fabric UI", () => {
102102
await expect(
103103
page.locator('[data-testid="workbench-run-output"] h1')
104104
).toHaveText("Ticket trend summary");
105+
106+
// Clean up
107+
await createdRow.getByRole("button", { name: "Delete" }).click();
105108
});
106109

107110
test("requires and forwards configured run input", async ({ page }) => {
@@ -162,6 +165,9 @@ test.describe("Agent Fabric UI", () => {
162165
"Processed required input: INC-987654",
163166
{ timeout: 10000 }
164167
);
168+
169+
// Clean up
170+
await createdRow.getByRole("button", { name: "Delete" }).click();
165171
});
166172

167173
test("creates agent with output schema via suggest button", async ({ page }) => {

0 commit comments

Comments
 (0)