diff --git a/apps/web/src/components/app-shell.test.tsx b/apps/web/src/components/app-shell.test.tsx index 86f6557..2a1d412 100644 --- a/apps/web/src/components/app-shell.test.tsx +++ b/apps/web/src/components/app-shell.test.tsx @@ -242,6 +242,35 @@ describe("AppShell — desktop sidebar (SSR)", () => { // appear in the sidebar (we removed it from the mobile drawer). expect(html).toContain('data-testid="theme-toggle"'); }); + + it("sidebar brand header is a link to / with a 'Go to dashboard' aria-label", () => { + pathnameMock.mockReturnValue("/accounts"); + const html = renderToStaticMarkup( + +
+ , + ); + // Scope to the sidebar: it's the tag cleanly separates the two brand markup blocks. + */ +function extractSidebar(html: string): string { + const open = html.indexOf("", open); + return html.slice(open, close === -1 ? html.length : close + "".length); +}