summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/test/flows
diff options
context:
space:
mode:
authorsvishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>2018-01-18 17:52:06 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-01-21 11:11:06 +0000
commitaa2eece0e8559be66454b757cae4bbccb59ea828 (patch)
tree98ee345e434b11f433688ed104bb62e432dad623 /openecomp-ui/test/flows
parent30e728d280b77193500a7f0941db336ee60b80a6 (diff)
react-version-downgrade
Issue-ID: SDC-943 Change-Id: Ief0b0cf4f21a8c739521ecd869b48f8ad69fcb0f Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/test/flows')
-rw-r--r--openecomp-ui/test/flows/FlowsListEditor.test.js8
-rw-r--r--openecomp-ui/test/flows/flowsEditorModal.test.js6
2 files changed, 7 insertions, 7 deletions
diff --git a/openecomp-ui/test/flows/FlowsListEditor.test.js b/openecomp-ui/test/flows/FlowsListEditor.test.js
index 5b57e8b2c1..8cdea7bc89 100644
--- a/openecomp-ui/test/flows/FlowsListEditor.test.js
+++ b/openecomp-ui/test/flows/FlowsListEditor.test.js
@@ -15,7 +15,7 @@
*/
import React from 'react';
-import ShallowRenderer from 'react-test-renderer/shallow';
+import TestUtils from 'react-addons-test-utils';
import {mapStateToProps} from 'sdc-app/flows/FlowsListEditor.js';
import FlowsListEditorView from 'sdc-app/flows/FlowsListEditorView.jsx';
@@ -113,7 +113,7 @@ describe('Flows List Editor Mapper and View Classes: ', function () {
});
it('basic view component run with empty flowList and should show the list', () => {
- const renderer = new ShallowRenderer();
+ var renderer = TestUtils.createRenderer();
let currentFlow = FlowBasicFactory.build();
renderer.render(<FlowsListEditorView shouldShowWorkflowsEditor={true} flowList={[currentFlow]}/>);
let renderedOutput = renderer.getRenderOutput();
@@ -122,14 +122,14 @@ describe('Flows List Editor Mapper and View Classes: ', function () {
it('basic view component run with empty flowList and should show the diagram', () => {
const flow = FlowUpdateRequestFactory.build();
- const renderer = new ShallowRenderer();
+ var renderer = TestUtils.createRenderer();
renderer.render(<FlowsListEditorView currentFlow={flow} shouldShowWorkflowsEditor={false} flowList={[flow]}/>);
let renderedOutput = renderer.getRenderOutput();
expect(renderedOutput).toBeTruthy();
});
it('basic view component run with empty flowList and should show popup modal', () => {
- const renderer = new ShallowRenderer();
+ var renderer = TestUtils.createRenderer();
let currentFlow = FlowBasicFactory.build();
renderer.render(<FlowsListEditorView isDisplayModal={true} shouldShowWorkflowsEditor={true} flowList={[currentFlow]}/>);
let renderedOutput = renderer.getRenderOutput();
diff --git a/openecomp-ui/test/flows/flowsEditorModal.test.js b/openecomp-ui/test/flows/flowsEditorModal.test.js
index cc6525fd46..53506b8c3c 100644
--- a/openecomp-ui/test/flows/flowsEditorModal.test.js
+++ b/openecomp-ui/test/flows/flowsEditorModal.test.js
@@ -15,10 +15,10 @@
*/
import React from 'react';
-import TestUtils from 'react-dom/test-utils';
+import TestUtils from 'react-addons-test-utils';
import {mapStateToProps} from 'sdc-app/flows/FlowsEditorModal.js';
import FlowsEditorModalView from 'sdc-app/flows/FlowsEditorModalView.jsx';
-import ShallowRenderer from 'react-test-renderer/shallow';
+
import {FlowBasicFactory} from 'test-utils/factories/flows/FlowsFactories.js';
describe('Flows Editor Modal Mapper and View Classes: ', function () {
@@ -54,7 +54,7 @@ describe('Flows Editor Modal Mapper and View Classes: ', function () {
});
it('basic modal view component run with empty artifact', () => {
- const renderer = new ShallowRenderer();
+ var renderer = TestUtils.createRenderer();
renderer.render(
<FlowsEditorModalView
onCancel={()=>{}}