From 841ddaaa26c0faf16353d8e22093daa2553aad57 Mon Sep 17 00:00:00 2001 From: xuegao Date: Thu, 19 Sep 2019 14:23:14 +0200 Subject: Add unit tests for UI Adding unit tests for React UI Issue-ID: CLAMP-509 Change-Id: If31bbea7972736aa190fd0fed19336a1aa382af8 Signed-off-by: xuegao --- .../dialogs/__snapshots__/DeployLoop.test.js.snap | 66 ++++++++++ .../__snapshots__/LoopProperties.test.js.snap | 59 +++++++++ .../dialogs/__snapshots__/UserInfo.test.js.snap | 137 +++++++++++++++++++++ 3 files changed, 262 insertions(+) create mode 100644 ui-react/src/components/dialogs/__snapshots__/DeployLoop.test.js.snap create mode 100644 ui-react/src/components/dialogs/__snapshots__/LoopProperties.test.js.snap create mode 100644 ui-react/src/components/dialogs/__snapshots__/UserInfo.test.js.snap (limited to 'ui-react/src/components/dialogs/__snapshots__') diff --git a/ui-react/src/components/dialogs/__snapshots__/DeployLoop.test.js.snap b/ui-react/src/components/dialogs/__snapshots__/DeployLoop.test.js.snap new file mode 100644 index 00000000..1fd4b104 --- /dev/null +++ b/ui-react/src/components/dialogs/__snapshots__/DeployLoop.test.js.snap @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Verify DeployLoop Test the render method 1`] = ` + + + + Deployment parameters + + + + + location_id + + + + + + policy_id + + + + + + + + +`; diff --git a/ui-react/src/components/dialogs/__snapshots__/LoopProperties.test.js.snap b/ui-react/src/components/dialogs/__snapshots__/LoopProperties.test.js.snap new file mode 100644 index 00000000..c7e81c39 --- /dev/null +++ b/ui-react/src/components/dialogs/__snapshots__/LoopProperties.test.js.snap @@ -0,0 +1,59 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Verify LoopProperties Test the render method 1`] = ` + + + + Model Properties + + + +
+ + + Deploy Parameters + + + +
+
+ + + + +
+`; diff --git a/ui-react/src/components/dialogs/__snapshots__/UserInfo.test.js.snap b/ui-react/src/components/dialogs/__snapshots__/UserInfo.test.js.snap new file mode 100644 index 00000000..1ae567a2 --- /dev/null +++ b/ui-react/src/components/dialogs/__snapshots__/UserInfo.test.js.snap @@ -0,0 +1,137 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Verify UserInfo Test the render method full permission 1`] = ` + + + + User Info + + + + + + Current User: + + + + + + + + CLDS Version: + + + + + + + + User Permissions: + + + + + + + + + + + + + + + +`; -- cgit