diff --git a/.github/workflows/ci_browser.yml b/.github/workflows/ci_browser.yml index a31eaa6e8..54b432224 100644 --- a/.github/workflows/ci_browser.yml +++ b/.github/workflows/ci_browser.yml @@ -30,12 +30,12 @@ jobs: cp -rf x/dhkem-x25519/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkem-x25519 mkdir test/runtimes/browsers/pages/dhkem-secp256k1 cp -rf x/dhkem-secp256k1/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkem-secp256k1 - deno task minify > test/runtimes/browsers/pages/dhkem-secp256k1/src/hpke.js - working-directory: ./core run: | deno task dnt deno task minify > ../test/runtimes/browsers/pages/core/src/hpke-core.js deno task minify > ../test/runtimes/browsers/pages/dhkem-x25519/src/hpke-core.js + deno task minify > ../test/runtimes/browsers/pages/dhkem-secp256k1/src/hpke-core.js - working-directory: ./x/dhkem-x25519 run: | deno task dnt diff --git a/.github/workflows/ci_bun.yml b/.github/workflows/ci_bun.yml index 48e46550f..68b737aa1 100644 --- a/.github/workflows/ci_bun.yml +++ b/.github/workflows/ci_bun.yml @@ -29,7 +29,6 @@ jobs: npm install -g esbuild deno task dnt deno task minify > test/runtimes/hpke.js - deno task minify > x/dhkem-secp256k1/test/runtimes/hpke.js - uses: antongolub/action-setup-bun@v1 with: bun-version: ${{ matrix.bun-version }} @@ -44,6 +43,7 @@ jobs: deno task dnt deno task minify > test/runtimes/hpke-core.js deno task minify > ../x/dhkem-x25519/test/runtimes/hpke-core.js + deno task minify > ../x/dhkem-secp256k1/test/runtimes/hpke-core.js - name: Run test for core working-directory: ./core/test/runtimes/bun run: | diff --git a/.github/workflows/ci_cloudflare.yml b/.github/workflows/ci_cloudflare.yml index f4cb77683..54aca7edf 100644 --- a/.github/workflows/ci_cloudflare.yml +++ b/.github/workflows/ci_cloudflare.yml @@ -24,7 +24,6 @@ jobs: npm install -g esbuild deno task dnt deno task minify > test/runtimes/hpke.js - deno task minify > x/dhkem-secp256k1/test/runtimes/hpke.js - name: Run test working-directory: ./test/runtimes/cloudflare run: | @@ -37,6 +36,7 @@ jobs: deno task dnt deno task minify > test/runtimes/hpke-core.js deno task minify > ../x/dhkem-x25519/test/runtimes/hpke-core.js + deno task minify > ../x/dhkem-secp256k1/test/runtimes/hpke-core.js - name: Run test for core working-directory: ./core/test/runtimes/cloudflare run: | diff --git a/x/dhkem-secp256k1/test/runtimes/browsers/dhkem-secp256k1.spec.ts b/x/dhkem-secp256k1/test/runtimes/browsers/dhkem-secp256k1.spec.ts index 11ddc7ad9..96d8beb05 100644 --- a/x/dhkem-secp256k1/test/runtimes/browsers/dhkem-secp256k1.spec.ts +++ b/x/dhkem-secp256k1/test/runtimes/browsers/dhkem-secp256k1.spec.ts @@ -4,6 +4,6 @@ test("basic test", async ({ page }) => { await page.goto("https://dajiaji.github.io/hpke-js/dhkem-secp256k1"); await page.click("text=run"); await page.waitForTimeout(5000); - await expect(page.locator("id=pass")).toHaveText("9"); + await expect(page.locator("id=pass")).toHaveText("6"); await expect(page.locator("id=fail")).toHaveText("0"); }); diff --git a/x/dhkem-secp256k1/test/runtimes/browsers/pages/index.html b/x/dhkem-secp256k1/test/runtimes/browsers/pages/index.html index 6140aaaee..1cef3e6f6 100644 --- a/x/dhkem-secp256k1/test/runtimes/browsers/pages/index.html +++ b/x/dhkem-secp256k1/test/runtimes/browsers/pages/index.html @@ -1,8 +1,8 @@ -