From 185b8fa9b5fe895e7adb1bf12b21284db26d95d0 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 1 Jun 2026 21:00:07 -0400 Subject: [PATCH] test(web): Shell Library link asserts /library/artists --- web/src/lib/components/Shell.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/lib/components/Shell.test.ts b/web/src/lib/components/Shell.test.ts index ad3ac561..387203ec 100644 --- a/web/src/lib/components/Shell.test.ts +++ b/web/src/lib/components/Shell.test.ts @@ -48,7 +48,9 @@ describe('Shell', () => { expect(screen.getByRole('link', { name: label })).toBeInTheDocument(); } expect(screen.getByRole('link', { name: 'Home' })).toHaveAttribute('href', '/'); - expect(screen.getByRole('link', { name: 'Library' })).toHaveAttribute('href', '/library'); + // Library jumps to the Artists tab directly so SPA navigation + // bypasses the /library 308-redirect. + expect(screen.getByRole('link', { name: 'Library' })).toHaveAttribute('href', '/library/artists'); expect(screen.getByRole('link', { name: 'Discover' })).toHaveAttribute('href', '/discover'); });