Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 6c5e8d8

Browse files
Add sbom vulnerability donut chart test
1 parent 3f52c69 commit 6c5e8d8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// @ts-check
2+
3+
import { expect, test } from "@playwright/test";
4+
5+
import { login } from "../../../helpers/Auth";
6+
import { VulnerabilityTab } from "./VulnerabilityTab";
7+
8+
test.describe("DonutChart validations", { tag: "@tier1" }, () => {
9+
test.beforeEach(async ({ page }) => {
10+
await login(page);
11+
});
12+
13+
test("Vulnerabilities", async ({ page }) => {
14+
await VulnerabilityTab.build(page, "quarkus-bom");
15+
16+
await expect(page.locator("#legend-labels-0")).toContainText("Critical: 0");
17+
await expect(page.locator("#legend-labels-1")).toContainText("High: 1");
18+
await expect(page.locator("#legend-labels-2")).toContainText("Medium: 9");
19+
await expect(page.locator("#legend-labels-3")).toContainText("Low: 0");
20+
await expect(page.locator("#legend-labels-4")).toContainText("None: 1");
21+
await expect(page.locator("#legend-labels-5")).toContainText("Unknown: 0");
22+
});
23+
});

0 commit comments

Comments
 (0)