From 1b54059b5d0f604283b0dc08356c7970e3b1cacb Mon Sep 17 00:00:00 2001 From: nikolai Date: Thu, 5 Dec 2024 16:38:15 +0400 Subject: [PATCH] fix tests --- src/test/__tests__/components/EditPreview.test.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/test/__tests__/components/EditPreview.test.tsx b/src/test/__tests__/components/EditPreview.test.tsx index fa619127..183a1699 100644 --- a/src/test/__tests__/components/EditPreview.test.tsx +++ b/src/test/__tests__/components/EditPreview.test.tsx @@ -1,7 +1,7 @@ import { PROFILE_BFIDS } from '@common/constants/bibframe.constants'; import { EditPreview } from '@components/EditPreview'; import state from '@state'; -import { fireEvent, render, screen } from '@testing-library/react'; +import { render, screen } from '@testing-library/react'; import { RouterProvider, createMemoryRouter } from 'react-router-dom'; import { RecoilRoot } from 'recoil'; @@ -34,12 +34,6 @@ describe('EditPreview', () => { const { getByTestId } = screen; - test('navigates to add new instance screen', () => { - fireEvent.click(getByTestId('create-instance-button')); - - expect(navigate).toHaveBeenCalled(); - }); - test('contains instances list when create work page is opened', () => { expect(getByTestId('instances-list')).toBeInTheDocument(); });