fix(webui): tighten temporary chat close action

This commit is contained in:
chengyongru
2026-08-08 23:20:59 +08:00
committed by Xubin Ren
parent 75e333a3c5
commit 656e0d606b
12 changed files with 7 additions and 12 deletions
+4 -1
View File
@@ -183,7 +183,10 @@ describe("ChatList", () => {
within(section).getByRole("button", { name: "Topic actions for Private planning" }),
{ button: 0 },
);
fireEvent.click(await screen.findByRole("menuitem", { name: "Close temporary chat" }));
const closeItem = await screen.findByRole("menuitem", { name: "Close temporary chat" });
expect(closeItem).toHaveTextContent("Close");
expect(closeItem).toHaveClass("whitespace-nowrap");
fireEvent.click(closeItem);
expect(onClose).toHaveBeenCalledWith("temporary:temporary-one");
});