zonemaster-gui/playwright.config.ts
2022-06-10 13:27:07 +02:00

28 lines
598 B
TypeScript

import { PlaywrightTestConfig, devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
testDir: 'e2e',
testMatch: 'e2e/*.e2e-spec.ts',
webServer: {
command: 'npm run ng serve -- --configuration=tests --port=4201',
port: 4201,
reuseExistingServer: true,
},
expect: {
toMatchSnapshot: {
threshold: 0.25,
},
},
use: {
headless: true,
baseURL: 'http://localhost:4201',
viewport: { width: 1920, height: 1080 },
},
projects: [
{
name: 'chromium',
...devices['Desktop Chrome'],
}
]
};
export default config;