mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2025-05-14 12:32:36 +02:00
28 lines
625 B
TypeScript
28 lines
625 B
TypeScript
import { PlaywrightTestConfig, devices } from '@playwright/test';
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
testDir: 'e2e',
|
|
testMatch: 'e2e/*.e2e-spec.ts',
|
|
webServer: {
|
|
command: 'ng build --configuration=tests --localize && node scripts/test_server.js',
|
|
port: 4201,
|
|
reuseExistingServer: true,
|
|
},
|
|
expect: {
|
|
toMatchSnapshot: {
|
|
maxDiffPixelRatio: 0.01,
|
|
},
|
|
},
|
|
use: {
|
|
headless: true,
|
|
baseURL: 'http://localhost:4201',
|
|
viewport: { width: 1920, height: 1080 },
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
...devices['Desktop Chrome'],
|
|
}
|
|
]
|
|
};
|
|
export default config;
|