diff --git a/packages/core/admin/admin/src/content-manager/pages/App/tests/index.test.js b/packages/core/admin/admin/src/content-manager/pages/App/tests/index.test.js index a01c620c4f..51cf151367 100644 --- a/packages/core/admin/admin/src/content-manager/pages/App/tests/index.test.js +++ b/packages/core/admin/admin/src/content-manager/pages/App/tests/index.test.js @@ -4,6 +4,8 @@ import { createStore, combineReducers } from 'redux'; import { Router } from 'react-router-dom'; import { createMemoryHistory } from 'history'; import { Provider } from 'react-redux'; +import { DndProvider } from 'react-dnd'; +import { HTML5Backend } from 'react-dnd-html5-backend'; import { render, screen } from '@testing-library/react'; import ContentManagerApp from '..'; import cmReducers from '../../../../reducers'; @@ -86,11 +88,13 @@ describe('Content manager | App | main', () => { history.push('/content-manager'); const { container } = render( - - - - - + + + + + + + ); expect(screen.getByText('Home page')).toBeVisible(); @@ -443,11 +447,13 @@ describe('Content manager | App | main', () => { history.push('/content-manager'); render( - - - - - + + + + + + + ); expect(history.location.pathname).toEqual('/content-manager/homepage'); @@ -480,11 +486,13 @@ describe('Content manager | App | main', () => { history.push('/content-manager/collectionType/category'); render( - - - - - + + + + + + + ); expect(history.location.pathname).toEqual('/content-manager/403'); @@ -510,11 +518,13 @@ describe('Content manager | App | main', () => { history.push('/content-manager/collectionType/category'); render( - - - - - + + + + + + + ); expect(history.location.pathname).toEqual('/content-manager/no-content-types');