Commit Graph
4 Commits
Author SHA1 Message Date
zhangxiang 7c0af54897 test(hooks): enhance focus-trap mutation score to 85.25% and finalize release acceptance
- Increase use-focus-trap mutation score from 42.62% to 85.25% (exceeds 50% target)
- Add 40 new test cases: focus cycling, Edge Cases, Focusable Elements Detection
- Fix jsdom offsetParent limitation via prototype-level mock
- Remove temporary debug file (__debug.test.tsx)
- Update test-strategy-plan.md to v1.9 with mutation score and debt tracking
- Update README.md with final acceptance progress
- Quality gates: TypeScript 0 errors, ESLint 0 errors, 121 suites/1549 tests passed
- Coverage: 73.62% stmts / 82.52% branches (all thresholds met)
2026-08-02 18:42:45 +08:00
zhangxiang ad1a522b17 test(hooks): expand focus-trap tests with Tab/Shift+Tab coverage and fix TypeScript errors
- Add 33 unit tests for useFocusTrap hook covering all key behaviors
- Add Tab/Shift+Tab focus cycling tests with activeElement mocking attempt
- Add Escape key behavior, state change, and dependency tracking tests
- Fix TypeScript errors in RichTextEditor.test.tsx (unknown types, unused vars)
- Fix ESLint error in use-focus-trap.test.tsx (self-closing component)
- Fix unused variable warnings in use-focus-trap.test.tsx
- All 33 tests passing, 0 TypeScript errors, 0 ESLint errors
2026-08-02 18:12:41 +08:00
zhangxiang 41b73063cd test(unit): expand unit tests and fix stress test robustness
- Add comprehensive useFocusTrap tests (edge cases, disabled elements, empty containers)
- Add useSwipeGesture tests (haptic feedback, touch events, disabled state, effect deps)
- Enhance animations.test.tsx with Framer Motion mock and component tests
- Fix stress-test.js body.length undefined error when requests fail
- Fix home-content-v14.tsx for consistency
- Clean up generated performance test summary files
2026-07-31 20:25:26 +08:00
张翔 10404dbb36 chore: sync marketing pages, CMS extensions, tests and project docs
同步工作区剩余变更,主要包括:
- 营销页面组件与布局持续优化(about/news/services/solutions/team 等)
- 详情页四层叙事组件、布局组件、UI 组件调整
- CMS 数据模型、API 路由、权限、工作流、站内通知、媒体管理扩展
- 新增/补充单元测试与 E2E 测试(cms-workflow.spec.ts 等)
- ESLint 9 迁移、jest/tsconfig 配置更新、依赖调整
- 新增 ADR、CMS 评估文档、Release Review / Acceptance 报告
- 移除水墨装饰组件与大体积未使用字体文件
2026-07-25 08:04:01 +08:00