From 33391192adecdf86da3547f024ff82fb0cf85535 Mon Sep 17 00:00:00 2001 From: brunomilitzer Date: Wed, 3 Nov 2021 11:30:46 +0000 Subject: 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 --- .../__snapshots__/AccordionHeader.test.js.snap | 210 ++++++++++++++++++++- .../MonitorInstantiation.test.js.snap | 2 +- 2 files changed, 210 insertions(+), 2 deletions(-) (limited to 'gui-clamp/ui-react/src/components/dialogs/ControlLoop/__snapshots__') 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`] = ` + + + +`; + +exports[`Verify AccordionHeader renders correctly when orderState is passive 1`] = ` + + + PASSIVE_TEST + + +`; + +exports[`Verify AccordionHeader renders correctly when orderState is running 1`] = ` + + + RUNNING_TEST + + +`; + +exports[`Verify AccordionHeader renders correctly when orderState is uninitialized 1`] = ` + + + UNINITIALISED_TEST + + +`; 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`] = `