File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
tests/lib/component/navigation Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 17
17
const toastStore = getToastStore ();
18
18
19
19
const routes = [
20
+ { path: ' /admin/super' , text: ' Super Admin' },
20
21
{ path: ' /user' , text: ' User Management' },
21
22
{ path: ' /explorer' , text: ' Explorer' },
22
23
{ path: ' /api' , text: ' API' },
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
12
12
test . describe ( 'navigation' , ( ) => {
13
13
const routes = [
14
+ { path : '/admin/super' , id : 'nav-link-admin-super' } ,
14
15
{ path : '/user' , id : 'nav-link-user' } ,
15
16
{
16
17
path : '/explorer' ,
@@ -175,7 +176,7 @@ test.describe('navigation', () => {
175
176
await page . keyboard . press ( 'a' ) ;
176
177
177
178
// Then
178
- await expect ( page . locator ( '#' + routes [ 2 ] . id ) ) . toBeFocused ( ) ;
179
+ await expect ( page . locator ( '#' + routes [ 3 ] . id ) ) . toBeFocused ( ) ;
179
180
} ) ;
180
181
} ) ;
181
182
test ( 'Session avatar should reflect correct user initial after login' , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments