From 680280dbf2f912d34106fa5d840898b64a5ccd0b Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Mon, 13 Sep 2021 09:15:20 -0700 Subject: [PATCH] Merge development (#86) --- src/components/App/App.test.js | 2 +- .../App/__snapshots__/App.test.js.snap | 702 +++++++++--------- src/components/Cars/List/index.jsx | 4 +- src/components/Cars/Status/index.jsx | 12 +- src/components/Cars/UpdateStatus/index.jsx | 5 +- src/components/Contexts/CarUpdatesContext.jsx | 8 +- src/components/Contexts/ManifestsContext.jsx | 2 +- src/components/Contexts/UserContext.jsx | 5 +- src/components/Contexts/UserContext.test.jsx | 14 +- .../Controls/CarECUsTable/index.jsx | 4 +- .../CarUpdateStatusProgress/index.jsx | 49 +- src/components/Controls/SendCommand/index.jsx | 10 +- src/components/Controls/SubListItem/index.jsx | 3 +- src/components/Datascope/Home/index.jsx | 2 +- src/components/Layouts/SideMenu.jsx | 33 +- src/components/Layouts/SideMenu.test.jsx | 4 +- .../__snapshots__/SideMenu.test.jsx.snap | 2 +- src/components/Manifest/Deploy/index.jsx | 4 +- src/components/Manifest/List/index.jsx | 6 +- .../__snapshots__/SSOForm.test.js.snap | 2 +- src/components/VehicleMap/index.jsx | 13 +- src/components/VehicleMap/popup.jsx | 24 +- src/components/menuItemStyle.jsx | 4 +- src/components/useStyles.jsx | 3 + .../__mocks__/{timer.js => getTimerWorker.js} | 0 .../__mocks__/{grafana.js => grafanaAPI.js} | 0 .../{manifests.js => manifestsAPI.js} | 10 +- .../__mocks__/{updates.js => updatesAPI.js} | 0 src/services/{timer.js => getTimerWorker.js} | 0 src/services/{grafana.js => grafanaAPI.js} | 4 +- .../{manifests.js => manifestsAPI.js} | 0 src/services/{updates.js => updatesAPI.js} | 0 32 files changed, 465 insertions(+), 466 deletions(-) rename src/services/__mocks__/{timer.js => getTimerWorker.js} (100%) rename src/services/__mocks__/{grafana.js => grafanaAPI.js} (100%) rename src/services/__mocks__/{manifests.js => manifestsAPI.js} (83%) rename src/services/__mocks__/{updates.js => updatesAPI.js} (100%) rename src/services/{timer.js => getTimerWorker.js} (100%) rename src/services/{grafana.js => grafanaAPI.js} (73%) rename src/services/{manifests.js => manifestsAPI.js} (100%) rename src/services/{updates.js => updatesAPI.js} (100%) diff --git a/src/components/App/App.test.js b/src/components/App/App.test.js index b284d56..cfa8333 100644 --- a/src/components/App/App.test.js +++ b/src/components/App/App.test.js @@ -4,7 +4,7 @@ jest.mock("../Contexts/UserContext"); jest.mock("../Contexts/ManifestsContext"); jest.mock("../Contexts/CarUpdatesContext"); jest.mock("../../services/monitoring"); -jest.mock("../../services/grafana"); +jest.mock("../../services/grafanaAPI"); import { render, screen, cleanup, waitFor, waitForElementToBeRemoved } from "@testing-library/react"; import { setToken } from "../Contexts/UserContext"; diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index e3a6392..c76947c 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
@@ -239,7 +239,7 @@ exports[`App Route / authenticated 1`] = `
  • 500

    Cars

    @@ -750,16 +750,16 @@ exports[`App Route /datascope authenticated 1`] = ` class="MuiGrid-root MuiGrid-item MuiGrid-grid-md-6" >

    1,234,567,890

    Signals Collected

    @@ -769,10 +769,10 @@ exports[`App Route /datascope authenticated 1`] = ` class="MuiGrid-root MuiGrid-item MuiGrid-grid-md-12" >