Use exact match for sidebar link assertions in E2E template test

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-30 17:50:58 +02:00
parent f746ec202a
commit 02a0f0dfa0
@@ -24,6 +24,10 @@ test('App should render the welcome page', async ({ page }) => {
await enterButton.click();
const nav = page.getByRole('navigation');
await expect(nav.getByRole('link', { name: 'Catalog' })).toBeVisible();
await expect(page.getByRole('link', { name: 'APIs' })).toBeVisible();
await expect(
nav.getByRole('link', { name: 'Catalog', exact: true }),
).toBeVisible();
await expect(
page.getByRole('link', { name: 'APIs', exact: true }),
).toBeVisible();
});