| Total Complexity | 2 |
| Complexity/F | 0 |
| Lines of Code | 28 |
| Function Count | 0 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { defineConfig, devices } from '@playwright/test'; |
||
| 2 | |||
| 3 | export default defineConfig({ |
||
| 4 | testDir: './test/e2e', |
||
| 5 | fullyParallel: true, |
||
| 6 | forbidOnly: !!process.env.CI, |
||
| 7 | retries: process.env.CI ? 2 : 0, |
||
| 8 | workers: process.env.CI ? 1 : undefined, |
||
| 9 | reporter: 'html', |
||
| 10 | use: { |
||
| 11 | baseURL: 'http://localhost:3000', |
||
| 12 | trace: 'on-first-retry', |
||
| 13 | screenshot: 'only-on-failure', |
||
| 14 | }, |
||
| 15 | projects: [ |
||
| 16 | { |
||
| 17 | name: 'chromium', |
||
| 18 | use: { ...devices['Desktop Chrome'] }, |
||
| 19 | }, |
||
| 20 | ], |
||
| 21 | webServer: { |
||
| 22 | command: 'npm run dev', |
||
| 23 | url: 'http://localhost:3000', |
||
| 24 | reuseExistingServer: !process.env.CI, |
||
| 25 | timeout: 120 * 1000, |
||
| 26 | }, |
||
| 27 | }); |
||
| 28 |