Revert "CI: do not test Webkit on Linux"

This reverts commit 4762d2c7623eccaf297a2bf9f4c7aa957aa32c6f.
This commit is contained in:
larabr 2025-07-09 16:00:08 +02:00
parent 448418a6f5
commit d155da23dd
No known key found for this signature in database
GPG Key ID: 2A4BEC40729185DD
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)
]
}
]
};