diff --git a/src/assets/fisker-badge.svg b/src/assets/fisker-badge.svg new file mode 100644 index 0000000..0c713ce --- /dev/null +++ b/src/assets/fisker-badge.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/App/App.test.js b/src/components/App/App.test.js index 2a898f9..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!"); @@ -99,37 +103,42 @@ describe("App", () => { it("Route /package-upload authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/package-upload", "h1", "Create Update Package"); + await check("/package-upload", "h6", "Create Update Package"); }); it("Route /vehicle-add authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/vehicle-add", "h1", "Add Vehicle"); + await check("/vehicle-add", "h6", "Add Vehicle"); }); it("Route /updates authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/updates", "h1", "Update Packages"); + await check("/updates", "h6", "Deploy Packages"); }); it("Route /update authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/update/1", "h1", "Edit Update Package 1"); + await check("/update/1", "h6", "Edit Update Package 1"); }); it("Route /carupdate-status authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/carupdate-status/1", "h1", ""); + await check("/carupdate-status/1", "h6", ""); }); it("Route /vehicles authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/vehicles", "h1", "Vehicles"); + await check("/vehicles", "h6", "Vehicles"); }); it("Route /vehicle-status authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/vehicle-status/FISKER123", "h1", "FISKER123 Updates"); + 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 () => { @@ -143,6 +152,6 @@ describe("App", () => { it("Route /carupdate-deploy authenticated", async () => { setToken(TEST_AUTH_OBJECT); - await check("/carupdate-deploy/1", "h1", "Deploy [1]"); + await check("/carupdate-deploy/1", "h6", "Deploy "); }); }); diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index c8bd935..b93036c 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -6,45 +6,19 @@ exports[`App Route / authenticated 1`] = ` data-testid="mocked-userprovider" >
-
- Fisker OTA Portal -
+ />
- + Fisker Admin Portal

- View Packages + Deploy Packages
+
  • + +
    + + Send Command + +
    + +
    +
  • - Fisker OTA Portal -
    + />
    -
    - Fisker OTA Portal + Deploy
    - + Fisker Admin Portal

    - View Packages + Deploy Packages
    +
  • + +
    + + Send Command + +
    + +
    +
  • -

    - Deploy - [1] -

    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    -