mirror of
https://github.com/librespeed/speedtest.git
synced 2026-05-13 16:26:38 +00:00
* docs(test): add playwright modes test plan * test(e2e): add playwright phase-1 mode coverage * test(e2e): add classic standalone no-server regression * ci(docker): gate image build on playwright e2e * ci(e2e): run on master push and allow manual dispatch --------- Co-authored-by: Stefan Stidl <stefan.stidl@ffg.at>
27 lines
729 B
JavaScript
27 lines
729 B
JavaScript
const { defineConfig, devices } = require('@playwright/test');
|
|
|
|
module.exports = defineConfig({
|
|
testDir: './tests/e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 1 : 0,
|
|
workers: process.env.CI ? 2 : undefined,
|
|
timeout: 30_000,
|
|
expect: {
|
|
timeout: 7_500,
|
|
},
|
|
reporter: process.env.CI ? [['github'], ['html', { open: 'never' }]] : [['list']],
|
|
use: {
|
|
trace: 'on-first-retry',
|
|
screenshot: 'only-on-failure',
|
|
video: 'off',
|
|
},
|
|
globalSetup: require.resolve('./tests/e2e/global-setup.js'),
|
|
globalTeardown: require.resolve('./tests/e2e/global-teardown.js'),
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
});
|