feat: complete system test fixes - 100% pass rate (85/85)

- Fixed all form tests (20/20 passing)
- Fixed all performance tests (35/35 passing)
- Fixed all SEO and accessibility tests (30/30 passing)
- Enhanced test framework with custom reporting
- Added performance baseline tracking
- Improved test reliability and error handling
This commit is contained in:
张翔 committed 2026-03-06 19:37:02 +08:00
1 parent e6524044ef
commit 4c8714c12d
27 files changed
+5072 -264

No files matched your search

@@ -0,0 +1,15 @@
import { Page } from '@playwright/test';
export class TestWarmup {
static async warmupBrowser(page: Page): Promise<void> {
await page.goto('about:blank');
await page.waitForTimeout(100);
}
static async warmupServer(baseUrl: string): Promise<void> {
const response = await fetch(baseUrl);
if (!response.ok) {
throw new Error(`Server warmup failed: ${response.status}`);
}
}
}