Skip to content

Commit e038870

Browse files
committed
fix reporting tab selectors in e2e test
1 parent 6f8f46f commit e038870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

e2e/reporting.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,11 +928,11 @@ test.describe('Employee Reporting Restrictions', () => {
928928

929929
// Overview and Detailed tabs should be visible (scope to main to avoid sidebar matches)
930930
const mainContent = employee.page.getByRole('main');
931-
await expect(mainContent.getByRole('link', { name: 'Overview' })).toBeVisible();
932-
await expect(mainContent.getByRole('link', { name: 'Detailed' })).toBeVisible();
931+
await expect(mainContent.getByRole('tab', { name: 'Overview' })).toBeVisible();
932+
await expect(mainContent.getByRole('tab', { name: 'Detailed' })).toBeVisible();
933933

934934
// Shared tab should NOT be visible for employees
935-
await expect(mainContent.getByRole('link', { name: 'Shared' })).not.toBeVisible();
935+
await expect(mainContent.getByRole('tab', { name: 'Shared' })).not.toBeVisible();
936936
});
937937

938938
test('employee cannot see Cost column in reporting by default', async ({ ctx, employee }) => {

0 commit comments

Comments
 (0)