diff --git a/src/components/App/App.test.js b/src/components/App/App.test.js index 4be54a7..65ede98 100644 --- a/src/components/App/App.test.js +++ b/src/components/App/App.test.js @@ -87,6 +87,10 @@ 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 / authenticated", async () => { setToken(TEST_AUTH_OBJECT); await check("/", "h1", "Welcome John!"); @@ -132,6 +136,11 @@ 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"); }); diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 969c00f..b93036c 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -6,10 +6,10 @@ exports[`App Route / authenticated 1`] = ` data-testid="mocked-userprovider" >
Fisker Admin Portal
@@ -190,16 +190,16 @@ exports[`App Route / authenticated 1`] = `

Fisker Admin Portal
@@ -461,10 +461,10 @@ exports[`App Route /carupdate-deploy authenticated 1`] = `

No Cars Selected

Fisker Admin Portal
@@ -887,10 +887,10 @@ exports[`App Route /carupdate-status authenticated 1`] = `
-
-
-
-
-
- -
-
- -
-
-
-
-

- Welcome John! -

-
-
-
-
-
-
-`; - -exports[`App Route /home unauthenticated 1`] = ` -
-
-
-
-
-
-
-
-
-
-
-
-
-`; - -exports[`App Route /package-upload authenticated 1`] = `
- Create Update Package -
+ />