You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haoliang-net/frontend/playwright.config.ts

26 lines
547 B
TypeScript

import { defineConfig } from '@playwright/test'
export default defineConfig({
testDir: './e2e',
timeout: 60000,
expect: { timeout: 10000 },
fullyParallel: false,
retries: 0,
use: {
baseURL: 'http://localhost:5173',
headless: true,
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
actionTimeout: 10000,
},
projects: [
{ name: 'chromium', use: { browserName: 'chromium' } },
],
webServer: {
command: 'npm run dev',
port: 5173,
reuseExistingServer: true,
timeout: 30000,
},
})