feat: add admin user frontend contract

This commit is contained in:
Bastian Wagner
2026-08-01 09:17:57 +02:00
parent 78761b570b
commit 484c7473fb
20 changed files with 378 additions and 21 deletions

View File

@@ -5,6 +5,13 @@
</header>
<section class="link-grid">
<a routerLink="/users"
><mat-card
><mat-icon>group</mat-icon>
<div><strong>Benutzer</strong><span>Benutzerverzeichnis öffnen</span></div>
<mat-icon>chevron_right</mat-icon></mat-card
></a
>
<a routerLink="penalties"
><mat-card
><mat-icon>gavel</mat-icon>

View File

@@ -31,6 +31,9 @@ describe('More', () => {
expect(fixture.nativeElement.textContent).toContain('Profil');
expect(fixture.nativeElement.textContent).toContain('Öffentliche Freigabe');
expect(fixture.nativeElement.textContent).toContain('Benutzer');
expect(fixture.nativeElement.querySelector('a[href="/users"]')).not.toBeNull();
fixture.componentInstance['logout']();
await fixture.whenStable();
expect(clearSession).toHaveBeenCalled();