Release/0.0.3 to main (#254)

* CEC-2628 - Display IP in digital twin in portal (#251)

* CEC-3453 Update security dll instructions (#252)

* CEC-2752-Add-Mobile-Issue-Tracker (#250)

* first commit

* removed comments

* remove more comments

* fix build issues

* fix unused vars

* update snapshot

* fix test

* Fix connect ECONNREFUSED 127.0.0.1:80

* Test Magna side menu

* attempt to pass test

* fix test

* remove comments

* fix some code smells

* fix test

* resolve comments

* fix bug

* resolved comments

* resolve comments

* resolve comments

* update snapshot

* resolved comments

Co-authored-by: jwu-fisker <jwu@fiskerinc.com>

* Cec 2752 small fix (#253)

* first commit

* removed comments

* remove more comments

* fix build issues

* fix unused vars

* update snapshot

* fix test

* Fix connect ECONNREFUSED 127.0.0.1:80

* Test Magna side menu

* attempt to pass test

* fix test

* remove comments

* fix some code smells

* fix test

* resolve comments

* fix bug

* resolved comments

* resolve comments

* resolve comments

* update snapshot

* resolved comments

* small fix

Co-authored-by: jwu-fisker <jwu@fiskerinc.com>

Co-authored-by: Paul Adamsen <117673433+pauladamseniii@users.noreply.github.com>
Co-authored-by: das31 <31259710+das31@users.noreply.github.com>
This commit is contained in:
John Wu
2023-01-10 18:30:39 -08:00
committed by GitHub
parent cf6ff831d7
commit b80a2cb8bf
29 changed files with 3056 additions and 140 deletions

View File

@@ -4,7 +4,7 @@ jest.mock("../../services/superset");
import { render, screen, waitFor } from "@testing-library/react";
import { BrowserRouter } from "react-router-dom";
import addSnapshotSerializer from "../../utils/snapshot";
import { TEST_AUTH_OBJECT_FISKER } from "../../utils/testing";
import { TEST_AUTH_OBJECT_FISKER, TEST_AUTH_OBJECT_MAGNA } from "../../utils/testing";
import { setToken, UserProvider } from "../Contexts/UserContext";
import SideMenu from "./SideMenu";
@@ -39,4 +39,13 @@ describe("SideMenu", () => {
});
expect(container).toMatchSnapshot();
});
it("Magna Authenticated", async () => {
setToken(TEST_AUTH_OBJECT_MAGNA);
const container = await renderMenu();
await waitFor(() => {
expect(screen.getByText("Tools")).toBeInTheDocument();
});
expect(container).toMatchSnapshot();
});
});