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

@@ -24,6 +24,25 @@ test("certificate object renders the resourceCertificate projection", async ({ p
await expect(page.getByText("1.2.840.113549.1.1.11")).toBeVisible();
});
test("certificate AS resources collapse behind an expandable '+N more' toggle", async ({ page }) => {
await page.goto("/objects/obj-cer-0001");
// 15 AS entries: 12 visible, rest behind the toggle.
const moreToggle = page.getByRole("button", { name: "+3 more" });
await expect(moreToggle).toBeVisible();
await expect(page.getByText("AS38008", { exact: true })).toBeVisible();
await expect(page.getByText("AS64507", { exact: true })).not.toBeVisible();
await moreToggle.click();
await expect(page.getByText("AS64507", { exact: true })).toBeVisible();
await expect(page.getByText("AS64496", { exact: true })).toBeVisible();
const lessToggle = page.getByRole("button", { name: "Show less" });
await expect(lessToggle).toBeVisible();
await lessToggle.click();
await expect(page.getByText("AS64507", { exact: true })).not.toBeVisible();
});
test("crl object renders header fields from the top-level payload", async ({ page }) => {
await page.goto("/objects/obj-crl-0001");