import {render, screen} from '@testing-library/react'
import TextInput from '.'
describe('single-line text input component', () => {
it('should contain a text input element', () => {
render()
expect(screen.getByRole('textbox')).toBeInTheDocument()
})
it('should acquire a descriptive label', () => {
const label = 'foo'
render()
expect(screen.getByLabelText(label)).toBeInTheDocument()
})
})