Revert "CEC-2977 Filter portal access based on auth provider (#231)"

This reverts commit f2f046968e.
This commit is contained in:
jwu-fisker
2022-11-08 16:49:10 -08:00
parent f2f046968e
commit 33bfc4fb13
76 changed files with 912 additions and 1316 deletions

View File

@@ -15,7 +15,7 @@ import { BrowserRouter } from "react-router-dom";
import { SupplierProvider } from "../../Contexts/SupplierContext";
import { StatusProvider } from "../../Contexts/StatusContext";
import { UserProvider, setToken } from "../../Contexts/UserContext";
import { TEST_AUTH_OBJECT_FISKER } from "../../../utils/testing";
import { TEST_AUTH_OBJECT } from "../../../utils/testing";
import MainForm from "./index";
import addSnapshotSerializer from "../../../utils/snapshot";
@@ -43,7 +43,7 @@ describe("Supplier page", () => {
});
it("Render", async () => {
setToken(TEST_AUTH_OBJECT_FISKER);
setToken(TEST_AUTH_OBJECT);
const container = await renderSupplierDetailsPage();
expect(container).toMatchSnapshot();
});

View File

@@ -10,7 +10,7 @@ import { BrowserRouter } from "react-router-dom";
import { SupplierProvider } from "../../Contexts/SupplierContext";
import { StatusProvider } from "../../Contexts/StatusContext";
import { UserProvider, setToken } from "../../Contexts/UserContext";
import { TEST_AUTH_OBJECT_FISKER } from "../../../utils/testing";
import { TEST_AUTH_OBJECT } from "../../../utils/testing";
import MainForm from "./index";
import addSnapshotSerializer from "../../../utils/snapshot";
@@ -38,7 +38,7 @@ describe("Suppliers page", () => {
});
it("Render", async () => {
setToken(TEST_AUTH_OBJECT_FISKER);
setToken(TEST_AUTH_OBJECT);
const container = await renderSuppliersPage();
expect(container).toMatchSnapshot();
});