Ajoute du tableau de bord

Signed-off-by: Gato <cedric@goutailler-olivier.fr>
This commit is contained in:
2026-05-28 19:05:27 +02:00
parent 43421b5fb1
commit 6f4d431f10
9 changed files with 848 additions and 2 deletions
+7 -2
View File
@@ -35,9 +35,9 @@ describe('Menu', () => {
expect(component).toBeTruthy();
});
it('should have four menu items', () => {
it('should have five menu items', () => {
const items = (component as any).menuItems as { label: string; path: string }[];
expect(items.length).toBe(4);
expect(items.length).toBe(5);
});
it('should contain Issues link', () => {
@@ -50,6 +50,11 @@ describe('Menu', () => {
expect(items.some((i) => i.path === '/milestones')).toBe(true);
});
it('should contain Dashboard link', () => {
const items = (component as any).menuItems as { label: string; path: string }[];
expect(items.some((i) => i.path === '/dashboard')).toBe(true);
});
it('logout calls keycloak.logout()', () => {
(component as any).logout();
expect(keycloakMock.logout).toHaveBeenCalled();