chore: sync local latest state and repository cleanup
This commit is contained in:
32
frontend/e2e-admin/playwright.config.ts
Normal file
32
frontend/e2e-admin/playwright.config.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
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']
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user