From f6b2625c5876c5ef1b8ead0b3962362fb2924f95 Mon Sep 17 00:00:00 2001 From: drveerendra Date: Thu, 31 Oct 2019 12:45:30 -0400 Subject: Adding viewToscamodels menu Updated package.json file to include material table and material UI react libraries. Added ViewToscalModals folder which contains js file, corresponding test file and its snapshots Issue-ID: CLAMP-544 Change-Id: I6b9328d6270fc32b41a152c91a9fd872f3524beb Signed-off-by: drveerendra --- ui-react/src/components/menu/MenuBar.js | 3 + .../menu/__snapshots__/MenuBar.test.js.snap | 99 +++++++++++++++++----- 2 files changed, 80 insertions(+), 22 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 b68e2376a..2ce92b39d 100644 --- a/ui-react/src/components/menu/MenuBar.js +++ b/ui-react/src/components/menu/MenuBar.js @@ -87,6 +87,9 @@ export default class MenuBar extends React.Component { return ( + + View Tosca Model + Open CL Properties 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 3ee733463..1e13b3bdc 100644 --- a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap +++ b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap @@ -2,6 +2,61 @@ exports[`Verify MenuBar Test the render method 1`] = ` + + + View Tosca Model + + @@ -11,7 +66,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -44,7 +99,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -62,7 +117,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -95,7 +150,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -113,7 +168,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -146,7 +201,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -168,7 +223,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -201,7 +256,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -219,7 +274,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -252,7 +307,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -270,7 +325,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -303,7 +358,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -321,7 +376,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -354,7 +409,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -372,7 +427,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -405,7 +460,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -423,7 +478,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -456,7 +511,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -478,7 +533,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -511,7 +566,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], @@ -544,7 +599,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "$$typeof": Symbol(react.forward_ref), "attrs": Array [], "componentStyle": ComponentStyle { - "componentId": "sc-kpOJdX", + "componentId": "sc-jKJlTe", "isStatic": false, "rules": Array [ " @@ -577,7 +632,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` "displayName": "Styled(Link)", "foldedComponentIds": Array [], "render": [Function], - "styledComponentId": "sc-kpOJdX", + "styledComponentId": "sc-jKJlTe", "target": [Function], "toString": [Function], "warnTooManyClasses": [Function], -- cgit 1.2.3-korg