From 684057e69bea57d0bd954a84a10581a81d546006 Mon Sep 17 00:00:00 2001 From: drveerendra Date: Mon, 11 Nov 2019 19:37:39 -0500 Subject: Adding View BP template Menu Adding View Blue Print templates option under Template menu. Adding few more test cases for ViewTosca Modals to cover the api calls. Issue-ID: CLAMP-544 Change-Id: Ibf881f46fd03e9149a88ccc211a996d99fd74748 Signed-off-by: drveerendra --- ui-react/src/components/menu/MenuBar.js | 3 +- .../menu/__snapshots__/MenuBar.test.js.snap | 103 +++++++++++++++------ 2 files changed, 79 insertions(+), 27 deletions(-) (limited to 'ui-react/src/components/menu') diff --git a/ui-react/src/components/menu/MenuBar.js b/ui-react/src/components/menu/MenuBar.js index bbfa82a13..e211b0eaf 100644 --- a/ui-react/src/components/menu/MenuBar.js +++ b/ui-react/src/components/menu/MenuBar.js @@ -88,7 +88,8 @@ export default class MenuBar extends React.Component { - View Tosca Model + View Tosca Policy Models + View Blueprint MicroService Templates Open CL diff --git a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap index 9082eccd8..1670124cc 100644 --- a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap +++ b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap @@ -11,7 +11,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-dxgOiQ", + "componentId": "sc-eNQAEJ", "isStatic": false, "rules": Array [ " @@ -44,7 +44,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-dxgOiQ", + "styledComponentId": "sc-eNQAEJ", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -52,9 +52,60 @@ exports[`Verify MenuBar Test the render method 1`] = ` } } disabled={false} - to="/viewToscaModal" + to="/viewToscaPolicyModal" > - View Tosca Model + View Tosca Policy Models + + + View Blueprint MicroService Templates