aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/forms/settings-form.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-06-01 19:34:43 +0200
committerArmand Philippot <git@armandphilippot.com>2022-06-01 22:32:16 +0200
commit6be20422494e3806fba3d1c5ad5c3e98bd6e67e5 (patch)
tree7c679e54ba4bbadaf0a59bbde780f5742e3b875d /src/components/organisms/forms/settings-form.test.tsx
parent8320b1d39ea6402c32e907dbb35082efc6af9f5a (diff)
chore: replace the Ackee select by a toggle component
Diffstat (limited to 'src/components/organisms/forms/settings-form.test.tsx')
-rw-r--r--src/components/organisms/forms/settings-form.test.tsx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/components/organisms/forms/settings-form.test.tsx b/src/components/organisms/forms/settings-form.test.tsx
index 90a2751..584261d 100644
--- a/src/components/organisms/forms/settings-form.test.tsx
+++ b/src/components/organisms/forms/settings-form.test.tsx
@@ -1,9 +1,8 @@
+import { storageKey as ackeeStorageKey } from '@components/molecules/forms/ackee-toggle.fixture';
+import { storageKey as motionStorageKey } from '@components/molecules/forms/motion-toggle.fixture';
import { render, screen } from '@test-utils';
import SettingsForm from './settings-form';
-const ackeeStorageKey = 'ackee-tracking';
-const motionStorageKey = 'reduce-motion';
-
describe('SettingsForm', () => {
it('renders a form', () => {
render(
@@ -17,7 +16,7 @@ describe('SettingsForm', () => {
).toBeInTheDocument();
});
- it('renders a theme toggle setting', () => {
+ it('renders a theme setting', () => {
render(
<SettingsForm
ackeeStorageKey={ackeeStorageKey}
@@ -29,7 +28,7 @@ describe('SettingsForm', () => {
).toBeInTheDocument();
});
- it('renders a code blocks toggle setting', () => {
+ it('renders a code blocks setting', () => {
render(
<SettingsForm
ackeeStorageKey={ackeeStorageKey}
@@ -61,7 +60,7 @@ describe('SettingsForm', () => {
/>
);
expect(
- screen.getByRole('combobox', { name: /^Tracking:/i })
+ screen.getByRole('radiogroup', { name: /^Tracking:/i })
).toBeInTheDocument();
});
});