File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 } ) => {
You can’t perform that action at this time.
0 commit comments