Files
my-mom-system/erp-frontend-vue/playwright.config.ts
panchengyong c28ada5050 commit content
2026-03-06 02:02:59 +08:00

31 lines
660 B
TypeScript

import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './tests',
timeout: 60 * 1000,
expect: {
timeout: 5 * 1000
},
reporter: [
['html', { open: 'never', outputFolder: 'playwright-report' }],
['json', { outputFile: 'test-results/results.json' }],
['list']
],
use: {
baseURL: process.env.ERP_BASE_URL || 'http://localhost:5183',
headless: true,
viewport: { width: 1440, height: 900 },
ignoreHTTPSErrors: true,
screenshot: 'on',
video: 'on',
trace: 'on'
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
}
]
})