openpgpjs/test/web-test-runner.config.js
larabr 04c59a297a
CI: increase browser timeout (all browsers)
4aad1d1e34dd9cb6e5846364c0de549d27cc6e64 was only targeting
Browserstack (by mistake). This applies the change to all browsers.
2025-11-14 12:46:02 +01: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: 600000,
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'
})
]
}
]
};