feat: release authentication laboratories 0.3.0
This commit is contained in:
@@ -48,14 +48,46 @@ test("computes an RFC OCRA vector and decodes client data", async ({
|
||||
);
|
||||
});
|
||||
|
||||
test("shared origin exposes inspection but not live credential creation", async ({
|
||||
test("localhost development enables live credential creation", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/deep/nested/auth/");
|
||||
await page.getByRole("button", { name: /WebAuthn \/ Passkeys/ }).click();
|
||||
await page.getByRole("button", { name: "Live ceremony" }).click();
|
||||
await expect(page.getByText("Inspect only")).toBeVisible();
|
||||
await expect(page.getByText("Live enabled")).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole("button", { name: "Create test credential" }),
|
||||
).toBeEnabled();
|
||||
});
|
||||
|
||||
test("exposes the advanced OTP and WebAuthn laboratories", async ({ page }) => {
|
||||
await page.goto("/deep/nested/auth/");
|
||||
await page.getByRole("button", { name: "Resync & rotation" }).click();
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "HOTP resynchronization" }),
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "Collection comparison" }),
|
||||
).toBeVisible();
|
||||
|
||||
await page.getByRole("button", { name: "Import & migration" }).click();
|
||||
await expect(
|
||||
page.getByRole("button", { name: "Scan with camera" }),
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole("button", { name: "Decrypt PSKC" }),
|
||||
).toBeDisabled();
|
||||
|
||||
await page.getByRole("button", { name: /WebAuthn \/ Passkeys/ }).click();
|
||||
await page.getByRole("button", { name: "Extensions & traces" }).click();
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "Extension configuration" }),
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "Ceremony traces" }),
|
||||
).toBeVisible();
|
||||
await page.getByRole("button", { name: "Attestation verifier" }).click();
|
||||
await expect(
|
||||
page.getByRole("heading", { name: "Trust root and historical policy" }),
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user