33 lines
688 B
TypeScript
33 lines
688 B
TypeScript
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']
|
||
}
|
||
},
|
||
},
|
||
],
|
||
});
|