2021-12-17 12:05:14 +00:00
|
|
|
/* eslint-disable filenames/match-exported */
|
|
|
|
import { PlaywrightTestConfig } from '@playwright/test';
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
|
|
webServer: {
|
|
|
|
command: 'npm run serve',
|
2022-03-18 09:57:12 +00:00
|
|
|
url: 'http://127.0.0.1:4010',
|
2021-12-17 12:05:14 +00:00
|
|
|
timeout: 120 * 1000,
|
|
|
|
reuseExistingServer: !process.env.CI,
|
|
|
|
},
|
2022-02-10 13:48:32 +00:00
|
|
|
use: {
|
|
|
|
trace: {
|
|
|
|
mode: 'retain-on-failure',
|
|
|
|
screenshots: true,
|
|
|
|
snapshots: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
reporter: process.env.CI ? 'github' : 'list',
|
2021-12-17 12:05:14 +00:00
|
|
|
timeout: process.env.CI ? 60 * 1000 : 20 * 1000,
|
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
outputDir: 'screenshots',
|
|
|
|
testDir: 'tests',
|
2022-02-17 17:27:29 +00:00
|
|
|
expect: {
|
|
|
|
timeout: process.env.CI ? 25 * 1000 : 10 * 1000,
|
|
|
|
},
|
2022-02-28 15:28:02 +00:00
|
|
|
workers: process.env.CI ? 1 : undefined,
|
2021-12-17 12:05:14 +00:00
|
|
|
};
|
|
|
|
export default config;
|