From e49d98f692bb0c0bf6563c57ab3187e74635dbb5 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Thu, 15 Oct 2026 10:05:08 +0900 Subject: feat(home): navbar header actions — raised primary 'New workspace' button, secondary actions as text links, Phosphor icons when compact MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/workspaces/ui/HomeHeader.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/features/workspaces/ui/HomeHeader.test.ts') diff --git a/src/features/workspaces/ui/HomeHeader.test.ts b/src/features/workspaces/ui/HomeHeader.test.ts index 40b060f..4db8b04 100644 --- a/src/features/workspaces/ui/HomeHeader.test.ts +++ b/src/features/workspaces/ui/HomeHeader.test.ts @@ -86,6 +86,9 @@ describe("HomeHeader", () => { it("compact mode collapses the primary button to an icon", () => { const p = props(); render(HomeHeader, { props: { ...p, compact: true } }); - expect(screen.getByRole("button", { name: "New workspace" })).toHaveTextContent("+"); + const button = screen.getByRole("button", { name: "New workspace" }); + expect(button).toHaveClass("navbar-btn-icon"); + expect(button).toHaveTextContent(""); // icon only — the label collapses + expect(button.querySelector("svg")).not.toBeNull(); }); }); -- cgit v1.2.3