speedtest/playwright.config.js
sstidl 49f54a5c3c
add e2e testing (#777)
* 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>
2026-04-12 14:59:54 +02:00

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'] },
},
],
});