aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/forms/fields/boolean-field/boolean-field.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/forms/fields/boolean-field/boolean-field.test.tsx')
-rw-r--r--src/components/atoms/forms/fields/boolean-field/boolean-field.test.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/atoms/forms/fields/boolean-field/boolean-field.test.tsx b/src/components/atoms/forms/fields/boolean-field/boolean-field.test.tsx
index 1c7fe36..82c42d9 100644
--- a/src/components/atoms/forms/fields/boolean-field/boolean-field.test.tsx
+++ b/src/components/atoms/forms/fields/boolean-field/boolean-field.test.tsx
@@ -1,5 +1,5 @@
import { describe, expect, it } from '@jest/globals';
-import { render, screen } from '../../../../../../tests/utils';
+import { render, screen as rtlScreen } from '@testing-library/react';
import { BooleanField } from './boolean-field';
const handleChange = () => {
@@ -19,7 +19,7 @@ describe('boolean field', () => {
value="checkbox"
/>
);
- expect(screen.getByRole('checkbox')).toBeInTheDocument();
+ expect(rtlScreen.getByRole('checkbox')).toBeInTheDocument();
});
it('renders a radio button', () => {
@@ -32,6 +32,6 @@ describe('boolean field', () => {
value="checkbox"
/>
);
- expect(screen.getByRole('radio')).toBeInTheDocument();
+ expect(rtlScreen.getByRole('radio')).toBeInTheDocument();
});
});