- 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
19 lines
703 B
TypeScript
19 lines
703 B
TypeScript
// @ts-nocheck
|
|
import { test, expect } from '@playwright/test';
|
|
import { calculateContrastRatio, meetsWCAGStandard } from '@/lib/color-contrast';
|
|
|
|
test('primary text on primary background should meet WCAG AA', () => {
|
|
const result = meetsWCAGStandard('#1C1C1C', '#FAFAFA', 'AA', 'normal');
|
|
expect(result.passes).toBe(true);
|
|
});
|
|
|
|
test('tertiary text on primary background should meet WCAG AA', () => {
|
|
const result = meetsWCAGStandard('#5C5C5C', '#FAFAFA', 'AA', 'normal');
|
|
expect(result.passes).toBe(true);
|
|
});
|
|
|
|
test('muted text on primary background should meet WCAG AA', () => {
|
|
const result = meetsWCAGStandard('#8C8C8C', '#FAFAFA', 'AA', 'normal');
|
|
expect(result.passes).toBe(true);
|
|
});
|