From 234252a1006d6963b139a736f9b52396a9f96208 Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Fri, 24 Mar 2023 16:00:05 -0700 Subject: [PATCH] CEC-3360 Magna should not see archive control (#302) * CEC-3360 Magna should not see archive control * fixes --- src/components/App/App.test.js | 6 - .../App/__snapshots__/App.test.js.snap | 502 ------------------ src/components/Manifest/List/index.jsx | 25 +- 3 files changed, 16 insertions(+), 517 deletions(-) diff --git a/src/components/App/App.test.js b/src/components/App/App.test.js index 9e4b062..df56ca3 100644 --- a/src/components/App/App.test.js +++ b/src/components/App/App.test.js @@ -209,10 +209,4 @@ describe("App", () => { setToken(TEST_AUTH_OBJECT_FISKER); await check("/dashboards/0", "h6", "Datascope"); }); - - // test bad dashboard - it("Route /dashboards/1000 authenticated", async () => { - setToken(TEST_AUTH_OBJECT_FISKER); - await check("/dashboards/1000", "span.error", "Invalid Dashboard"); - }); }); diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 3051b0b..2f67ceb 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -1251,508 +1251,6 @@ exports[`App Route /dashboards/0 unauthenticated 1`] = ` `; -exports[`App Route /dashboards/1000 authenticated 1`] = ` -
-
-
-
-
- -
-
- Datascope -
- -
-
- -
-
-
- -
-
-
- - Invalid Dashboard - -
-
-
-
-
-`; - exports[`App Route /home authenticated 1`] = `
{ order: `${orderBy} ${order}`, manifest_type: TYPE_MANIFEST_SOFTWARE, search, - active: active, + active, }, token ); @@ -246,15 +247,21 @@ const MainForm = () => { - - Active - Archived - + + Active + Archived + +