diff --git a/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.html b/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.html index f5d4c159162d6dd81451835562b0565181092687..ab7ea88705be8d60d991cb9f50736aafc851f1a8 100644 --- a/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.html +++ b/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.html @@ -37,7 +37,7 @@ <div class="flex items-center gap-2"> <ods-checkbox-editor [formControlName]="UserFormService.LOESCHEN" - (inputChange)="updateOtherAlfaCheckboxes(UserFormService.LOESCHEN, $event)" + (inputChange)="updateAlfaCheckboxes(UserFormService.LOESCHEN, $event)" label="Löschen" inputId="delete" data-test-id="checkbox-loeschen" @@ -52,7 +52,7 @@ <div class="flex items-center gap-2"> <ods-checkbox-editor [formControlName]="UserFormService.USER" - (inputChange)="updateOtherAlfaCheckboxes(UserFormService.USER, $event)" + (inputChange)="updateAlfaCheckboxes(UserFormService.USER, $event)" label="User" inputId="user" data-test-id="checkbox-user" @@ -67,7 +67,7 @@ <div class="flex items-center gap-2"> <ods-checkbox-editor [formControlName]="UserFormService.POSTSTELLE" - (inputChange)="updateOtherAlfaCheckboxes(UserFormService.POSTSTELLE, $event)" + (inputChange)="updateAlfaCheckboxes(UserFormService.POSTSTELLE, $event)" label="Poststelle" inputId="post_office" data-test-id="checkbox-poststelle" diff --git a/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.spec.ts b/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.spec.ts index dcb15e84da62fcc6809e768d8a537cd1792e0e9c..a394794c4de41ee105285b9e11c1503ce7864d68 100644 --- a/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.spec.ts +++ b/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.spec.ts @@ -97,12 +97,12 @@ describe('UserFormRolesComponent', () => { }); }); - describe('update all other alfa checkboxes', () => { + describe('update alfa checkboxes', () => { it('should call form service updateAlfaCheckboxes', () => { const formControlName: string = 'dummy'; const value: boolean = true; - component.updateOtherAlfaCheckboxes(formControlName, value); + component.updateAlfaCheckboxes(formControlName, value); expect(formService.updateAlfaCheckboxes).toHaveBeenCalledWith(formControlName, value); }); @@ -131,7 +131,7 @@ describe('UserFormRolesComponent', () => { describe('checkbox loeschen', () => { it('should call updateOtherAlfaCheckboxes on inputChange emit', () => { - component.updateOtherAlfaCheckboxes = jest.fn(); + component.updateAlfaCheckboxes = jest.fn(); triggerEvent({ fixture, @@ -140,13 +140,13 @@ describe('UserFormRolesComponent', () => { data: true, }); - expect(component.updateOtherAlfaCheckboxes).toHaveBeenCalledWith(UserFormService.LOESCHEN, true); + expect(component.updateAlfaCheckboxes).toHaveBeenCalledWith(UserFormService.LOESCHEN, true); }); }); describe('checkbox user', () => { it('should call updateOtherAlfaCheckboxes on inputChange emit', () => { - component.updateOtherAlfaCheckboxes = jest.fn(); + component.updateAlfaCheckboxes = jest.fn(); triggerEvent({ fixture, @@ -155,13 +155,13 @@ describe('UserFormRolesComponent', () => { data: true, }); - expect(component.updateOtherAlfaCheckboxes).toHaveBeenCalledWith(UserFormService.USER, true); + expect(component.updateAlfaCheckboxes).toHaveBeenCalledWith(UserFormService.USER, true); }); }); describe('checkbox poststelle', () => { it('should call updateOtherAlfaCheckboxes on inputChange emit', () => { - component.updateOtherAlfaCheckboxes = jest.fn(); + component.updateAlfaCheckboxes = jest.fn(); triggerEvent({ fixture, @@ -170,7 +170,7 @@ describe('UserFormRolesComponent', () => { data: true, }); - expect(component.updateOtherAlfaCheckboxes).toHaveBeenCalledWith(UserFormService.POSTSTELLE, true); + expect(component.updateAlfaCheckboxes).toHaveBeenCalledWith(UserFormService.POSTSTELLE, true); }); }); }); diff --git a/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.ts b/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.ts index 9de8f65744c7e9edf0902296732e9f8e05aff0cc..0a0ff53228b6f573bfedf71e388d49677359a061 100644 --- a/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.ts +++ b/alfa-client/libs/admin/user/src/lib/user-form/user-form-roles/user-form-roles.component.ts @@ -40,7 +40,7 @@ export class UserFormRolesComponent implements OnInit { ); } - updateOtherAlfaCheckboxes(formControlName: string, value: boolean) { + updateAlfaCheckboxes(formControlName: string, value: boolean) { this.formService.updateAlfaCheckboxes(formControlName, value); } }