diff --git a/packages/react/src/FormErrorList/FormErrorList.test.tsx b/packages/react/src/FormErrorList/FormErrorList.test.tsx index 143d9faa6e..e1b16dd591 100644 --- a/packages/react/src/FormErrorList/FormErrorList.test.tsx +++ b/packages/react/src/FormErrorList/FormErrorList.test.tsx @@ -63,9 +63,9 @@ describe('Form error list', () => { }) it('renders a custom heading', () => { - render() + render() - const component = screen.getByRole('heading', { name: 'Testheading' }) + const component = screen.getByRole('heading', { name: 'Test heading' }) expect(component).toBeInTheDocument() }) diff --git a/packages/react/src/FormErrorList/FormErrorList.tsx b/packages/react/src/FormErrorList/FormErrorList.tsx index ce29f292e4..15dc5c3c8b 100644 --- a/packages/react/src/FormErrorList/FormErrorList.tsx +++ b/packages/react/src/FormErrorList/FormErrorList.tsx @@ -44,11 +44,11 @@ export const FormErrorList = forwardRef( {errors.map(({ id, label }) => (