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

36 lines
705 B
TypeScript

export const formData = {
valid: {
name: '测试用户',
email: 'test@example.com',
phone: '13800138000',
message: '这是一条测试消息,用于测试表单提交功能'
},
invalid: {
email: 'invalid-email',
phone: '123',
empty: ''
}
};
export const performanceThresholds = {
loadTime: 4000,
domContentLoaded: 2500,
firstContentfulPaint: 2000,
largestContentfulPaint: 3000,
cumulativeLayoutShift: 0.1,
firstInputDelay: 100
};
export const accessibilityThresholds = {
score: 80,
maxViolations: 5
};
export const seoThresholds = {
score: 80,
minTitleLength: 10,
maxTitleLength: 60,
minDescriptionLength: 50,
maxDescriptionLength: 160
};