Move the reports under the Hallinto menu

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-25 09:11:26 +02:00
co-authored by Claude Sonnet 5.5
parent b13310b815
commit d4251d00d7
6 changed files with 4 additions and 11 deletions
+2 -2
View File
@@ -30,10 +30,10 @@ it('gives an employee work, own entries and customers and sales but no managemen
->and(menuLabels($user))->toContain('Uusi työ', 'Pikamyynti', 'Hinnasto');
});
it('gives management the admin, reports and maintenance groups but not user or company settings', function () {
it('gives management the admin and maintenance groups but not user or company settings', function () {
$user = User::factory()->management()->create();
expect(menuGroupKeys($user))->toBe(['work', 'own', 'sales', 'admin', 'reports', 'maintenance'])
expect(menuGroupKeys($user))->toBe(['work', 'own', 'sales', 'admin', 'maintenance'])
->and(menuLabels($user))->toContain('Laskutus', 'Tunnit henkilöittäin', 'Pohjatiedot', 'Työnkulkupohjat')
->and(menuLabels($user))->not->toContain('Käyttäjät', 'Yritystiedot');
});