-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
40 lines (39 loc) · 829 Bytes
/
Copy pathplaywright.config.js
File metadata and controls
40 lines (39 loc) · 829 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
32
33
34
35
36
37
38
39
40
// @ts-check
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
timeout: 60000,
expect: { timeout: 10000 },
fullyParallel: false,
retries: 1,
reporter: [['list'], ['html', { open: 'never' }]],
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
headless: true,
},
projects: [
{
name: 'chromium',
use: { browserName: 'chromium' },
},
],
/* Start both servers before tests */
webServer: [
{
command: 'npm run dev',
cwd: './backend',
port: 5001,
timeout: 30000,
reuseExistingServer: true,
},
{
command: 'npm run dev',
cwd: './frontend',
port: 5173,
timeout: 30000,
reuseExistingServer: true,
},
],
});