webpack/scenes/Content/__tests__/contentTable.test.js in katello-4.8.0.rc2 vs webpack/scenes/Content/__tests__/contentTable.test.js in katello-4.8.0

- old
+ new

@@ -1,10 +1,10 @@ import React from 'react'; import { renderWithRedux, patientlyWaitFor } from 'react-testing-lib-wrapper'; import { nockInstance, assertNockRequest, mockAutocomplete } from '../../../test-utils/nockWrapper'; import api from '../../../services/api'; -import ContentPage from '../ContentPage'; +import GenericContentPage from '../GenericContentPage'; import ansibleCollectionsResponse from './ansibleCollections.fixtures'; import contentTypesResponse from './contentTypes.fixtures.json'; import pythonPackagesResponse from './pythonPackages.fixtures.json'; import ContentTable from '../Table/ContentTable'; @@ -27,10 +27,10 @@ .get(contentTypesPath) .query(true) .reply(200, contentTypesResponse); const { queryByText, getAllByText } = - renderWithRedux(<ContentPage />); + renderWithRedux(<GenericContentPage />); expect(queryByText(firstPackage.name)).toBeNull(); await patientlyWaitFor(() => { expect(getAllByText(firstPackage.name)[0]).toBeInTheDocument(); expect(getAllByText(firstPackage.version)[0]).toBeInTheDocument();