diff options
author | 2021-11-03 11:30:46 +0000 | |
---|---|---|
committer | 2021-11-03 11:36:04 +0000 | |
commit | 33391192adecdf86da3547f024ff82fb0cf85535 (patch) | |
tree | c44374098647759480821c74122faa8267b8b24f /gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__ | |
parent | 28d5047cecd111e380fe78d2d1d7e4756b78ed12 (diff) |
UPDATED Jest Unit Tests for Monitoring Functionality
Updated Unit Tests to cover monitoring functionality
Issue-ID: POLICY-3561
Change-Id: I8434cf5d60463d60175ef6e48f0e75e8c4f656da
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__')
2 files changed, 210 insertions, 2 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/AccordionHeader.test.js.snap b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/AccordionHeader.test.js.snap index b4a707b..da86eb7 100644 --- a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/AccordionHeader.test.js.snap +++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/AccordionHeader.test.js.snap @@ -1,3 +1,211 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Verify AccordionHeader renders correctly 1`] = `""`; +exports[`Verify AccordionHeader renders correctly 1`] = ` +<styled.div + className="panel-header" +> + <ForwardRef + as={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": e { + "baseHash": -417256348, + "baseStyle": undefined, + "componentId": "sc-hKFxyN", + "isStatic": false, + "rules": Array [ + " + color: #000000; + text-decoration: none; + + :hover, :active { + color: #000000; + text-decoration: none !important; + } +", + ], + "staticRulesId": "", + }, + "foldedComponentIds": Array [], + "render": [Function], + "shouldForwardProp": undefined, + "styledComponentId": "sc-hKFxyN", + "target": Object { + "$$typeof": Symbol(react.forward_ref), + "defaultProps": Object { + "active": false, + "disabled": false, + "variant": "primary", + }, + "render": [Function], + }, + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + eventKey="0" + variant="link" + /> +</styled.div> +`; + +exports[`Verify AccordionHeader renders correctly when orderState is passive 1`] = ` +<styled.div + className="panel-header" +> + <ForwardRef + as={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": e { + "baseHash": -417256348, + "baseStyle": undefined, + "componentId": "sc-hKFxyN", + "isStatic": false, + "rules": Array [ + " + color: #000000; + text-decoration: none; + + :hover, :active { + color: #000000; + text-decoration: none !important; + } +", + ], + "staticRulesId": "", + }, + "foldedComponentIds": Array [], + "render": [Function], + "shouldForwardProp": undefined, + "styledComponentId": "sc-hKFxyN", + "target": Object { + "$$typeof": Symbol(react.forward_ref), + "defaultProps": Object { + "active": false, + "disabled": false, + "variant": "primary", + }, + "render": [Function], + }, + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + eventKey="0" + variant="link" + > + PASSIVE_TEST + </ForwardRef> +</styled.div> +`; + +exports[`Verify AccordionHeader renders correctly when orderState is running 1`] = ` +<styled.div + className="panel-header" +> + <ForwardRef + as={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": e { + "baseHash": -417256348, + "baseStyle": undefined, + "componentId": "sc-hKFxyN", + "isStatic": false, + "rules": Array [ + " + color: #000000; + text-decoration: none; + + :hover, :active { + color: #000000; + text-decoration: none !important; + } +", + ], + "staticRulesId": "", + }, + "foldedComponentIds": Array [], + "render": [Function], + "shouldForwardProp": undefined, + "styledComponentId": "sc-hKFxyN", + "target": Object { + "$$typeof": Symbol(react.forward_ref), + "defaultProps": Object { + "active": false, + "disabled": false, + "variant": "primary", + }, + "render": [Function], + }, + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + eventKey="0" + variant="link" + > + RUNNING_TEST + </ForwardRef> +</styled.div> +`; + +exports[`Verify AccordionHeader renders correctly when orderState is uninitialized 1`] = ` +<styled.div + className="panel-header" +> + <ForwardRef + as={ + Object { + "$$typeof": Symbol(react.forward_ref), + "attrs": Array [], + "componentStyle": e { + "baseHash": -417256348, + "baseStyle": undefined, + "componentId": "sc-hKFxyN", + "isStatic": false, + "rules": Array [ + " + color: #000000; + text-decoration: none; + + :hover, :active { + color: #000000; + text-decoration: none !important; + } +", + ], + "staticRulesId": "", + }, + "foldedComponentIds": Array [], + "render": [Function], + "shouldForwardProp": undefined, + "styledComponentId": "sc-hKFxyN", + "target": Object { + "$$typeof": Symbol(react.forward_ref), + "defaultProps": Object { + "active": false, + "disabled": false, + "variant": "primary", + }, + "render": [Function], + }, + "toString": [Function], + "warnTooManyClasses": [Function], + "withComponent": [Function], + } + } + eventKey="0" + variant="link" + > + UNINITIALISED_TEST + </ForwardRef> +</styled.div> +`; diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/MonitorInstantiation.test.js.snap b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/MonitorInstantiation.test.js.snap index df5c243..ad1f7f1 100644 --- a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/MonitorInstantiation.test.js.snap +++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/MonitorInstantiation.test.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Verify MonitoringInstantiation renders correctly 1`] = ` +exports[`Verify MonitorInstantiation renders correctly 1`] = ` <Styled(Modal) backdrop="static" keyboard={false} |