From 2cbc67dbc6d43e41db2bdcaf79ed2ef86c087b49 Mon Sep 17 00:00:00 2001 From: Shakker Date: Fri, 8 May 2026 15:48:28 +0100 Subject: [PATCH] test: tighten run controls stop assertion --- ui/src/ui/chat/run-controls.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/ui/chat/run-controls.test.ts b/ui/src/ui/chat/run-controls.test.ts index 9357bf73578..9e1c8df57e5 100644 --- a/ui/src/ui/chat/run-controls.test.ts +++ b/ui/src/ui/chat/run-controls.test.ts @@ -134,9 +134,8 @@ describe("chat run controls", () => { ); const stopButton = container.querySelector('button[title="Stop"]'); - expect(stopButton).not.toBeNull(); expect(stopButton?.disabled).toBe(false); - stopButton?.dispatchEvent(new MouseEvent("click", { bubbles: true })); + stopButton?.click(); expect(onAbort).toHaveBeenCalledTimes(1); }); });