openpgpjs/test/web-test-runner.config.js
larabr d155da23dd
Revert "CI: do not test Webkit on Linux"
This reverts commit 4762d2c7623eccaf297a2bf9f4c7aa957aa32c6f.
2025-07-09 16:00:08 +02:00

40 lines
1.1 KiB
JavaScript

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',
protocol: 'http:',
hostname: '127.0.0.1',
testsStartTimeout: 45000,
browserStartTimeout: 120000,
testsFinishTimeout: 450000,
concurrentBrowsers: 3,
concurrency: 1, // see https://github.com/modernweb-dev/web/issues/2706
coverage: false,
groups: [
{ name: 'local' }, // group meant to be used with either --browser or --manual options via CLI
{
name: 'headless:ci',
browsers: [
playwrightLauncher({
...sharedPlaywrightCIOptions,
product: 'chromium'
}),
playwrightLauncher({
...sharedPlaywrightCIOptions,
product: 'firefox'
}),
playwrightLauncher({
...sharedPlaywrightCIOptions,
product: 'webkit'
})
]
}
]
};