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:
@@ -2,8 +2,16 @@ import { test, expect } from '@playwright/test';
|
||||
import { HomePage, AboutPage, ContactPage, ProductsPage, ServicesPage, CasesPage, NewsPage } from '../../shared/pages';
|
||||
import { PerformanceMonitor } from '../../shared/utils/performance/PerformanceMonitor';
|
||||
import { performanceThresholds } from '../../shared/config/test-data';
|
||||
import { TestWarmup } from '../../shared/utils/testing/TestWarmup';
|
||||
|
||||
test.describe('性能审计测试', () => {
|
||||
test.beforeAll(async ({ browser }) => {
|
||||
const context = await browser.newContext();
|
||||
const page = await context.newPage();
|
||||
await TestWarmup.warmupBrowser(page);
|
||||
await context.close();
|
||||
});
|
||||
|
||||
const pages = [
|
||||
{ name: '首页', PageClass: HomePage },
|
||||
{ name: '关于我们', PageClass: AboutPage },
|
||||
|
||||
Reference in New Issue
Block a user