diff --git a/webpack/assets/javascripts/react_app/common/HOC.test.js b/webpack/assets/javascripts/react_app/common/HOC.test.js index ab6d9614251..6727eff09f2 100644 --- a/webpack/assets/javascripts/react_app/common/HOC.test.js +++ b/webpack/assets/javascripts/react_app/common/HOC.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { callOnMount, withRenderHandler, callOnPopState } from './HOC'; diff --git a/webpack/assets/javascripts/react_app/common/testHelpers.js b/webpack/assets/javascripts/react_app/common/testHelpers.js index ecb0c97268d..5b63970ef16 100644 --- a/webpack/assets/javascripts/react_app/common/testHelpers.js +++ b/webpack/assets/javascripts/react_app/common/testHelpers.js @@ -1,7 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; - -jest.useFakeTimers(); +import { shallow } from 'enzyme'; export default { mockStorage: () => { @@ -80,6 +78,7 @@ const resolveDispatch = async (action, depth) => { if (depth && typeof action === 'function') { const dispatch = jest.fn(); await action(dispatch); + jest.useFakeTimers(); jest.runOnlyPendingTimers(); return Promise.all( diff --git a/webpack/assets/javascripts/react_app/components/BreadcrumbBar/__tests__/BreadcrumbBar.test.js b/webpack/assets/javascripts/react_app/components/BreadcrumbBar/__tests__/BreadcrumbBar.test.js index a86dfd49f0d..ddf0d33a9fb 100644 --- a/webpack/assets/javascripts/react_app/components/BreadcrumbBar/__tests__/BreadcrumbBar.test.js +++ b/webpack/assets/javascripts/react_app/components/BreadcrumbBar/__tests__/BreadcrumbBar.test.js @@ -1,6 +1,5 @@ import React from 'react'; import { render, fireEvent, screen, act } from '@testing-library/react'; -import { mount } from '@theforeman/test'; import { testComponentSnapshotsWithFixtures } from '../../../common/testHelpers'; diff --git a/webpack/assets/javascripts/react_app/components/ChartBox/ChartBox.test.js b/webpack/assets/javascripts/react_app/components/ChartBox/ChartBox.test.js index b81fbcecfb5..c26c8334c76 100644 --- a/webpack/assets/javascripts/react_app/components/ChartBox/ChartBox.test.js +++ b/webpack/assets/javascripts/react_app/components/ChartBox/ChartBox.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import ChartBox from './ChartBox'; import { classFunctionUnitTest } from '../../common/testHelpers'; diff --git a/webpack/assets/javascripts/react_app/components/ConfigReports/ConfigReports.test.js b/webpack/assets/javascripts/react_app/components/ConfigReports/ConfigReports.test.js index 1a17f7e0cc1..48ac9b38a97 100644 --- a/webpack/assets/javascripts/react_app/components/ConfigReports/ConfigReports.test.js +++ b/webpack/assets/javascripts/react_app/components/ConfigReports/ConfigReports.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import ConfigReports from './ConfigReports'; diff --git a/webpack/assets/javascripts/react_app/components/ConfigReports/DiffModal/__tests__/DiffModal.test.js b/webpack/assets/javascripts/react_app/components/ConfigReports/DiffModal/__tests__/DiffModal.test.js index 5fcbeb65bd1..56e809898fe 100644 --- a/webpack/assets/javascripts/react_app/components/ConfigReports/DiffModal/__tests__/DiffModal.test.js +++ b/webpack/assets/javascripts/react_app/components/ConfigReports/DiffModal/__tests__/DiffModal.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { testComponentSnapshotsWithFixtures } from '../../../../common/testHelpers'; import DiffModal from '../DiffModal'; diff --git a/webpack/assets/javascripts/react_app/components/ConfirmModal/integration.test.js b/webpack/assets/javascripts/react_app/components/ConfirmModal/integration.test.js index 479bf90bb00..52ed9ecaed7 100644 --- a/webpack/assets/javascripts/react_app/components/ConfirmModal/integration.test.js +++ b/webpack/assets/javascripts/react_app/components/ConfirmModal/integration.test.js @@ -1,6 +1,6 @@ import React from 'react'; import { Provider } from 'react-redux'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { Button } from '@patternfly/react-core'; import store from '../../redux'; import ConfirmModal, { openConfirmModal } from './index'; diff --git a/webpack/assets/javascripts/react_app/components/Editor/__tests__/Editor.test.js b/webpack/assets/javascripts/react_app/components/Editor/__tests__/Editor.test.js index 2e0d6d67e67..30513634beb 100644 --- a/webpack/assets/javascripts/react_app/components/Editor/__tests__/Editor.test.js +++ b/webpack/assets/javascripts/react_app/components/Editor/__tests__/Editor.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { testComponentSnapshotsWithFixtures } from '../../../common/testHelpers'; import Editor from '../Editor'; import { editorOptions } from '../Editor.fixtures'; diff --git a/webpack/assets/javascripts/react_app/components/Editor/components/__tests__/EditorNavbar.test.js b/webpack/assets/javascripts/react_app/components/Editor/components/__tests__/EditorNavbar.test.js index 527243a1f92..04ca650440c 100644 --- a/webpack/assets/javascripts/react_app/components/Editor/components/__tests__/EditorNavbar.test.js +++ b/webpack/assets/javascripts/react_app/components/Editor/components/__tests__/EditorNavbar.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { testComponentSnapshotsWithFixtures } from '../../../../common/testHelpers'; import EditorNavbar from '../EditorNavbar'; diff --git a/webpack/assets/javascripts/react_app/components/Editor/components/__tests__/EditorOptions.test.js b/webpack/assets/javascripts/react_app/components/Editor/components/__tests__/EditorOptions.test.js index de6300d14f0..d7b31e68a5a 100644 --- a/webpack/assets/javascripts/react_app/components/Editor/components/__tests__/EditorOptions.test.js +++ b/webpack/assets/javascripts/react_app/components/Editor/components/__tests__/EditorOptions.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { testComponentSnapshotsWithFixtures } from '../../../../common/testHelpers'; import EditorOptions from '../EditorOptions'; diff --git a/webpack/assets/javascripts/react_app/components/ExternalLogout/__tests__/ExternalLogout.test.js b/webpack/assets/javascripts/react_app/components/ExternalLogout/__tests__/ExternalLogout.test.js index d63b7c29888..eab80f58f7e 100644 --- a/webpack/assets/javascripts/react_app/components/ExternalLogout/__tests__/ExternalLogout.test.js +++ b/webpack/assets/javascripts/react_app/components/ExternalLogout/__tests__/ExternalLogout.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import ExternalLogout from '../ExternalLogout'; import { props } from '../ExternalLogout.fixtures'; diff --git a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/SubmitOrCancel.test.js b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/SubmitOrCancel.test.js index abaf2ab3882..e32de925747 100644 --- a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/SubmitOrCancel.test.js +++ b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/SubmitOrCancel.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import SubmitOrCancel from './SubmitOrCancel'; diff --git a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/__tests__/ForemanModalFooter.test.js b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/__tests__/ForemanModalFooter.test.js index 8a41647362d..05c5699d75a 100644 --- a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/__tests__/ForemanModalFooter.test.js +++ b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/__tests__/ForemanModalFooter.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import { Button, Modal } from 'patternfly-react'; import ForemanModalFooter from '../ForemanModalFooter'; import * as ModalContext from '../../ForemanModalHooks'; // so enzyme test works diff --git a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/__tests__/ForemanModalHeader.test.js b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/__tests__/ForemanModalHeader.test.js index 1f3ce92b434..3c6f2c83393 100644 --- a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/__tests__/ForemanModalHeader.test.js +++ b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/__tests__/ForemanModalHeader.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import { Modal } from 'patternfly-react'; import ForemanModalHeader from '../ForemanModalHeader'; import * as ModalContext from '../../ForemanModalHooks'; // so enzyme test works diff --git a/webpack/assets/javascripts/react_app/components/Layout/components/ImpersonateIcon/ImpersonateIcon.test.js b/webpack/assets/javascripts/react_app/components/Layout/components/ImpersonateIcon/ImpersonateIcon.test.js index d5132cdac71..2f79b894c50 100644 --- a/webpack/assets/javascripts/react_app/components/Layout/components/ImpersonateIcon/ImpersonateIcon.test.js +++ b/webpack/assets/javascripts/react_app/components/Layout/components/ImpersonateIcon/ImpersonateIcon.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import ImpersonateIcon from './ImpersonateIcon'; diff --git a/webpack/assets/javascripts/react_app/components/Layout/components/Toolbar/HeaderToolbar.test.js b/webpack/assets/javascripts/react_app/components/Layout/components/Toolbar/HeaderToolbar.test.js index 6c029c077d8..3896865c879 100644 --- a/webpack/assets/javascripts/react_app/components/Layout/components/Toolbar/HeaderToolbar.test.js +++ b/webpack/assets/javascripts/react_app/components/Layout/components/Toolbar/HeaderToolbar.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import { hasTaxonomiesMock } from '../../Layout.fixtures'; import { noop } from '../../../../common/helpers'; diff --git a/webpack/assets/javascripts/react_app/components/MemoryAllocationInput/__tests__/MemoryAllocationInput.test.js b/webpack/assets/javascripts/react_app/components/MemoryAllocationInput/__tests__/MemoryAllocationInput.test.js index 556e25a393b..9ad986357ef 100644 --- a/webpack/assets/javascripts/react_app/components/MemoryAllocationInput/__tests__/MemoryAllocationInput.test.js +++ b/webpack/assets/javascripts/react_app/components/MemoryAllocationInput/__tests__/MemoryAllocationInput.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import { MEGABYTES } from '../constants'; import MemoryAllocationInput from '../'; diff --git a/webpack/assets/javascripts/react_app/components/PF4/Bookmarks/__tests__/Bookmarks.test.js b/webpack/assets/javascripts/react_app/components/PF4/Bookmarks/__tests__/Bookmarks.test.js index 0f3f43cf44a..e5cacded619 100644 --- a/webpack/assets/javascripts/react_app/components/PF4/Bookmarks/__tests__/Bookmarks.test.js +++ b/webpack/assets/javascripts/react_app/components/PF4/Bookmarks/__tests__/Bookmarks.test.js @@ -1,4 +1,3 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; import React from 'react'; import { Provider } from 'react-redux'; import store from '../../../../redux'; diff --git a/webpack/assets/javascripts/react_app/components/PF4/DocumentationLink/DocumentationLink.test.js b/webpack/assets/javascripts/react_app/components/PF4/DocumentationLink/DocumentationLink.test.js index 7cee3c80b15..905392e36bf 100644 --- a/webpack/assets/javascripts/react_app/components/PF4/DocumentationLink/DocumentationLink.test.js +++ b/webpack/assets/javascripts/react_app/components/PF4/DocumentationLink/DocumentationLink.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import Link from './index'; diff --git a/webpack/assets/javascripts/react_app/components/PasswordStrength/__tests__/PasswordStrength.test.js b/webpack/assets/javascripts/react_app/components/PasswordStrength/__tests__/PasswordStrength.test.js index 71d49e69a78..718a094bcaf 100644 --- a/webpack/assets/javascripts/react_app/components/PasswordStrength/__tests__/PasswordStrength.test.js +++ b/webpack/assets/javascripts/react_app/components/PasswordStrength/__tests__/PasswordStrength.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { testComponentSnapshotsWithFixtures } from '../../../common/testHelpers'; diff --git a/webpack/assets/javascripts/react_app/components/SettingRecords/__tests__/SettingRecordsReducer.test.js b/webpack/assets/javascripts/react_app/components/SettingRecords/__tests__/SettingRecordsReducer.test.js index 90c20d94482..ae91beb47aa 100644 --- a/webpack/assets/javascripts/react_app/components/SettingRecords/__tests__/SettingRecordsReducer.test.js +++ b/webpack/assets/javascripts/react_app/components/SettingRecords/__tests__/SettingRecordsReducer.test.js @@ -1,4 +1,4 @@ -import { testReducerSnapshotWithFixtures } from '@theforeman/test'; +import { testReducerSnapshotWithFixtures } from 'foremanReact/common/testHelpers'; import { default as reducer, initialState } from '../SettingRecordsReducer'; diff --git a/webpack/assets/javascripts/react_app/components/SettingRecords/__tests__/SettingRecordsSelectors.test.js b/webpack/assets/javascripts/react_app/components/SettingRecords/__tests__/SettingRecordsSelectors.test.js index 706b83f1a14..9f32648a377 100644 --- a/webpack/assets/javascripts/react_app/components/SettingRecords/__tests__/SettingRecordsSelectors.test.js +++ b/webpack/assets/javascripts/react_app/components/SettingRecords/__tests__/SettingRecordsSelectors.test.js @@ -1,4 +1,4 @@ -import { testSelectorsSnapshotWithFixtures } from '@theforeman/test'; +import { testSelectorsSnapshotWithFixtures } from 'foremanReact/common/testHelpers'; import { selectSettings, diff --git a/webpack/assets/javascripts/react_app/components/SettingUpdateModal/SettingUpdateModal.test.js b/webpack/assets/javascripts/react_app/components/SettingUpdateModal/SettingUpdateModal.test.js index 605749ac0e6..d359f0f10db 100644 --- a/webpack/assets/javascripts/react_app/components/SettingUpdateModal/SettingUpdateModal.test.js +++ b/webpack/assets/javascripts/react_app/components/SettingUpdateModal/SettingUpdateModal.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import { arraySetting } from '../SettingRecords/__tests__/SettingRecords.fixtures'; diff --git a/webpack/assets/javascripts/react_app/components/SettingUpdateModal/components/SettingValueField.test.js b/webpack/assets/javascripts/react_app/components/SettingUpdateModal/components/SettingValueField.test.js index c76bf679b65..978be53736d 100644 --- a/webpack/assets/javascripts/react_app/components/SettingUpdateModal/components/SettingValueField.test.js +++ b/webpack/assets/javascripts/react_app/components/SettingUpdateModal/components/SettingValueField.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import SettingValueField from './SettingValueField'; diff --git a/webpack/assets/javascripts/react_app/components/SettingsTable/__tests__/SettingsTable.test.js b/webpack/assets/javascripts/react_app/components/SettingsTable/__tests__/SettingsTable.test.js index 68799862484..9cf4dea3c16 100644 --- a/webpack/assets/javascripts/react_app/components/SettingsTable/__tests__/SettingsTable.test.js +++ b/webpack/assets/javascripts/react_app/components/SettingsTable/__tests__/SettingsTable.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import { groupedSettings } from '../../SettingRecords/__tests__/SettingRecords.fixtures'; diff --git a/webpack/assets/javascripts/react_app/components/SettingsTable/components/__tests__/SettingCell.test.js b/webpack/assets/javascripts/react_app/components/SettingsTable/components/__tests__/SettingCell.test.js index e6cd0b73c83..d766a4b7ee3 100644 --- a/webpack/assets/javascripts/react_app/components/SettingsTable/components/__tests__/SettingCell.test.js +++ b/webpack/assets/javascripts/react_app/components/SettingsTable/components/__tests__/SettingCell.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import { rootPass, diff --git a/webpack/assets/javascripts/react_app/components/SettingsTable/components/__tests__/SettingName.test.js b/webpack/assets/javascripts/react_app/components/SettingsTable/components/__tests__/SettingName.test.js index 19c16153c59..fca1311af45 100644 --- a/webpack/assets/javascripts/react_app/components/SettingsTable/components/__tests__/SettingName.test.js +++ b/webpack/assets/javascripts/react_app/components/SettingsTable/components/__tests__/SettingName.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import { rootPass, diff --git a/webpack/assets/javascripts/react_app/components/ToastsList/__tests__/integration.test.js b/webpack/assets/javascripts/react_app/components/ToastsList/__tests__/integration.test.js index 92c109172ed..d3a7448a5f0 100644 --- a/webpack/assets/javascripts/react_app/components/ToastsList/__tests__/integration.test.js +++ b/webpack/assets/javascripts/react_app/components/ToastsList/__tests__/integration.test.js @@ -1,6 +1,6 @@ import React from 'react'; import { Provider } from 'react-redux'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import store from '../../../redux'; import ToastsList, { addToast, deleteToast } from '../index' diff --git a/webpack/assets/javascripts/react_app/components/common/ActionButtons/ActionButtons.test.js b/webpack/assets/javascripts/react_app/components/common/ActionButtons/ActionButtons.test.js index 45c04779b24..3c97cdd4237 100644 --- a/webpack/assets/javascripts/react_app/components/common/ActionButtons/ActionButtons.test.js +++ b/webpack/assets/javascripts/react_app/components/common/ActionButtons/ActionButtons.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import { ActionButtons } from './ActionButtons'; import { buttons } from './ActionButtons.fixtures'; diff --git a/webpack/assets/javascripts/react_app/components/common/Alert/AlertBody.test.js b/webpack/assets/javascripts/react_app/components/common/Alert/AlertBody.test.js index 27031e8690e..e7dce609455 100644 --- a/webpack/assets/javascripts/react_app/components/common/Alert/AlertBody.test.js +++ b/webpack/assets/javascripts/react_app/components/common/Alert/AlertBody.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import AlertBody from './AlertBody'; diff --git a/webpack/assets/javascripts/react_app/components/common/Alert/AlertLink.test.js b/webpack/assets/javascripts/react_app/components/common/Alert/AlertLink.test.js index faf02a01cde..c2a759c04cd 100644 --- a/webpack/assets/javascripts/react_app/components/common/Alert/AlertLink.test.js +++ b/webpack/assets/javascripts/react_app/components/common/Alert/AlertLink.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import AlertLink from './AlertLink'; diff --git a/webpack/assets/javascripts/react_app/components/common/ComponentWrapper/ComponentWrapper.test.js b/webpack/assets/javascripts/react_app/components/common/ComponentWrapper/ComponentWrapper.test.js index eb2c9f6d045..858281cda00 100644 --- a/webpack/assets/javascripts/react_app/components/common/ComponentWrapper/ComponentWrapper.test.js +++ b/webpack/assets/javascripts/react_app/components/common/ComponentWrapper/ComponentWrapper.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import componentRegistry from '../../componentRegistry'; import ComponentWrapper from './ComponentWrapper'; diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DateInput.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DateInput.test.js index 98c4b6ab193..2a4a564196e 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DateInput.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DateInput.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow, mount } from '@theforeman/test'; +import { shallow, mount } from 'enzyme'; import DateInput from './DateInput'; test('DateInput is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/Day.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/Day.test.js index 962e50a3c7e..ccee6ef4d7d 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/Day.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/Day.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import Day from './Day'; test('Day is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeView.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeView.test.js index 051d8a830f4..a45612aec9e 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeView.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeView.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow, mount } from '@theforeman/test'; +import { shallow, mount } from 'enzyme'; import DecadeView from './DecadeView'; test('DecadeView is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeViewHeader.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeViewHeader.test.js index d193691add4..0fba60bfb15 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeViewHeader.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeViewHeader.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import { DecadeViewHeader } from './DecadeViewHeader'; test('DecadeViewHeader is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeViewTable.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeViewTable.test.js index 20a72bae885..74dbd93fa9b 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeViewTable.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/DecadeViewTable.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import { DecadeViewTable } from './DecadeViewTable'; test('DecadeViewTable is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/Header.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/Header.test.js index cc50df728a5..f88d12f8786 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/Header.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/Header.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import Header from './Header'; test('Header is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/MonthView.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/MonthView.test.js index ca5bf935ed3..23703b6dddb 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/MonthView.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/MonthView.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import MonthView from './MonthView'; test('MonthView is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/TodayButton.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/TodayButton.test.js index c8a2a7aa963..0d7a4358a93 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/TodayButton.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/TodayButton.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import TodayButton from './TodayButton'; const mockedDate = new Date('2/21/2019 , 3:22:31 PM'); diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/YearView.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/YearView.test.js index 5cd7c691551..92382a3f846 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/YearView.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateComponents/YearView.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import YearView from './YearView'; test('YearView is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DatePicker.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DatePicker.test.js index 3c8964fcbc7..971498ad680 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DatePicker.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DatePicker.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import DatePicker from './DatePicker'; describe('DatePicker', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateTimePicker.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateTimePicker.test.js index 5b8e713b3e4..b9a0435edd1 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateTimePicker.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/DateTimePicker.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import DateTimePicker from './DateTimePicker'; describe('DateTimePicker', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/PickTimeClock.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/PickTimeClock.test.js index 766a2f3e501..b98ac585b97 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/PickTimeClock.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/PickTimeClock.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow, mount } from '@theforeman/test'; +import { shallow, mount } from 'enzyme'; import PickTimeClock from './PickTimeClock'; import { MINUTE, HOUR } from './TimeConstants'; diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/PickTimeTable.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/PickTimeTable.test.js index cc0f79e9fda..9cbd183db0c 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/PickTimeTable.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/PickTimeTable.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import PickTimeTable from './PickTimeTable'; import { MINUTE, HOUR } from './TimeConstants'; diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/TimeInput.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/TimeInput.test.js index ff463a6bc5b..221fe4803e3 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/TimeInput.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimeComponents/TimeInput.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow, mount } from '@theforeman/test'; +import { shallow, mount } from 'enzyme'; import TimeInput from './TimeInput'; test('TimeInput is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimePicker.test.js b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimePicker.test.js index e4511a84ebb..11c1d4aec25 100644 --- a/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimePicker.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DateTimePicker/TimePicker.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import TimePicker from './TimePicker'; test('TimePicker is working properly', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/DocumentationLink/DocumentationLink.test.js b/webpack/assets/javascripts/react_app/components/common/DocumentationLink/DocumentationLink.test.js index b47e90902bf..aff30ed02ec 100644 --- a/webpack/assets/javascripts/react_app/components/common/DocumentationLink/DocumentationLink.test.js +++ b/webpack/assets/javascripts/react_app/components/common/DocumentationLink/DocumentationLink.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import Link from './index'; diff --git a/webpack/assets/javascripts/react_app/components/common/Fill/__tests__/FillReducer.test.js b/webpack/assets/javascripts/react_app/components/common/Fill/__tests__/FillReducer.test.js index 4f19db384f1..3eda8463764 100644 --- a/webpack/assets/javascripts/react_app/components/common/Fill/__tests__/FillReducer.test.js +++ b/webpack/assets/javascripts/react_app/components/common/Fill/__tests__/FillReducer.test.js @@ -1,4 +1,4 @@ -import { testReducerSnapshotWithFixtures } from '@theforeman/test'; +import { testReducerSnapshotWithFixtures } from 'foremanReact/common/testHelpers'; import Immutable from 'seamless-immutable'; import reducer from '../FillReducer'; import { REMOVE_FILLED_COMPONENT } from '../FillConstants'; diff --git a/webpack/assets/javascripts/react_app/components/common/Loader/Loader.test.js b/webpack/assets/javascripts/react_app/components/common/Loader/Loader.test.js index 67981863262..370f1d7966c 100644 --- a/webpack/assets/javascripts/react_app/components/common/Loader/Loader.test.js +++ b/webpack/assets/javascripts/react_app/components/common/Loader/Loader.test.js @@ -1,4 +1,4 @@ -import { shallow, mount } from '@theforeman/test'; +import { shallow, mount } from 'enzyme'; import React from 'react'; import { STATUS } from '../../../constants'; diff --git a/webpack/assets/javascripts/react_app/components/common/MessageBox/MessageBox.test.js b/webpack/assets/javascripts/react_app/components/common/MessageBox/MessageBox.test.js index a695222ba9f..3887b509b9a 100644 --- a/webpack/assets/javascripts/react_app/components/common/MessageBox/MessageBox.test.js +++ b/webpack/assets/javascripts/react_app/components/common/MessageBox/MessageBox.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import MessageBox from './index'; diff --git a/webpack/assets/javascripts/react_app/components/common/ModalProgressBar/__tests__/ModalProgressBar.test.js b/webpack/assets/javascripts/react_app/components/common/ModalProgressBar/__tests__/ModalProgressBar.test.js index 6573b1ecd70..acdd062e93c 100644 --- a/webpack/assets/javascripts/react_app/components/common/ModalProgressBar/__tests__/ModalProgressBar.test.js +++ b/webpack/assets/javascripts/react_app/components/common/ModalProgressBar/__tests__/ModalProgressBar.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import ModalProgressBar from '../ModalProgressBar'; describe('ModalProgressBar', () => { diff --git a/webpack/assets/javascripts/react_app/components/common/RedirectCancelButton/RedirectCancelButton.test.js b/webpack/assets/javascripts/react_app/components/common/RedirectCancelButton/RedirectCancelButton.test.js index 211a92a5fbc..f6a523afb8d 100644 --- a/webpack/assets/javascripts/react_app/components/common/RedirectCancelButton/RedirectCancelButton.test.js +++ b/webpack/assets/javascripts/react_app/components/common/RedirectCancelButton/RedirectCancelButton.test.js @@ -1,6 +1,6 @@ import React from 'react'; -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import RedirectCancelButton from './RedirectCancelButton'; diff --git a/webpack/assets/javascripts/react_app/components/common/SearchInput/SearchInput.test.js b/webpack/assets/javascripts/react_app/components/common/SearchInput/SearchInput.test.js index 74a4fa0a154..d2788a082b3 100644 --- a/webpack/assets/javascripts/react_app/components/common/SearchInput/SearchInput.test.js +++ b/webpack/assets/javascripts/react_app/components/common/SearchInput/SearchInput.test.js @@ -1,4 +1,4 @@ -import { shallow, mount } from '@theforeman/test'; +import { shallow, mount } from 'enzyme'; import React from 'react'; import SearchInput from './'; diff --git a/webpack/assets/javascripts/react_app/components/common/SkeletonLoader/SkeletonLoader.test.js b/webpack/assets/javascripts/react_app/components/common/SkeletonLoader/SkeletonLoader.test.js index 18957adc4ba..0b37bf7713b 100644 --- a/webpack/assets/javascripts/react_app/components/common/SkeletonLoader/SkeletonLoader.test.js +++ b/webpack/assets/javascripts/react_app/components/common/SkeletonLoader/SkeletonLoader.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import SkeletonLoader from '.'; import { STATUS } from '../../../constants'; const fixtures = { diff --git a/webpack/assets/javascripts/react_app/components/common/charts/BarChart/BarChart.test.js b/webpack/assets/javascripts/react_app/components/common/charts/BarChart/BarChart.test.js index 847f6cfbca1..560dbaa9555 100644 --- a/webpack/assets/javascripts/react_app/components/common/charts/BarChart/BarChart.test.js +++ b/webpack/assets/javascripts/react_app/components/common/charts/BarChart/BarChart.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import BarChart from './'; import * as chartService from '../../../../../services/charts/BarChartService'; diff --git a/webpack/assets/javascripts/react_app/components/common/charts/DonutChart/DonutChart.test.js b/webpack/assets/javascripts/react_app/components/common/charts/DonutChart/DonutChart.test.js index f82921cb624..33bda555cf8 100644 --- a/webpack/assets/javascripts/react_app/components/common/charts/DonutChart/DonutChart.test.js +++ b/webpack/assets/javascripts/react_app/components/common/charts/DonutChart/DonutChart.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import { mockData, emptyData } from './DonutChart.fixtures'; import DonutChart from './'; diff --git a/webpack/assets/javascripts/react_app/components/common/charts/LineChart/LineChart.test.js b/webpack/assets/javascripts/react_app/components/common/charts/LineChart/LineChart.test.js index 9262129308d..df6e5b5751a 100644 --- a/webpack/assets/javascripts/react_app/components/common/charts/LineChart/LineChart.test.js +++ b/webpack/assets/javascripts/react_app/components/common/charts/LineChart/LineChart.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import { data, timeseriesData } from './LineChart.fixtures'; import LineChart from './index'; diff --git a/webpack/assets/javascripts/react_app/components/common/dates/IsoDate.test.js b/webpack/assets/javascripts/react_app/components/common/dates/IsoDate.test.js index 8e48da64bb5..5afa3a6e377 100644 --- a/webpack/assets/javascripts/react_app/components/common/dates/IsoDate.test.js +++ b/webpack/assets/javascripts/react_app/components/common/dates/IsoDate.test.js @@ -1,6 +1,6 @@ /* eslint-disable promise/prefer-await-to-then */ // Configure Enzyme -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import React from 'react'; import IsoDate from './IsoDate'; import { i18nProviderWrapperFactory } from '../../../common/i18nProviderWrapperFactory'; diff --git a/webpack/assets/javascripts/react_app/components/common/dates/LongDateTime.test.js b/webpack/assets/javascripts/react_app/components/common/dates/LongDateTime.test.js index c4f096b10e9..8c5096f24b6 100644 --- a/webpack/assets/javascripts/react_app/components/common/dates/LongDateTime.test.js +++ b/webpack/assets/javascripts/react_app/components/common/dates/LongDateTime.test.js @@ -1,6 +1,6 @@ /* eslint-disable promise/prefer-await-to-then */ // Configure Enzyme -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import React from 'react'; import LongDateTime from './LongDateTime'; import { i18nProviderWrapperFactory } from '../../../common/i18nProviderWrapperFactory'; diff --git a/webpack/assets/javascripts/react_app/components/common/dates/RelativeDateTime.test.js b/webpack/assets/javascripts/react_app/components/common/dates/RelativeDateTime.test.js index 8a8b0f406d9..5bb5c2d8449 100644 --- a/webpack/assets/javascripts/react_app/components/common/dates/RelativeDateTime.test.js +++ b/webpack/assets/javascripts/react_app/components/common/dates/RelativeDateTime.test.js @@ -1,6 +1,6 @@ /* eslint-disable promise/prefer-await-to-then */ // Configure Enzyme -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import React from 'react'; import RelativeDateTime from './RelativeDateTime'; import { i18nProviderWrapperFactory } from '../../../common/i18nProviderWrapperFactory'; diff --git a/webpack/assets/javascripts/react_app/components/common/dates/ShortDateTime.test.js b/webpack/assets/javascripts/react_app/components/common/dates/ShortDateTime.test.js index d1f9c23e95d..ede7e7f046a 100644 --- a/webpack/assets/javascripts/react_app/components/common/dates/ShortDateTime.test.js +++ b/webpack/assets/javascripts/react_app/components/common/dates/ShortDateTime.test.js @@ -1,6 +1,6 @@ /* eslint-disable promise/prefer-await-to-then */ // Configure Enzyme -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import React from 'react'; import ShortDateTime from './ShortDateTime'; import { i18nProviderWrapperFactory } from '../../../common/i18nProviderWrapperFactory'; diff --git a/webpack/assets/javascripts/react_app/components/common/forms/Actions.test.js b/webpack/assets/javascripts/react_app/components/common/forms/Actions.test.js index c59a8f79871..631e557dc73 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/Actions.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/Actions.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import Actions from './Actions'; diff --git a/webpack/assets/javascripts/react_app/components/common/forms/CommonForm.test.js b/webpack/assets/javascripts/react_app/components/common/forms/CommonForm.test.js index 499d62a5050..7ced1ba0862 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/CommonForm.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/CommonForm.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import { FieldLevelHelp } from 'patternfly-react'; diff --git a/webpack/assets/javascripts/react_app/components/common/forms/CounterInput/__tests__/CounterInput.test.js b/webpack/assets/javascripts/react_app/components/common/forms/CounterInput/__tests__/CounterInput.test.js index c4c5f7ad739..0804dd8ae32 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/CounterInput/__tests__/CounterInput.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/CounterInput/__tests__/CounterInput.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import CounterInput from '../'; diff --git a/webpack/assets/javascripts/react_app/components/common/forms/ForemanForm/ForemanForm.test.js b/webpack/assets/javascripts/react_app/components/common/forms/ForemanForm/ForemanForm.test.js index 69376501234..9ffe1032921 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/ForemanForm/ForemanForm.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/ForemanForm/ForemanForm.test.js @@ -1,7 +1,7 @@ import { testComponentSnapshotsWithFixtures, testSelectorsSnapshotWithFixtures, -} from '@theforeman/test'; +} from 'foremanReact/common/testHelpers'; import * as Yup from 'yup'; import { prepareErrors } from '../../../../redux/actions/common/forms'; diff --git a/webpack/assets/javascripts/react_app/components/common/forms/ForemanForm/integration.test.js b/webpack/assets/javascripts/react_app/components/common/forms/ForemanForm/integration.test.js index 8f2aac4a75e..0cb262d0b42 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/ForemanForm/integration.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/ForemanForm/integration.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { IntegrationTestHelper } from '@theforeman/test'; +import IntegrationTestHelper from 'foremanReact/common/IntegrationTestHelper'; import { submitForm } from '../../../../redux/actions/common/forms'; diff --git a/webpack/assets/javascripts/react_app/components/common/forms/Form.test.js b/webpack/assets/javascripts/react_app/components/common/forms/Form.test.js index 104c6bca864..7e119ef5704 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/Form.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/Form.test.js @@ -1,4 +1,4 @@ -import { shallow } from '@theforeman/test'; +import { shallow } from 'enzyme'; import React from 'react'; import Form from './Form'; diff --git a/webpack/assets/javascripts/react_app/components/common/forms/OrderableSelect/__tests__/OrderableSelect.test.js b/webpack/assets/javascripts/react_app/components/common/forms/OrderableSelect/__tests__/OrderableSelect.test.js index 8e6d3370bee..c56603d92b5 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/OrderableSelect/__tests__/OrderableSelect.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/OrderableSelect/__tests__/OrderableSelect.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import { act } from 'react-dom/test-utils'; import { DndProvider } from 'react-dnd'; import TestBackend from 'react-dnd-test-backend/dist/cjs/TestBackend'; diff --git a/webpack/assets/javascripts/react_app/components/common/forms/RadioButtonGroup/RadioButtonGroup.test.js b/webpack/assets/javascripts/react_app/components/common/forms/RadioButtonGroup/RadioButtonGroup.test.js index fa976d91cad..465df746196 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/RadioButtonGroup/RadioButtonGroup.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/RadioButtonGroup/RadioButtonGroup.test.js @@ -1,4 +1,4 @@ -import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; +import { testComponentSnapshotsWithFixtures } from 'foremanReact/common/testHelpers'; import RadioButtonGroup from './RadioButtonGroup'; const radios = [ diff --git a/webpack/assets/javascripts/react_app/components/common/forms/Select.test.js b/webpack/assets/javascripts/react_app/components/common/forms/Select.test.js index 34bee4e78c6..962810eaaf4 100644 --- a/webpack/assets/javascripts/react_app/components/common/forms/Select.test.js +++ b/webpack/assets/javascripts/react_app/components/common/forms/Select.test.js @@ -1,16 +1,15 @@ import 'select2'; -import { mount } from '@theforeman/test'; +import { mount } from 'enzyme'; import React from 'react'; import Select from './Select'; jest.unmock('jquery'); -beforeEach(() => { - document.body.innerHTML = '