Remove bulk actions from certificate list

This commit is contained in:
Walter Oggioni authored and woggioni committed 2026-10-27 00:14:32 +08:00
1 parent 555f3f28f7
commit 73e6a11463
5 files changed
+26 -297

No files matched your search

+6
View File
@@ -79,12 +79,18 @@ test("core PKI workflow", async ({ page }) => {
// Certificate list links to the detail route in both views.
const certDetailUrl = /\/vaults\/[^/]+\/certificates\/[^/]+$/;
await page.goto(`${vaultUrl}/certificates`);
await expect(page.getByRole("button", { name: "Select all revocable" })).toHaveCount(0);
await expect(page.getByRole("button", { name: "Revoke selected" })).toHaveCount(0);
await expect(page.locator("input[data-cert-id]")).toHaveCount(0);
await page.getByRole("link", { name: leafName, exact: true }).click();
await expect(page).toHaveURL(certDetailUrl);
await expect(page.getByRole("heading", { name: leafName })).toBeVisible();
await page.goto(`${vaultUrl}/certificates`);
await page.getByRole("button", { name: "Plain view" }).click();
await expect(page.getByRole("button", { name: "Select all revocable" })).toHaveCount(0);
await expect(page.getByRole("button", { name: "Revoke selected" })).toHaveCount(0);
await expect(page.locator("input[data-cert-id]")).toHaveCount(0);
await page.getByRole("link", { name: leafName, exact: true }).click();
await expect(page).toHaveURL(certDetailUrl);
await expect(page.getByRole("heading", { name: leafName })).toBeVisible();