mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2025-11-22 16:31:04 +01:00
30 lines
772 B
TypeScript
30 lines
772 B
TypeScript
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
workers: 4,
|
|
testDir: 'e2e',
|
|
testMatch: 'e2e/*.e2e-spec.ts',
|
|
webServer: {
|
|
command: 'NODE_ENV=testing npm run build && NODE_ENV=testing npm run preview',
|
|
url: 'http://localhost:4321/',
|
|
timeout: 120 * 1000,
|
|
reuseExistingServer: !process.env.CI
|
|
},
|
|
expect: {
|
|
toMatchSnapshot: {
|
|
maxDiffPixelRatio: 0.01
|
|
}
|
|
},
|
|
use: {
|
|
headless: true,
|
|
baseURL: 'http://localhost:4321',
|
|
viewport: { width: 1920, height: 1080 }
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
...devices['Desktop Chrome']
|
|
}
|
|
]
|
|
};
|
|
export default config;
|