diff --git a/src/ui/text-input/text-input.spec.tsx b/src/ui/text-input/text-input.spec.tsx new file mode 100644 index 0000000..ad543eb --- /dev/null +++ b/src/ui/text-input/text-input.spec.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { render, screen } from '@testing-library/react'; +import { axe } from 'jest-axe'; + +import { TextInput } from './text-input.component'; + +describe('Text-Input', () => { + test('renders an accessible text-input', async () => { + const { container } = render( + + ); + + expect(screen.getByRole('textbox')).toBeInTheDocument(); + expect(await axe(container)).toHaveNoViolations(); + }); +});