fix(webui): polish delete dialog and sidebar toggles

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Xubin Ren
2026-05-08 13:28:34 +00:00
co-authored by Cursor
parent cbd5b06075
commit 451d740849
14 changed files with 53 additions and 40 deletions
+2 -2
View File
@@ -139,7 +139,7 @@ describe("App layout", () => {
fireEvent.click(await screen.findByRole("menuitem", { name: "Delete" }));
await waitFor(() =>
expect(screen.getByText('Delete “First chat”?')).toBeInTheDocument(),
expect(screen.getByText("Delete this chat?")).toBeInTheDocument(),
);
fireEvent.click(screen.getByRole("button", { name: "Delete" }));
@@ -151,7 +151,7 @@ describe("App layout", () => {
within(sidebar).getByRole("button", { name: /^Second chat$/ }),
).toBeInTheDocument(),
);
expect(screen.queryByText('Delete “First chat”?')).not.toBeInTheDocument();
expect(screen.queryByText("Delete this chat?")).not.toBeInTheDocument();
expect(document.body.style.pointerEvents).not.toBe("none");
}, 15_000);