-
-
Notifications
You must be signed in to change notification settings - Fork 620
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
29 lines (28 loc) · 809 Bytes
/
playwright.config.ts
File metadata and controls
29 lines (28 loc) · 809 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
import { type PlaywrightTestConfig, devices } from '@playwright/test'
export default {
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
timeout: 10_000,
retries: process.env.CI ? 1 : undefined,
workers: process.env.CI ? 3 : undefined,
use: {
trace: 'on-first-retry',
launchOptions: {
devtools: !process.env.CI,
},
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
outputDir: './test-results',
snapshotDir: './test-snapshots',
forbidOnly: !!process.env.CI,
reporter: 'list',
// Run every test in parallel to ensure that tests are isolated
// and there's no shared state leaking from the shared compilation
// server or the preview server.
fullyParallel: true,
} satisfies PlaywrightTestConfig