From fb860884857da73ee5b5e897745301cdf1d770a2 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 5 Oct 2023 18:58:30 +0200
Subject: refactor(components): make form components compliant with Eslint
 rules

---
 src/components/molecules/forms/radio-group/radio-group.test.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/components/molecules/forms/radio-group/radio-group.test.tsx')

diff --git a/src/components/molecules/forms/radio-group/radio-group.test.tsx b/src/components/molecules/forms/radio-group/radio-group.test.tsx
index ba68925..61f4af6 100644
--- a/src/components/molecules/forms/radio-group/radio-group.test.tsx
+++ b/src/components/molecules/forms/radio-group/radio-group.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 { Legend } from '../../../atoms';
 import { RadioGroup } from './radio-group';
 import { getOptions, initialChoice } from './radio-group.fixture';
@@ -23,7 +23,7 @@ describe('RadioGroup', () => {
     );
 
     expect(
-      screen.getByRole('radiogroup', { name: legend })
+      rtlScreen.getByRole('radiogroup', { name: legend })
     ).toBeInTheDocument();
   });
 
@@ -39,7 +39,7 @@ describe('RadioGroup', () => {
       />
     );
 
-    expect(screen.getAllByRole('radio')).toHaveLength(options.length);
+    expect(rtlScreen.getAllByRole('radio')).toHaveLength(options.length);
   });
 
   it('can render an inlined radio group', () => {
@@ -55,6 +55,6 @@ describe('RadioGroup', () => {
       />
     );
 
-    expect(screen.getByRole('radiogroup')).toHaveClass('group--inline');
+    expect(rtlScreen.getByRole('radiogroup')).toHaveClass('group--inline');
   });
 });
-- 
cgit v1.2.3

