-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.mjs
More file actions
30 lines (28 loc) · 907 Bytes
/
playwright.config.mjs
File metadata and controls
30 lines (28 loc) · 907 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
import { defineConfig } from '@playwright/test';
const PLAYWRIGHT_PORT = process.env.NOMAD_PLAYWRIGHT_PORT || '4317';
const PLAYWRIGHT_BASE_URL = process.env.NOMAD_PLAYWRIGHT_BASE_URL || `http://127.0.0.1:${PLAYWRIGHT_PORT}`;
export default defineConfig({
testDir: './tests/ui',
timeout: 45_000,
fullyParallel: false,
retries: 0,
reporter: [
['list'],
['html', { open: 'never', outputFolder: 'playwright-report' }],
],
outputDir: 'test-results/playwright',
use: {
baseURL: PLAYWRIGHT_BASE_URL,
viewport: { width: 1600, height: 1000 },
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
},
webServer: {
command: `py -3 -m flask --app web.app run --host 127.0.0.1 --port ${PLAYWRIGHT_PORT} --no-debugger --no-reload`,
url: PLAYWRIGHT_BASE_URL,
reuseExistingServer: false,
stdout: 'pipe',
stderr: 'pipe',
timeout: 120_000,
},
});