Files
wenzi/frontend/e2e-admin/playwright.config.ts

33 lines
688 B
TypeScript
Raw Permalink Normal View History

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
testMatch: '*.spec.ts',
fullyParallel: false,
workers: 1,
// 稳定性修复仅对管理端E2E增加一次重试吸收偶发环境抖动。
retries: 1,
reporter: [['list']],
use: {
baseURL: 'http://localhost:5173',
trace: 'off',
screenshot: 'off',
video: 'off',
actionTimeout: 30000,
navigationTimeout: 60000,
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
launchOptions: {
args: ['--no-sandbox', '--disable-setuid-sandbox']
}
},
},
],
});