openpgpjs/test/web-test-runner.config.js
larabr 013dffce70 CI: test latest Webkit on macOS, as a replacement for testing Safari on Browserstack
We were previously testing the webkit engine on Linux, which however relies on a
different WebCrypto API implementation compared to the macOS version (behind Safari).

Also, increase mocha timeouts, as the argon2 memory-heavy test takes longer in Firefox.
2024-10-24 20:12:11 +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'
})
]
}
]
};