Skip to content

Commit 75ae5e1

Browse files
authored
hpke-js: use local http-server for testing on browsers. (#559)
1 parent 2dee519 commit 75ae5e1

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
@@ -173,5 +173,8 @@ jobs:
173173
deno task minify > test/runtimes/browsers/pages/src/hpke-dhkem-secp256k1.js
174174
cd test/runtimes/browsers
175175
npm ci && npx playwright install-deps && npx playwright install && npx playwright test
176-
- working-directory: ./packages/hpke-js/test/runtimes/browsers
177-
run: npm install && npx playwright install-deps && npx playwright install && npx playwright test
176+
- working-directory: ./packages/hpke-js
177+
run: |
178+
deno task minify > test/runtimes/browsers/pages/src/hpke.js
179+
cd test/runtimes/browsers
180+
npm ci && npx playwright install-deps && npx playwright install && npx playwright test

packages/hpke-js/test/runtimes/browsers/hpke.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/");
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("45");

0 commit comments

Comments
 (0)