Files
novalon-website/test-framework/shared/config/test-pages.ts
T
zhangxiang 602ed6a671 test(hooks): finalize mutation test improvements and release acceptance
- Raise use-swipe-gesture mutation score to 66.13% (target 65%+)
- Maintain use-reduced-motion mutation score at 76.32% (target 50%+)
- Fix use-reduced-motion.ts ESLint set-state-in-effect warning
- Add UJ-10 deep searcher journey (category browse → article read → content discovery)
- Add 40 new test files (analytics, detail, sections, ui, lib components)
- Update test-strategy-plan.md to v2.0 (sync test count to 1591)
- Sync README.md with final release metrics

Quality gates: TS 0 errors, ESLint 0 errors, 121 suites / 1591 tests passed
2026-08-02 19:39:27 +08:00

76 lines
1.4 KiB
TypeScript

// @ts-nocheck
import { PageConfig } from '../types';
export const testPages: Record<string, PageConfig> = {
home: {
name: '首页',
url: '/',
selectors: {
title: 'h1',
hero: '.hero-section',
features: '.features-section'
}
},
about: {
name: '关于我们',
url: '/about',
selectors: {
title: 'h1',
content: '.about-content'
}
},
contact: {
name: '联系我们',
url: '/contact',
selectors: {
title: 'h1',
form: '#contact-form',
submitButton: 'button[type="submit"]'
}
},
products: {
name: '产品',
url: '/products',
selectors: {
title: 'h1',
productGrid: '.products-grid',
productCard: '.product-card'
}
},
services: {
name: '服务',
url: '/services',
selectors: {
title: 'h1',
servicesList: '.services-list',
serviceItem: '.service-item'
}
},
cases: {
name: '案例',
url: '/cases',
selectors: {
title: 'h1',
casesGrid: '.cases-grid',
caseCard: '.case-card'
}
},
news: {
name: '新闻',
url: '/news',
selectors: {
title: 'h1',
newsList: '.news-list',
newsItem: '.news-item'
}
}
};
export function getPageConfig(pageKey: string): PageConfig {
return testPages[pageKey] ?? testPages.home!;
}
export function getAllPageConfigs(): PageConfig[] {
return Object.values(testPages);
}