Add XCA-style SAN editor

This commit is contained in:
2026-10-26 12:06:17 +08:00
parent dd6d20e3a3
commit c8031f5876
3 changed files with 406 additions and 18 deletions
+1 -1
View File
@@ -54,12 +54,12 @@ test("explicit DN order, mandatory DN and template apply", async ({ page }) => {
await page.goto(`${vaultUrl}/certificates/new`);
await expect(page.getByText("Additional subject attributes")).toBeVisible();
await expect(page.locator("label").filter({ hasText: "Country (C)" })).toHaveCount(0);
const labels = await page.locator("label").allTextContents();
const cnIndex = labels.findIndex((label) => label.trim() === "Common name (CN)");
const oIndex = labels.findIndex((label) => label.trim() === "Organization (O)");
expect(cnIndex).toBeGreaterThan(-1);
expect(oIndex).toBeGreaterThan(cnIndex);
await expect(page.locator("label").filter({ hasText: "Country (C)" })).toHaveCount(0);
// Applying a template uses the server merge endpoint and updates typed fields.
await page.locator("select").nth(2).selectOption("builtin:tls-server");