Skip to content

Commit

Permalink
fix frontend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PacoVK committed Oct 23, 2023
1 parent fdf07bc commit a5d2aa8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,44 +96,6 @@ Object {
/>
</div>
</a>
<a
class="MuiListItem-root MuiListItem-gutters css-1nxmd3h-MuiListItem-root"
href="/management"
>
<div
class="MuiButtonBase-root MuiListItemButton-root MuiListItemButton-gutters MuiListItemButton-root MuiListItemButton-gutters css-16ac5r2-MuiButtonBase-root-MuiListItemButton-root"
role="button"
tabindex="0"
>
<div
class="MuiListItemIcon-root css-cveggr-MuiListItemIcon-root"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="KeyIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"
/>
</svg>
</div>
<div
class="MuiListItemText-root css-tlelie-MuiListItemText-root"
>
<span
class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-10hburv-MuiTypography-root"
>
Management
</span>
</div>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</div>
</a>
</ul>
</div>
</div>
Expand Down Expand Up @@ -231,44 +193,6 @@ Object {
/>
</div>
</a>
<a
class="MuiListItem-root MuiListItem-gutters css-1nxmd3h-MuiListItem-root"
href="/management"
>
<div
class="MuiButtonBase-root MuiListItemButton-root MuiListItemButton-gutters MuiListItemButton-root MuiListItemButton-gutters css-16ac5r2-MuiButtonBase-root-MuiListItemButton-root"
role="button"
tabindex="0"
>
<div
class="MuiListItemIcon-root css-cveggr-MuiListItemIcon-root"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
data-testid="KeyIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"
/>
</svg>
</div>
<div
class="MuiListItemText-root css-tlelie-MuiListItemText-root"
>
<span
class="MuiTypography-root MuiTypography-body1 MuiListItemText-primary css-10hburv-MuiTypography-root"
>
Management
</span>
</div>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</div>
</a>
</ul>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/main/webui/src/views/ModuleDetails.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ModuleDetails from "./ModuleDetails";

jest.mock("react-router-dom", () => ({
...jest.requireActual("react-router-dom"),
useNavigate: () => jest.fn(),
useLocation: () => ({
pathname: "localhost:3000/module/foo/bar/aws",
}),
Expand Down
1 change: 1 addition & 0 deletions src/main/webui/src/views/ProviderDetails.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ProviderDetails from "./ProviderDetails";

jest.mock("react-router-dom", () => ({
...jest.requireActual("react-router-dom"),
useNavigate: () => jest.fn(),
useLocation: () => ({
pathname: "localhost:3000/providers/foo/bar",
}),
Expand Down

0 comments on commit a5d2aa8

Please sign in to comment.