feat(nav): AppSidebar — пункт «Напоминания» в группе «Работа» (audit B1)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-05-16 09:40:00 +03:00
parent 93bfda42c9
commit a55ac9dee4
2 changed files with 9 additions and 0 deletions
@@ -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');
});
});