-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
28 lines (27 loc) · 931 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
28 lines (27 loc) · 931 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
import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './tests',
timeout: 60_000,
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
// Cap local parallelism: 6 workers (3 browsers x 2) OOMs the WebKit
// renderer on this dev box. CI already runs with 2.
workers: process.env.CI ? 2 : 4,
reporter: process.env.CI ? 'github' : 'list',
use: {
baseURL: 'http://127.0.0.1:4300',
trace: 'on-first-retry',
},
webServer: {
command: 'node scripts/serve.mjs 4300',
url: 'http://127.0.0.1:4300/examples/vanilla/',
reuseExistingServer: !process.env.CI,
timeout: 15_000,
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'webkit', use: { ...devices['Desktop Safari'] } },
],
})