aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/loop_viewer/status/__snapshots__/LoopStatus.test.js.snap
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2019-09-19 14:23:14 +0200
committerxuegao <xg353y@intl.att.com>2019-09-24 11:07:36 +0200
commit841ddaaa26c0faf16353d8e22093daa2553aad57 (patch)
tree61aaa6d28490a6b5f2037b4a6edb10ed5fdad2e5 /ui-react/src/components/loop_viewer/status/__snapshots__/LoopStatus.test.js.snap
parent27cbec79e30f7e25a7419be38dd9bb7c324c782c (diff)
Add unit tests for UI
Adding unit tests for React UI Issue-ID: CLAMP-509 Change-Id: If31bbea7972736aa190fd0fed19336a1aa382af8 Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/components/loop_viewer/status/__snapshots__/LoopStatus.test.js.snap')
-rw-r--r--ui-react/src/components/loop_viewer/status/__snapshots__/LoopStatus.test.js.snap64
1 files changed, 64 insertions, 0 deletions
diff --git a/ui-react/src/components/loop_viewer/status/__snapshots__/LoopStatus.test.js.snap b/ui-react/src/components/loop_viewer/status/__snapshots__/LoopStatus.test.js.snap
new file mode 100644
index 000000000..275933ee8
--- /dev/null
+++ b/ui-react/src/components/loop_viewer/status/__snapshots__/LoopStatus.test.js.snap
@@ -0,0 +1,64 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Verify LoopStatus Test the render method 1`] = `
+<styled.div>
+ <label>
+ Loop Status:
+ DESIGN
+ </label>
+ <div>
+ <Styled(Bootstrap(Table))
+ hover={true}
+ responsive={true}
+ striped={true}
+ variant={true}
+ >
+ <thead>
+ <tr>
+ <th>
+ <span
+ align="left"
+ >
+ Component Name
+ </span>
+ </th>
+ <th>
+ <span
+ align="left"
+ >
+ Component State
+ </span>
+ </th>
+ <th>
+ <span
+ align="right"
+ >
+ Description
+ </span>
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <TableRow
+ statusRow={
+ Object {
+ "componentName": "POLICY",
+ "description": "The policies defined have NOT yet been created on the policy engine",
+ "stateName": "NOT_SENT",
+ }
+ }
+ />
+ <TableRow
+ statusRow={
+ Object {
+ "componentName": "DCAE",
+ "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop",
+ "stateName": "BLUEPRINT_DEPLOYED",
+ }
+ }
+ />
+ </tbody>
+ </Styled(Bootstrap(Table))>
+ </div>
+</styled.div>
+`;