Skip to content

Commit 574f4a0

Browse files
authored
Add super admin link (#25)
1 parent 49c0016 commit 574f4a0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/components/Navigation.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
const toastStore = getToastStore();
1818
1919
const routes = [
20+
{ path: '/admin/super', text: 'Super Admin' },
2021
{ path: '/user', text: 'User Management' },
2122
{ path: '/explorer', text: 'Explorer' },
2223
{ path: '/api', text: 'API' },

tests/lib/component/navigation/test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111

1212
test.describe('navigation', () => {
1313
const routes = [
14+
{ path: '/admin/super', id: 'nav-link-admin-super' },
1415
{ path: '/user', id: 'nav-link-user' },
1516
{
1617
path: '/explorer',
@@ -175,7 +176,7 @@ test.describe('navigation', () => {
175176
await page.keyboard.press('a');
176177

177178
// Then
178-
await expect(page.locator('#' + routes[2].id)).toBeFocused();
179+
await expect(page.locator('#' + routes[3].id)).toBeFocused();
179180
});
180181
});
181182
test('Session avatar should reflect correct user initial after login', async ({ page }) => {

0 commit comments

Comments
 (0)