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

33 lines
688 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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']
}
},
},
],
});