diff options
| author | Adam Malczewski <[email protected]> | 2026-10-15 10:05:08 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-10-15 10:05:08 +0900 |
| commit | e49d98f692bb0c0bf6563c57ab3187e74635dbb5 (patch) | |
| tree | 0ad84484331817ddda488dffebfd9c9eacc45a53 /src/features/workspaces/ui/HomeHeader.test.ts | |
| parent | dfd279fbe1c50743dc8105715fef7e74402f4564 (diff) | |
| download | dispatch-web-e49d98f692bb0c0bf6563c57ab3187e74635dbb5.tar.gz dispatch-web-e49d98f692bb0c0bf6563c57ab3187e74635dbb5.zip | |
feat(home): navbar header actions — raised primary 'New workspace' button, secondary actions as text links, Phosphor icons when compact
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(); }); }); |
