feat(nav): AppSidebar — пункт «Напоминания» в группе «Работа» (audit B1)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -35,6 +35,7 @@ const navGroups = computed<NavGroup[]>(() => [
|
||||
{ title: 'Сделки', icon: 'mdi-format-list-bulleted', to: '/deals', count: 247 },
|
||||
{ title: 'Канбан', icon: 'mdi-view-column-outline', to: '/kanban' },
|
||||
{ title: 'Дашборд', icon: 'mdi-view-dashboard-outline', to: '/dashboard' },
|
||||
{ title: 'Напоминания', icon: 'mdi-bell-outline', to: '/reminders' },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -62,4 +62,12 @@ describe('AppSidebar — redesigned shell', () => {
|
||||
const active = items.find((el) => el.classes().includes('ld-nav-item--active'));
|
||||
expect(active).toBeDefined();
|
||||
});
|
||||
|
||||
it('содержит пункт «Напоминания» со ссылкой /reminders в группе «Работа»', async () => {
|
||||
const { wrapper } = await setup();
|
||||
const items = wrapper.findAll('a.ld-nav-item');
|
||||
const reminders = items.find((a) => a.text().includes('Напоминания'));
|
||||
expect(reminders).toBeDefined();
|
||||
expect(reminders!.attributes('href')).toBe('/reminders');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user