-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
40 lines (39 loc) · 1003 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
40 lines (39 loc) · 1003 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
import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './tests/e2e',
fullyParallel: true,
reporter: 'list',
use: {
baseURL:
process.env.PLAYWRIGHT_WEB_COMPONENT_BASE_URL ?? 'http://127.0.0.1:44173',
trace: 'on-first-retry',
},
webServer: process.env.PLAYWRIGHT_MANUAL_SERVERS === '1'
? undefined
: [
{
command: 'pnpm serve:web-component',
url: 'http://127.0.0.1:44173',
reuseExistingServer: true,
timeout: 120000,
},
{
command: 'pnpm serve:performance-lab',
url: 'http://127.0.0.1:44175',
reuseExistingServer: true,
timeout: 120000,
},
{
command: 'pnpm serve:react',
url: 'http://127.0.0.1:44174',
reuseExistingServer: true,
timeout: 120000,
},
],
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
})