24-8: articles and legal pages — implemented, QA Review

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Naser Mansour
2026-10-31 18:54:18 +02:00
parent 7879ac7190
commit 2c068277a2
13 changed files with 203 additions and 129 deletions
+15
View File
@@ -0,0 +1,15 @@
# Manual tests — 24-8 Articles and Legal Pages
Automated (passed 2026-10-31, `tests/Feature/Design/ArticlesLegalRedesignTest.php`, 9 tests; Design dir 106 incl. old `PostsTest`): `/posts` section head,
one h1, debounced search input, text-only post cards; search filters, shows the count line and clear action; empty-state text;
pagination wrapper present with 12 posts; article page meta/h1/prose/back link, unpublished post is 404; `/page/terms` shows title,
sanitised content (script stripped) and last-updated line; terms/privacy views one h1; `/admin/posts` loads no public assets.
UI loop (`/posts`, `/page/terms`): no horizontal scroll at 390/768/1440.
Ruling logged: `x-site.section-head` gained an optional `tag` prop (default `h2`); `/posts` and `/booking` pass `tag="h1"` so each page has exactly one h1 (the spec's own acceptance criterion).
- [ ] `/posts`: type in the search box; after a short pause the list filters and "N results" appears; Clear resets.
- [ ] With more than 10 published posts: pagination pills at the bottom, current page forest green.
- [ ] Open an article: date, large display heading, readable body, Back button.
- [ ] `/page/terms` and `/page/privacy`: white card with the CMS text and "last updated" line; check Arabic and English.
- [ ] 390px on each page: no sideways scroll.