mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-18 18:16:38 +03:00
fix(webui): tighten temporary chat close action
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user