-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
49 lines (44 loc) · 990 Bytes
/
playwright.config.ts
File metadata and controls
49 lines (44 loc) · 990 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
41
42
43
44
45
46
47
48
49
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
fullyParallel: false,
workers: 1,
retries: 0,
reporter: 'html',
timeout: 30_000,
globalSetup: './e2e/global-setup.ts',
use: {
baseURL: 'http://127.0.0.1:5173',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: [
{
command: 'bun run dev',
cwd: './feed-proxy',
port: 3000,
reuseExistingServer: !process.env.CI,
timeout: 10_000,
env: { PROXY_SECRET: 'test-e2e-secret', PORT: '3000' },
},
{
command: 'npm run dev',
cwd: './backend',
port: 8787,
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
{
command: 'npm run dev',
cwd: './frontend',
url: 'http://127.0.0.1:5173',
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
],
});