Skip to content

Commit

Permalink
testing speedometer
Browse files Browse the repository at this point in the history
  • Loading branch information
wrighbr committed Feb 11, 2022
1 parent cc21aa2 commit 9f18140
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/components/HarborRepository.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,24 @@ describe("Harbor Repository", () => {
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}

describe("Harbor SpeedoMeter", () => {
it("loads harbor SpeedoMeter", async () => {
await act(async () =>
render(
<HarborRepository project="project" repository="component" widget />
)
);

await act(() => sleep(1000));

// expect(screen.getByText("Docker Image")).toBeInTheDocument();
expect(screen.getByText("vulnerability levels")).toBeInTheDocument();

expect(screen.getByText("None")).toBeInTheDocument();
expect(screen.getByText("Low")).toBeInTheDocument();
expect(screen.getByText("Medium")).toBeInTheDocument();
expect(screen.getByText("High")).toBeInTheDocument();
expect(screen.getByText("Critical")).toBeInTheDocument();
});
});

0 comments on commit 9f18140

Please sign in to comment.