Skip to content

Commit ea015d5

Browse files
committed
core: add DhkemX25519HkdfSha256 test for browsers.
1 parent 4d0e8b1 commit ea015d5

File tree

6 files changed

+770
-14
lines changed

6 files changed

+770
-14
lines changed
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
import { expect, test } from "@playwright/test";
22

33
test("basic test", async ({ page }) => {
4-
await page.goto("https://dajiaji.github.io/hpke-js/core");
4+
await page.goto("./index.html");
55
await page.click("text=run");
66
await page.waitForTimeout(5000);
77
await expect(page.locator("id=pass")).toHaveText("18");
88
await expect(page.locator("id=fail")).toHaveText("0");
99
});
10+
11+
test("secure curves test", async ({ browserName, page }) => {
12+
test.skip(
13+
browserName === "webkit",
14+
"Secure curves are not supported in Safari",
15+
);
16+
await page.goto("./secure_curves.html");
17+
await page.click("text=run");
18+
await page.waitForTimeout(5000);
19+
await expect(page.locator("id=pass")).toHaveText("6");
20+
await expect(page.locator("id=fail")).toHaveText("0");
21+
});

0 commit comments

Comments
 (0)