-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
27 lines (25 loc) · 704 Bytes
/
playwright.config.ts
File metadata and controls
27 lines (25 loc) · 704 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
import { devices, type PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
webServer: {
command: 'npm run build && npm run preview',
port: 4173,
reuseExistingServer: !process.env.CI
},
testDir: 'tests',
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
fullyParallel: true,
retries: 2,
globalSetup: './tests/global-setup',
globalTeardown: './tests/global-teardown',
workers: 1,
reporter: process.env.CI ? 'list' : 'html',
use: {
baseURL: 'http://localhost:4173',
trace: 'on-first-retry',
video: 'retain-on-failure',
locale: 'en-US'
},
timeout: 60000,
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }]
};
export default config;