Requirements, execution plan, functional design, code summaries, build and test results and the audit log; the reverse-engineering notes and the feature registry are updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2.2 KiB
2.2 KiB
Integration Test Instructions
Purpose
The two units meet in the testimonials section: the new heading style (unit 1) sits above the new slides (unit 2), and the heading style also reaches every other page that uses SectionHeading. These scenarios check that they work together on the built site.
Scenarios
1. Heading style on every page that uses SectionHeading
- Setup:
pnpm build, thenpnpm preview(port 4173). - Steps: open
/,/over-mij,/contact,/portfolio,/soorten-fotoshoots/newbornand/soorten-fotoshoots/gezinat 390, 768 and 1440 px; read the line count of each uppercaseh2and the page'sscrollWidth. - Expected: every title shows in capitals; no page scrolls sideways; the longest title ("Lifestyle fotograaf met een passie voor storytelling") takes 4 lines at 390 px and 3 lines from 768 px.
2. Testimonials section on the built, prerendered page
- Steps: open
/, scroll to "Lieve woorden", wait for the carousel; read the geometry of the slide, photo, card and control bar at 1440, 1024, 768 and 390 px. - Expected: from 1024 px the photo overlaps the card and the control bar sits under the card inside the slide's height; below 1024 px the layout is stacked with the photo at most 640 px wide; the card is
rgb(232, 224, 213); the second slide starts at the group's right edge (no glimpse); the crop is50% 42%on the rings photo.
3. Prerender to hydration to carousel
- Covered by: the existing prerender, hydration and placeholder tests (
Testimonials in the prerendered HTML,displayHydration,hydration) and the e2e suitesrawHtml,noJsandinteraction. - Expected: the HTML holds every review's text; without JavaScript the longest review and the hidden copies are present; after hydration the carousel replaces the placeholder without a layout jump.
Run
cd web
pnpm build && pnpm e2e # scenario 3 and the page-level checks
pnpm preview # then the browser checks of scenarios 1 and 2
The browser checks of scenarios 1 and 2 were run with playwright-core (already a dev dependency) against Chrome; the scripts are scratch files, not part of the repository.