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>
31 lines
2.2 KiB
Markdown
31 lines
2.2 KiB
Markdown
# 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`, then `pnpm preview` (port 4173).
|
|
- **Steps**: open `/`, `/over-mij`, `/contact`, `/portfolio`, `/soorten-fotoshoots/newborn` and `/soorten-fotoshoots/gezin` at 390, 768 and 1440 px; read the line count of each uppercase `h2` and the page's `scrollWidth`.
|
|
- **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 is `50% 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 suites `rawHtml`, `noJs` and `interaction`.
|
|
- **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
|
|
|
|
```bash
|
|
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.
|