Skip to content

Commit 18d421b

Browse files
committed
chacha20poly1305: use local http-server for testing on browsers.
1 parent 46d749d commit 18d421b

File tree

5 files changed

+646
-5
lines changed

5 files changed

+646
-5
lines changed

.github/workflows/ci_browser.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,11 @@ jobs:
148148
deno task minify > test/runtimes/browsers/pages/src/hpke-dhkem-x448.js
149149
cd test/runtimes/browsers
150150
npm ci && npx playwright install-deps && npx playwright install && npx playwright test
151-
- working-directory: ./packages/chacha20poly1305/test/runtimes/browsers
152-
run: npm install && npx playwright install-deps && npx playwright install && npx playwright test
151+
- working-directory: ./packages/chacha20poly1305
152+
run: |
153+
deno task minify > test/runtimes/browsers/pages/src/hpke-chacha20poly1305.js
154+
cd test/runtimes/browsers
155+
npm ci && npx playwright install-deps && npx playwright install && npx playwright test
153156
- working-directory: ./packages/hybridkem-x25519-kyber768/test/runtimes/browsers
154157
run: npm install && npx playwright install-deps && npx playwright install && npx playwright test
155158
- working-directory: ./packages/hybridkem-x-wing/test/runtimes/browsers

packages/chacha20poly1305/test/runtimes/browsers/chacha20poly1305.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, test } from "@playwright/test";
22

33
test("basic test", async ({ page }) => {
4-
await page.goto("https://dajiaji.github.io/hpke-js/chacha20poly1305");
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("9");

0 commit comments

Comments
 (0)