Skip to content

Commit

Permalink
Updated tests/snapshots to reflect header modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
chrtorres committed Mar 19, 2024
1 parent 3c6ddf1 commit 56172b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
</svg>
My Account
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="m7 10 5 5 5-5z"
/>
</svg>
</div>
</a>
</div>
Expand Down
20 changes: 10 additions & 10 deletions frontend/src/components/__tests__/header.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand All @@ -54,8 +54,8 @@ describe('Header component', () => {
'Overview',
'Inventory',
// 'My Organizations',
'My Account',
'My Settings',
// 'My Account',
// 'My Settings',
'Logout'
].forEach((expected) => {
expect(getByText(expected)).toBeInTheDocument();
Expand All @@ -76,8 +76,8 @@ describe('Header component', () => {
'Overview',
'Inventory',
// 'My Organizations',
'My Account',
'My Settings',
// 'My Account',
// 'My Settings',
'Logout'
].forEach((expected) => {
expect(getByText(expected)).toBeInTheDocument();
Expand All @@ -98,10 +98,10 @@ describe('Header component', () => {
'Overview',
'Inventory',
'Scans',
'Manage Organizations',
'Manage Users',
'My Account',
'My Settings',
// 'Manage Organizations',
// 'Manage Users',
// 'My Account',
// 'My Settings',
'Logout'
].forEach((expected) => {
expect(getByText(expected)).toBeInTheDocument();
Expand Down

0 comments on commit 56172b5

Please sign in to comment.