Move the reports under the Hallinto menu
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user