From a2f2ca2bbded0ec8ad439f01f79fefbcd70e5c82 Mon Sep 17 00:00:00 2001 From: Chrtorres Date: Tue, 19 Mar 2024 12:48:32 -0400 Subject: [PATCH] Updated tests/snapshots to reflect header modifications --- .../__snapshots__/header.spec.tsx.snap | 12 --------- .../src/components/__tests__/header.spec.tsx | 26 +++++++++---------- 2 files changed, 13 insertions(+), 25 deletions(-) diff --git a/frontend/src/components/__tests__/__snapshots__/header.spec.tsx.snap b/frontend/src/components/__tests__/__snapshots__/header.spec.tsx.snap index 83e5f878c..d64d4346e 100644 --- a/frontend/src/components/__tests__/__snapshots__/header.spec.tsx.snap +++ b/frontend/src/components/__tests__/__snapshots__/header.spec.tsx.snap @@ -102,18 +102,6 @@ exports[`Header component matches snapshot 1`] = ` d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20z" /> - My Account - diff --git a/frontend/src/components/__tests__/header.spec.tsx b/frontend/src/components/__tests__/header.spec.tsx index 335595605..70db9ba59 100644 --- a/frontend/src/components/__tests__/header.spec.tsx +++ b/frontend/src/components/__tests__/header.spec.tsx @@ -36,8 +36,8 @@ describe('Header component', () => { // 'My Organizations', 'Manage Organizations', 'Scans', - 'Manage Users', - 'My Account' + 'Manage Users' + // 'My Account' ].forEach((expected) => { expect(queryByText(expected)).not.toBeInTheDocument(); }); @@ -54,9 +54,9 @@ describe('Header component', () => { 'Overview', 'Inventory', // 'My Organizations', - 'My Account', - 'My Settings', - 'Logout' + // 'My Account', + // 'My Settings', + // 'Logout' ].forEach((expected) => { expect(getByText(expected)).toBeInTheDocument(); }); @@ -76,9 +76,9 @@ describe('Header component', () => { 'Overview', 'Inventory', // 'My Organizations', - 'My Account', - 'My Settings', - 'Logout' + // 'My Account', + // 'My Settings', + // 'Logout' ].forEach((expected) => { expect(getByText(expected)).toBeInTheDocument(); }); @@ -98,11 +98,11 @@ describe('Header component', () => { 'Overview', 'Inventory', 'Scans', - 'Manage Organizations', - 'Manage Users', - 'My Account', - 'My Settings', - 'Logout' + // 'Manage Organizations', + // 'Manage Users', + // 'My Account', + // 'My Settings', + // 'Logout' ].forEach((expected) => { expect(getByText(expected)).toBeInTheDocument(); });