-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
33 lines (31 loc) · 901 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
33 lines (31 loc) · 901 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
import { defineConfig, devices } from '@playwright/test';
import path from 'node:path';
const e2eRoot = path.join('.tmp-e2e', String(process.pid));
export default defineConfig({
testDir: './e2e',
fullyParallel: false,
workers: 1,
reporter: [['list'], ['html', { open: 'never' }]],
use: {
baseURL: 'http://127.0.0.1:8001',
trace: 'retain-on-failure',
},
webServer: {
command: 'bun run dev -- --hostname 127.0.0.1 --port 8001',
env: {
...process.env,
CODEBUDDY_API_ENDPOINT: 'http://127.0.0.1:65535',
CODEBUDDY_CREDENTIALS_DIR: path.join(e2eRoot, '.codebuddy_creds'),
CODEBUDDY_STORAGE_FILE_DIR: path.join(e2eRoot, '.codebuddy_data'),
},
reuseExistingServer: false,
timeout: 120_000,
url: 'http://127.0.0.1:8001/health',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});