fix(webui): scroll search and archive with sidebar topics (#6706)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-18 17:46:55 +08:00
1 parent 7e04670461
commit f6f49ccca5
3 files changed
+40 -33

No files matched your search

+5 -1
View File
@@ -3108,7 +3108,11 @@ describe("App layout", () => {
expect(within(sidebar).getByRole("button", { name: /^Roadmap$/ })).toBeInTheDocument();
expect(within(sidebar).queryByRole("button", { name: /^First chat$/ })).not.toBeInTheDocument();
fireEvent.click(within(sidebar).getByRole("button", { name: "Show archived" }));
const scrollViewport = within(sidebar).getByRole("button", { name: /^Roadmap$/ }).closest(".sidebar-scrollbar");
const archiveButton = within(sidebar).getByRole("button", { name: "Show archived" });
expect(scrollViewport).toContainElement(archiveButton);
expect(scrollViewport).toContainElement(within(sidebar).getByRole("button", { name: /^Search$/ }));
fireEvent.click(archiveButton);
await waitFor(() =>
expect(within(sidebar).getByText("Archived")).toBeInTheDocument(),
);