From c1d4b00007d247a3b6e1f47638f2e89ebd749dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Thu, 29 Aug 2024 15:52:16 +0200 Subject: [PATCH 1/3] reenable legacy Firefox CDP support --- bindings/wasm/cypress.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/wasm/cypress.config.ts b/bindings/wasm/cypress.config.ts index f7cb0a6a1a..31e7819a76 100644 --- a/bindings/wasm/cypress.config.ts +++ b/bindings/wasm/cypress.config.ts @@ -18,6 +18,9 @@ export default defineConfig({ launchOptions.preferences[ "network.proxy.testing_localhost_is_secure_when_hijacked" ] = true; + launchOptions.preferences[ + "remote.active-protocols" + ] = 3; } return launchOptions; }); From 4378537c32317f9882543c22655a35a08f218bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Thu, 29 Aug 2024 16:09:47 +0200 Subject: [PATCH 2/3] add docs --- bindings/wasm/cypress.config.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bindings/wasm/cypress.config.ts b/bindings/wasm/cypress.config.ts index 31e7819a76..c59929872a 100644 --- a/bindings/wasm/cypress.config.ts +++ b/bindings/wasm/cypress.config.ts @@ -10,14 +10,17 @@ export default defineConfig({ }, e2e: { supportFile: false, - // Fix to make subtle crypto work in cypress firefox - // https://github.com/cypress-io/cypress/issues/18217 setupNodeEvents(on, config) { on("before:browser:launch", (browser, launchOptions) => { if (browser.family === "firefox") { + // Fix to make subtle crypto work in cypress firefox + // https://github.com/cypress-io/cypress/issues/18217 launchOptions.preferences[ "network.proxy.testing_localhost_is_secure_when_hijacked" ] = true; + // Temporary fix to allow cypress to control Firefox via CDP + // https://github.com/cypress-io/cypress/issues/29713 + // https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/ launchOptions.preferences[ "remote.active-protocols" ] = 3; From 9517a2bb79b1c3859abe906a94d5896359310b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Thu, 29 Aug 2024 16:24:30 +0200 Subject: [PATCH 3/3] run firefox tests in parallel --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 553774bb46..e24c9a171d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -253,7 +253,7 @@ jobs: load: true - name: Run cypress - run: docker run --network host cypress-test test:browser:firefox + run: docker run --network host cypress-test test:browser:parallel:firefox - name: Tear down iota sandbox if: always()