summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/forms/fieldset.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/forms/fieldset.test.tsx')
-rw-r--r--src/components/atoms/forms/fieldset.test.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/atoms/forms/fieldset.test.tsx b/src/components/atoms/forms/fieldset.test.tsx
new file mode 100644
index 0000000..0f84f83
--- /dev/null
+++ b/src/components/atoms/forms/fieldset.test.tsx
@@ -0,0 +1,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();
+ });
+});