From e45ecbdceab8ce95724bfc284af64af6de3c8322 Mon Sep 17 00:00:00 2001 From: v1rtl Date: Tue, 27 Aug 2024 15:51:21 +0300 Subject: [PATCH] fix some more test --- .../src/components/molecules/Checkbox/Checkbox.test.tsx | 6 ------ .../src/components/molecules/RadioButton/Radio.test.tsx | 4 ---- 2 files changed, 10 deletions(-) diff --git a/components/src/components/molecules/Checkbox/Checkbox.test.tsx b/components/src/components/molecules/Checkbox/Checkbox.test.tsx index b78308ab..1e75e162 100644 --- a/components/src/components/molecules/Checkbox/Checkbox.test.tsx +++ b/components/src/components/molecules/Checkbox/Checkbox.test.tsx @@ -66,12 +66,6 @@ describe('', () => { await waitFor(() => { expect(screen.queryByText('unchecked')).toBeInTheDocument() }) - expect( - userEvent.click(screen.getByText('checkbox-label')), - ).rejects.toThrow() - await waitFor(() => { - expect(screen.queryByText('unchecked')).toBeInTheDocument() - }) }) it('should pass a ref down', async () => { diff --git a/components/src/components/molecules/RadioButton/Radio.test.tsx b/components/src/components/molecules/RadioButton/Radio.test.tsx index ffdb5e7d..fa0bdcaf 100644 --- a/components/src/components/molecules/RadioButton/Radio.test.tsx +++ b/components/src/components/molecules/RadioButton/Radio.test.tsx @@ -61,10 +61,6 @@ describe('', () => { await waitFor(() => { expect(screen.queryByText('unchecked')).toBeInTheDocument() }) - expect(userEvent.click(screen.getByText('radio-label'))).rejects.toThrow() - await waitFor(() => { - expect(screen.queryByText('unchecked')).toBeInTheDocument() - }) }) it('should pass a ref down', async () => {