Refactor employee management by implementing automatic employee number generation, updating national ID handling, and enhancing localization for gender and nationality fields across various resources. Adjust form components and validation logic to improve user experience and data integrity.
This commit is contained in:
@@ -35,6 +35,19 @@ it('returns translated navigation group labels', function (): void {
|
||||
expect(NavigationGroup::LeaveManagement->getLabel())->toBe('Dynç alyş dolandyryşy');
|
||||
});
|
||||
|
||||
it('returns translated filament navigation group labels at request time', function (): void {
|
||||
$admin = createAdminUser(['locale' => 'tk']);
|
||||
|
||||
$this->actingAs($admin);
|
||||
|
||||
App::setLocale('tk');
|
||||
|
||||
$groups = filament()->getNavigation();
|
||||
$labels = collect($groups)->map->getLabel()->filter()->values()->all();
|
||||
|
||||
expect($labels)->toContain('Gurama', 'Işgärler', 'Dynç alyş dolandyryşy', 'Ýazgylar');
|
||||
});
|
||||
|
||||
it('returns translated filament resource navigation labels', function (): void {
|
||||
App::setLocale('tk');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user