aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/forms/settings-form/settings-form.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/organisms/forms/settings-form/settings-form.test.tsx')
-rw-r--r--src/components/organisms/forms/settings-form/settings-form.test.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/components/organisms/forms/settings-form/settings-form.test.tsx b/src/components/organisms/forms/settings-form/settings-form.test.tsx
new file mode 100644
index 0000000..7029595
--- /dev/null
+++ b/src/components/organisms/forms/settings-form/settings-form.test.tsx
@@ -0,0 +1,15 @@
+import { describe, expect, it } from '@jest/globals';
+import { render, screen as rtlScreen } from '../../../../../tests/utils';
+import { SettingsForm } from './settings-form';
+
+describe('SettingsForm', () => {
+ it('renders a form with four settings', () => {
+ const label = 'voluptatem maiores rerum';
+ const settingsNumber = 4;
+
+ render(<SettingsForm aria-label={label} />);
+
+ expect(rtlScreen.getByRole('form', { name: label })).toBeInTheDocument();
+ expect(rtlScreen.getAllByRole('radiogroup')).toHaveLength(settingsNumber);
+ });
+});