From 474b294a18eb3be00330d35c62d49781e0f84e71 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Tue, 10 Feb 2026 15:20:59 +0100 Subject: [PATCH] fix reporting tab selectors in e2e test --- e2e/reporting.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/reporting.spec.ts b/e2e/reporting.spec.ts index 42745292..b8f1adc1 100644 --- a/e2e/reporting.spec.ts +++ b/e2e/reporting.spec.ts @@ -928,11 +928,11 @@ test.describe('Employee Reporting Restrictions', () => { // Overview and Detailed tabs should be visible (scope to main to avoid sidebar matches) const mainContent = employee.page.getByRole('main'); - await expect(mainContent.getByRole('link', { name: 'Overview' })).toBeVisible(); - await expect(mainContent.getByRole('link', { name: 'Detailed' })).toBeVisible(); + await expect(mainContent.getByRole('tab', { name: 'Overview' })).toBeVisible(); + await expect(mainContent.getByRole('tab', { name: 'Detailed' })).toBeVisible(); // Shared tab should NOT be visible for employees - await expect(mainContent.getByRole('link', { name: 'Shared' })).not.toBeVisible(); + await expect(mainContent.getByRole('tab', { name: 'Shared' })).not.toBeVisible(); }); test('employee cannot see Cost column in reporting by default', async ({ ctx, employee }) => {