20260728_2 修复rpki-explorer体验问题7项(#134):证书资源可展开、CMS对象新增EE Parsed Tab、Overview增加repo数KPI/修复Object types标签/Top repositories按objects排序(后端sort参数)/reject reasons按前缀聚类可下钻、Run选择器30s轮询

This commit is contained in:
2026-07-28 13:21:58 +08:00
parent 0d6bbec9f3
commit f7f80fe684
20 changed files with 676 additions and 70 deletions

View File

@@ -49,8 +49,35 @@ test("validation explain POSTs and renders the audit-projection notice", async (
await expect(page.getByText("not a full revalidation")).toBeVisible();
});
test("manifest object renders the file list", async ({ page }) => {
await page.goto("/objects/obj-mft-0001");
test("CMS-signed ROA shows the EE Parsed tab with the embedded certificate", async ({ page }) => {
await page.goto("/objects/obj-roa-0001");
const eeTab = page.getByRole("tab", { name: "EE Parsed" });
await expect(eeTab).toBeVisible();
await eeTab.click();
// EE certificate fields rendered like the Certificate object Parsed view.
await expect(page.getByText("Serial number")).toBeVisible();
await expect(page.getByText("0E65A501").first()).toBeVisible();
await expect(page.getByText("CN=alice-roa-ee, serialNumber=0E65A501")).toBeVisible();
await expect(page.getByText("CN=A9114E750000, serialNumber=5A179648")).toBeVisible();
await expect(page.getByText("aa11bb22cc33dd44ee55ff66778899aabbccdd")).toBeVisible();
await expect(page.getByText("203.0.113.0/24")).toBeVisible();
await expect(page.getByText("AS65001", { exact: true })).toBeVisible();
await expect(page.getByText("1.2.840.113549.1.1.11")).toBeVisible();
});
test("non-CMS objects do not show the EE Parsed tab", async ({ page }) => {
await page.goto("/objects/obj-crl-0001");
await expect(page.getByText("CRL number")).toBeVisible();
await expect(page.getByRole("tab", { name: "EE Parsed" })).not.toBeVisible();
await page.goto("/objects/obj-cer-0001");
await expect(page.getByText("Serial number")).toBeVisible();
await expect(page.getByRole("tab", { name: "EE Parsed" })).not.toBeVisible();
});
test("manifest object renders the file list", async ({ page }) => { await page.goto("/objects/obj-mft-0001");
await expect(page.getByText("Manifest number")).toBeVisible();
await expect(page.getByText("0A2F")).toBeVisible();
await expect(page.getByRole("cell", { name: "alice.roa" })).toBeVisible();