Open History to see the last commit
1import { defineConfig, devices } from '@playwright/test'
2
3const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? `http://127.0.0.1:4176`
4const shouldStartWebServer = process.env.PLAYWRIGHT_BASE_URL === undefined
5
6export default defineConfig({
7 testDir: `./e2e`,
8 timeout: 30000,
9 expect: {
10 timeout: 10000,
11 },
12 fullyParallel: false,
13 use: {
14 baseURL,
15 trace: `on-first-retry`,
16 },
17 webServer: shouldStartWebServer
18 ? {
19 command: `pnpm dev --hostname 127.0.0.1 --port 4176`,
20 reuseExistingServer: !process.env.CI,
21 timeout: 120000,
22 url: baseURL,
23 }
24 : undefined,
25 projects: [
26 {
27 name: `chromium`,
28 use: { ...devices[`Desktop Chrome`] },
29 },
30 ],
31})