diff --git a/src/assets/gray-marker.png b/src/assets/gray-marker.png new file mode 100644 index 0000000..45c6ac8 Binary files /dev/null and b/src/assets/gray-marker.png differ diff --git a/src/assets/green-marker.png b/src/assets/green-marker.png new file mode 100644 index 0000000..78f95cb Binary files /dev/null and b/src/assets/green-marker.png differ diff --git a/src/components/App/App.test.js b/src/components/App/App.test.js index 346cb4a..44c1aba 100644 --- a/src/components/App/App.test.js +++ b/src/components/App/App.test.js @@ -84,12 +84,12 @@ describe("App", () => { await check("/vehicle-status/FISKER123", "span.MuiButton-label", "Sign In"); }); - it("Route /vehicles-command unauthenticated", async () => { - await check("/vehicles-command", "span.MuiButton-label", "Sign In"); + it("Route /datascope unauthenticated", async () => { + await check("/datascope", "span.MuiButton-label", "Sign In"); }); - it("Route /dashboard unauthenticated", async () => { - await check("/dashboard", "span.MuiButton-label", "Sign In"); + it("Route /datascope/battery unauthenticated", async () => { + await check("/datascope/battery", "span.MuiButton-label", "Sign In"); }); it("Route /packages unauthenticated", async () => { @@ -138,11 +138,6 @@ describe("App", () => { await check("/vehicle-status/FISKER123", "h6", "Vehicle FISKER123 Details"); }); - it("Route /vehicles-command authenticated", async () => { - setToken(TEST_AUTH_OBJECT); - await check("/vehicles-command", "h6", "Send Command"); - }); - it("Route /page-not-found unauthenticated", async () => { await check("/page-not-found", "h1", "Page Not Found"); }); @@ -157,14 +152,19 @@ describe("App", () => { await check("/carupdate-deploy/1", "h6", "Deploy Package 1.0"); }); - it("Route /dashboard authenticated", async () => { + it("Route /datascope authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/dashboard", "h6", "Dashboard"); + await check("/datascope", "h6", "Datascope"); + }); + + it("Route /datascope/battery authenticated", async () => { + setToken(TEST_AUTH_OBJECT); + await check("/datascope/battery", "h6", "Battery"); }); it("Route /packages authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/packages", "h6", "Deploy Packages"); + await check("/packages", "h6", "Deployments"); }); it("Route /package-status authenticated", async () => { @@ -179,7 +179,6 @@ describe("App", () => { it("Route /package-create authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/package-create", "h6", "Create Package"); + await check("/package-create", "h6", "Create Deployments"); }); - }); diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 7ee5a7c..a11d353 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -6,47 +6,56 @@ exports[`App Route / authenticated 1`] = ` data-testid="mocked-userprovider" >
-
- Home -
- + Home + +
+
+ +
Fisker Admin Portal
@@ -64,6 +73,20 @@ exports[`App Route / authenticated 1`] = ` role="button" tabindex="0" > +
+ +
- - - + +
+
+ + Datascope + +
+ + + + +

- Welcome John! + Welcome + John + !

@@ -381,9 +414,11 @@ exports[`App Route / unauthenticated 1`] = `
-
+
+
+
-
- Deploy Package 1.0 -
- + Deploy Package 1.0 + +
+
+ +
Fisker Admin Portal
@@ -486,6 +530,20 @@ exports[`App Route /carupdate-deploy authenticated 1`] = ` role="button" tabindex="0" > +
+ +
- - - + +
+
+ + Datascope + +
+ + + + +

0 Selected
@@ -733,7 +820,7 @@ exports[`App Route /carupdate-deploy authenticated 1`] = ` style="text-align: right;" >
VIN sorted ascending @@ -1086,35 +1173,37 @@ exports[`App Route /carupdate-deploy unauthenticated 1`] = ` data-testid="mocked-userprovider" >
-
+
+
+
`; -exports[`App Route /dashboard authenticated 1`] = ` +exports[`App Route /datascope authenticated 1`] = `
-