diff --git a/src/components/EditSections/EditExtendedInfo/DepartmentsNameEdit/DepartmentsNameEdit.js b/src/components/EditSections/EditExtendedInfo/DepartmentsNameEdit/DepartmentsNameEdit.js
index 7d8acef0b..e4564ff7a 100644
--- a/src/components/EditSections/EditExtendedInfo/DepartmentsNameEdit/DepartmentsNameEdit.js
+++ b/src/components/EditSections/EditExtendedInfo/DepartmentsNameEdit/DepartmentsNameEdit.js
@@ -30,13 +30,14 @@ const DepartmentsNameEdit = ({ departments, disabled }) => {
return (
}
+ addLabel={}
legend={}
id="department-name"
component={RepeatableField}
name="departments"
onAdd={fields => fields.push()}
canRemove={!disabled}
+ canAdd={!disabled}
renderField={field => (
{
describe('Given DepartmentsNameEdit with disabled: true', () => {
it('should not render add button', async () => {
renderDepartmentsNameEdit({ ...props, disabled: true });
- expect(screen.queryByText('ui-users.extended.department.add')).not.toBeInTheDocument();
+ expect(screen.getByRole('button')).toBeDisabled();
});
});