test: isolate Related Stories partial counts

This commit is contained in:
chrnx committed 2026-08-12 22:51:08 -05:00
1 parent 38d26acabc
commit 12259f4837
7 files changed
+33 -283

No files matched your search

@@ -129,7 +129,7 @@ Test-driven implementation begins with failing tests for:
- Independent JavaScript controllers, measured one-card movement, edge disabling, resize updates, reduced motion, missing-markup safety, and cleanup.
- CSS contracts for adaptive, grid, carousel, scroll snap, 45px controls, no-JS, reduced motion, and absence of page overflow.
- Playwright coverage at 375, 768, 900, 901, 1440, and 2560 pixels in light and dark themes.
- The complete `3/5 × adaptive/grid/carousel` matrix, plus adaptive availability counts of one, two, and four.
- The complete browser `3/5 × adaptive/grid/carousel` matrix, plus isolated PHPUnit factory coverage for availability counts of one, two, and four; browser fixtures never mutate unowned posts to manufacture partial results.
- Runtime geometry: exact grid column counts; carousel card width formula within two CSS pixels; 24px-to-25% continuation preview bounds; correct control visibility at 900/901; track-only overflow; and `document.documentElement.scrollWidth <= document.documentElement.clientWidth`.
- Resize focus regression in both directions, including 900→901 while Previous owns focus and while Next owns focus; the visible section heading becomes the destination before controls hide.
- Real pointer/button and keyboard interaction without a focus trap.