Revert "CI: do not test Webkit on Linux"

This reverts commit 4762d2c7623eccaf297a2bf9f4c7aa957aa32c6f.
Following release of support for X25519 in Webkit Linux.
This commit is contained in:
larabr 2025-03-12 13:51:47 +01:00
parent c2526c8a88
commit 73241e5aad
2 changed files with 4 additions and 7 deletions

View File

@ -106,7 +106,6 @@ jobs:
npx playwright install --with-deps firefox
- name: Install WebKit # caching not possible, external shared libraries required
if: ${{ matrix.runner == 'macos-latest' }} # do not install on ubuntu, since the X25519 WebCrypto implementation has issues
run: npx playwright install --with-deps webkit
- name: Run browser tests

View File

@ -1,10 +1,10 @@
import { existsSync } from 'fs';
import { playwrightLauncher, playwright } from '@web/test-runner-playwright';
import { playwrightLauncher } from '@web/test-runner-playwright';
const sharedPlaywrightCIOptions = {
// createBrowserContext: ({ browser }) => browser.newContext({ ignoreHTTPSErrors: true }),
headless: true
};
export default {
nodeResolve: true, // to resolve npm module imports in `unittests.html`
files: './test/unittests.html',
@ -29,13 +29,11 @@ export default {
...sharedPlaywrightCIOptions,
product: 'firefox'
}),
// try setting up webkit, but ignore if not available
// (e.g. on ubuntu, where we don't want to test webkit as the WebCrypto X25519 implementation has issues)
existsSync(playwright.webkit.executablePath()) && playwrightLauncher({
playwrightLauncher({
...sharedPlaywrightCIOptions,
product: 'webkit'
})
].filter(Boolean)
]
}
]
};