Open History to see the last commit
1import { defineConfig, devices } from '@playwright/test'
2β
3export default defineConfig({
4 testDir: './tests',
5 fullyParallel: true,
6 forbidOnly: !!process.env.CI,
7 retries: process.env.CI ? 1 : 0,
8 reporter: process.env.CI ? 'github' : 'list',
9 use: {
10 baseURL: 'http://localhost:4179',
11 trace: 'on-first-retry',
12 },
13 projects: [
14 {
15 name: 'chromium',
16 use: {
17 ...devices['Desktop Chrome'],
18 launchOptions: {
19 args: ['--enable-features=DocumentPictureInPictureAPI'],
20 },
21 },
22 },
23 ],
24 webServer: {
25 command: 'pnpm run dev',
26 url: 'http://localhost:4179',
27 timeout: 120_000,
28 reuseExistingServer: !process.env.CI,
29 },
30})