Files
张翔 4c8714c12d 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
2026-03-06 19:37:02 +08:00

16 lines
411 B
TypeScript

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}`);
}
}
}