Add dark mode support with persisted OS-aware theme selection
This commit is contained in:
@@ -89,4 +89,9 @@ describe("MainLayout", () => {
|
||||
await userEvent.click(toggleButton);
|
||||
expect(localStorage.getItem("bangui_sidebar_collapsed")).toBe("true");
|
||||
});
|
||||
|
||||
it("renders a theme toggle button in the sidebar footer", () => {
|
||||
renderLayout();
|
||||
expect(screen.getByRole("button", { name: /switch to dark mode/i })).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user