Fix test failures and workload/websocket behavior

This commit is contained in:
beabigegg
2026-01-11 08:37:21 +08:00
parent 3bdc6ff1c9
commit f5f870da56
49 changed files with 3006 additions and 1132 deletions

View File

@@ -0,0 +1,22 @@
import { defineConfig } from 'playwright/test';
export default defineConfig({
testDir: 'e2e',
testMatch: '**/*.spec.ts',
outputDir: 'test-results/playwright',
globalSetup: './e2e/global-setup.ts',
timeout: 60_000,
expect: {
timeout: 10_000,
},
reporter: [['list']],
workers: 1,
use: {
baseURL: process.env.E2E_BASE_URL || 'http://localhost:3000',
storageState: 'e2e/.auth/admin.json',
headless: true,
viewport: { width: 1280, height: 720 },
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
},
});