File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { test , expect } from './models/fixture-dashboard'
1+ import { test , expect } from './models/fixture-dashboard' ;
22
33test ( 'header in dashboard' , async ( { page } ) => {
4- await page . goto ( '/home' )
4+ await page . goto ( '/home' ) ;
55
66 await test . step ( "navigation links" , async ( ) => {
77 const links = page . getByRole ( 'banner' ) . getByRole ( 'navigation' ) . getByRole ( 'link' ) ;
8- await expect ( links . nth ( 0 ) ) . toHaveAccessibleDescription ( 'Mokapi home' )
9- await expect ( links . nth ( 1 ) ) . toHaveText ( 'Dashboard' )
10- await expect ( links . nth ( 2 ) ) . toHaveText ( 'Guides' )
11- await expect ( links . nth ( 3 ) ) . toHaveText ( 'Configuration' )
12- await expect ( links . nth ( 4 ) ) . toHaveText ( 'JavaScript API' )
13- await expect ( links . nth ( 5 ) ) . toHaveText ( 'Resources' )
14- await expect ( links . nth ( 6 ) ) . toHaveText ( 'References' )
8+ await expect ( links . nth ( 0 ) ) . toHaveAccessibleDescription ( 'Mokapi home' ) ;
9+ await expect ( links . nth ( 1 ) ) . toHaveText ( 'HTTP' ) ;
10+ await expect ( links . nth ( 2 ) ) . toHaveText ( 'Kafka' ) ;
11+ await expect ( links . nth ( 3 ) ) . toHaveText ( 'LDAP' ) ;
12+ await expect ( links . nth ( 4 ) ) . toHaveText ( 'Mail' ) ;
13+ await expect ( links . nth ( 5 ) ) . toHaveText ( 'Dashboard' ) ;
14+ await expect ( links . nth ( 6 ) ) . toHaveText ( 'Docs' ) ;
15+ await expect ( links . nth ( 7 ) ) . toHaveText ( 'Resources' ) ;
1516 } )
1617} )
You can’t perform that action at this time.
0 commit comments