Add Tests on UI

Add some test to UI and fix errors reported by JEST during Ui tests

Issue-ID: POLICY-3200
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I69e93ad1f1714fa60a0c7ea9b1f3fb691f089f8a
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
diff --git a/ui-react/package.json b/ui-react/package.json
index a62cf67..fd3dc0a 100644
--- a/ui-react/package.json
+++ b/ui-react/package.json
@@ -27,8 +27,8 @@
 	"dependencies": {
 		"@json-editor/json-editor": "2.5.2",
 		"@fortawesome/fontawesome-free": "5.15.2",
-		"react": "17.0.1",
-		"react-dom": "17.0.1",
+		"react": "17.0.2",
+		"react-dom": "17.0.2",
 		"react-scripts": "4.0.3",
 		"react-bootstrap": "1.5.2",
 		"bootstrap-css-only": "4.3.1",
@@ -36,10 +36,10 @@
 		"react-router-dom": "5.2.0",
 		"@material-ui/core": "4.11.3",
 		"@material-ui/icons": "4.11.2",
+		"@material-ui/pickers": "3.3.10",
 		"@material-ui/lab": "4.0.0-alpha.57",
 		"material-table": "1.68.1",
-		"react-select": "4.2.1",
-		"react-uuid": "1.0.2"
+		"react-select": "4.2.1"
 	},
 	"devDependencies": {
 		"jest": "26.6.0",
@@ -48,9 +48,10 @@
 		"@babel/preset-react": "7.12.13",
 		"@babel/plugin-proposal-class-properties": "7.13.0",
 		"enzyme": "3.11.0",
-		"enzyme-adapter-react-17-updated": "1.0.2",
+		"@wojtekmaj/enzyme-adapter-react-17": "0.6.1",
 		"enzyme-to-json": "3.6.1",
-		"jest-fetch-mock": "3.0.3"
+		"jest-fetch-mock": "3.0.3",
+		"jest-canvas-mock": "2.3.1"
 	},
 	"browserslist": [
 		">0.2%",
@@ -72,7 +73,8 @@
 			"\\.(css|png)$": "identity-obj-proxy"
 		},
 		"setupFiles": [
-			"./src/setupTests.js"
+			"./src/setupTests.js",
+			"jest-canvas-mock"
 		],
 		"snapshotSerializers": [
 			"enzyme-to-json/serializer"
@@ -96,4 +98,3 @@
 		]
 	}
 }
-