diff options
author | brunomilitzer <bruno.militzer@est.tech> | 2021-12-17 17:41:57 +0000 |
---|---|---|
committer | Bruno Militzer <bruno.militzer@est.tech> | 2022-01-04 15:51:54 +0000 |
commit | 4be96f85c65df9384b11d68e87ca9e03e27a083c (patch) | |
tree | af178c54ace2b5d7457e3547b81cae6f4b6d5ebc /gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__ | |
parent | acd025f30f0005731c9b2894cb954bd31401ab76 (diff) |
Added Jest Unit Tests
Jest Tests for creation of instance properties
Jest Tests for deletion of instance properties
Included Issue-Id: 3566
Issue-ID: POLICY-3563
Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
Change-Id: I227ae8f306df10ee3cc341791471dda9ca79d9d1
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__')
3 files changed, 162 insertions, 1 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstancePropertiesModal.test.js.snap b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstancePropertiesModal.test.js.snap index 96b500e..d655b08 100644 --- a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstancePropertiesModal.test.js.snap +++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstancePropertiesModal.test.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Verify MonitoringInstantiation renders correctly 1`] = ` +exports[`Verify InstancePropertiesModal renders correctly 1`] = ` <Styled(Modal) backdrop="static" keyboard={false} diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstantiationElementItem.test.js.snap b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstantiationElementItem.test.js.snap index 2c5d298..81f5f26 100644 --- a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstantiationElementItem.test.js.snap +++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstantiationElementItem.test.js.snap @@ -1,3 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Verify InstantiationElementItem renders correctly 1`] = `<Fragment />`; + +exports[`Verify InstantiationElementItem renders correctly when orderState is passive 1`] = `<Fragment />`; + +exports[`Verify InstantiationElementItem renders correctly when orderState is running 1`] = `<Fragment />`; + +exports[`Verify InstantiationElementItem renders correctly when orderState is uninitialized 1`] = `<Fragment />`; diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstantiationManagementModal.test.js.snap b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstantiationManagementModal.test.js.snap new file mode 100644 index 0000000..76f8780 --- /dev/null +++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__/InstantiationManagementModal.test.js.snap @@ -0,0 +1,155 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Verify MonitoringInstantiation renders correctly 1`] = ` +<Styled(Modal) + backdrop="static" + keyboard={false} + onHide={[Function]} + show={true} + size="xl" +> + <ModalHeader + closeButton={true} + closeLabel="Close" + > + <ModalTitle> + Manage Instances + </ModalTitle> + </ModalHeader> + <ModalBody> + <Container + fluid={false} + > + <Row + noGutters={false} + > + <Link + to={ + Object { + "pathname": "/editControlLoopInstanceProperties", + } + } + > + <Button + active={false} + disabled={false} + type="null" + variant="primary" + > + Create Instance + </Button> + </Link> + <styled.div /> + <Link + to={ + Object { + "pathname": "/monitorInstantiation", + } + } + > + <Button + active={false} + disabled={false} + type="null" + variant="secondary" + > + Monitor Instantiations + </Button> + </Link> + </Row> + </Container> + <ForwardRef + bordered={true} + style={ + Object { + "marginTop": "10px", + } + } + > + <thead> + <tr> + <th> + # + </th> + <th + style={ + Object { + "textAlign": "center", + } + } + > + Instantiation Name + </th> + <th + style={ + Object { + "textAlign": "center", + } + } + > + Edit Instantiation + </th> + <th + style={ + Object { + "textAlign": "center", + } + } + > + Delete Instantiation + </th> + <th + style={ + Object { + "textAlign": "center", + } + } + > + Change Order State + </th> + <th + style={ + Object { + "textAlign": "center", + } + } + > + Instantiation Order State + </th> + <th + style={ + Object { + "textAlign": "center", + } + } + > + Instantiation Current State + </th> + </tr> + </thead> + <tbody /> + </ForwardRef> + <styled.div /> + </ModalBody> + <ModalFooter> + <Button + active={false} + disabled={false} + onClick={[Function]} + type="null" + variant="secondary" + > + Clear Error Message + </Button> + <Button + active={false} + disabled={false} + onClick={[Function]} + type="null" + variant="secondary" + > + Close + </Button> + </ModalFooter> +</Styled(Modal)> +`; |