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 a2f2ca2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 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
26 changes: 13 additions & 13 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,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();
});
Expand All @@ -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();
});
Expand All @@ -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();
});
Expand Down

0 comments on commit a2f2ca2

Please sign in to comment.