-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
31 lines (30 loc) · 711 Bytes
/
playwright.config.ts
File metadata and controls
31 lines (30 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e-tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1,
reporter: 'html',
use: {
baseURL: 'http://localhost:3000',
},
webServer: {
command: 'yarn dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1920, height: 1080 },
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'on-first-retry',
},
},
],
});