test(e2e,unit): add navigation edge cases and component coverage

- Add missing-paths E2E spec for desktop/mobile navigation and contrast
- Add local Playwright config for dev server testing
- Expand unit tests for CMS data server, products, contact and UI components
- Adjust jest config for new test patterns
This commit is contained in:
张翔 committed 2026-07-08 14:47:07 +08:00
1 parent 7f36211342
commit a6ea2cc72c
11 files changed
+1693 -34

No files matched your search

+5 -2
View File
@@ -48,13 +48,16 @@ export function ScrollProgress({
height: `${height}px`,
}}
aria-hidden="true"
data-testid="scroll-progress"
>
<div
style={{
width: `${shouldReduceMotion ? 0 : progress}%`,
width: '100%',
height: '100%',
background: color,
transition: shouldReduceMotion ? 'none' : 'width 0.1s linear',
transformOrigin: 'left',
transform: `scaleX(${shouldReduceMotion ? 0 : progress / 100})`,
transition: shouldReduceMotion ? 'none' : 'transform 0.1s linear',
}}
/>
</div>