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(); });