aboutsummaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js
diff options
context:
space:
mode:
authorbrunomilitzer <bruno.militzer@est.tech>2021-08-30 18:46:53 +0100
committerbrunomilitzer <bruno.militzer@est.tech>2021-09-10 09:21:50 +0100
commita090a83268cfd8b1341c266d32ccfb670b9f0e8c (patch)
tree0b4ecc386f90316008d453c9eacd99b4063bb348 /gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js
parentf2047d16b47f086395856aefca6c5047b488d207 (diff)
Add Delete Instantiation Functionality.
Update UI to centralize Instantiation Management Created Delete button to delete the instantiations Fixed Change Order State Functionality Issue-ID: POLICY-3558 Change-Id: I2efb00ce041ab4fc217e06ed72385ad8ea1b10fb Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js')
-rw-r--r--gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js b/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js
index 61f8c1a..25292d0 100644
--- a/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js
+++ b/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js
@@ -22,27 +22,27 @@ import React from "react";
import toJson from "enzyme-to-json";
import { createMemoryHistory } from "history";
import { act } from "react-dom/test-utils";
-import InstantiationManagementModal from "./ControlLoop/InstantiationManagementModal";
+import ChangeOrderStateModal from "./ControlLoop/ChangeOrderStateModal";
describe('Verify InstantiationManagementModal', () => {
it("renders without crashing", () => {
- shallow(<InstantiationManagementModal />);
+ shallow(<ChangeOrderStateModal />);
});
it("renders correctly", () => {
- const tree = shallow(<InstantiationManagementModal />);
+ const tree = shallow(<ChangeOrderStateModal />);
expect(toJson(tree)).toMatchSnapshot();
});
it('should have save button element', () => {
- const container = shallow(<InstantiationManagementModal/>)
+ const container = shallow(<ChangeOrderStateModal/>)
expect(container.find('[variant="primary"]').length).toEqual(1);
});
it('handleSave called when save button clicked', () => {
const history = createMemoryHistory();
- const component = mount(<InstantiationManagementModal history={ history }/>)
+ const component = mount(<ChangeOrderStateModal history={ history }/>)
const logSpy = jest.spyOn(console, 'log');
act(() => {
@@ -52,13 +52,13 @@ describe('Verify InstantiationManagementModal', () => {
});
it('should have close button element', () => {
- const container = shallow(<InstantiationManagementModal/>)
+ const container = shallow(<ChangeOrderStateModal/>)
expect(container.find('[variant="secondary"]').length).toEqual(1);
});
it('handleClose called when close button clicked', () => {
const history = createMemoryHistory();
- const component = mount(<InstantiationManagementModal history={ history }/>)
+ const component = mount(<ChangeOrderStateModal history={ history }/>)
const logSpy = jest.spyOn(console, 'log');
act(() => {