Add XCA-style SAN editor
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user