zonemaster-gui/playwright.config.ts
2023-05-15 09:07:06 +02:00

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;