blob: 0f84f830488541b0a738f68b63163580169a4b04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { render, screen } from '@test-utils';
import Fieldset from './fieldset';
import { body, legend } from './fieldset.fixture';
describe('Fieldset', () => {
it('renders a legend and a body', () => {
render(<Fieldset legend={legend}>{body}</Fieldset>);
expect(screen.findByRole('group', { name: legend })).toBeInTheDocument();
expect(screen.findByText(body)).toBeInTheDocument();
});
});
|