This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user