diff options
Diffstat (limited to 'src/features/workspaces/ui/HomeHeader.test.ts')
| -rw-r--r-- | src/features/workspaces/ui/HomeHeader.test.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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(); }); }); |
