Add Immediate Family section to person details in side panel

This commit is contained in:
Przemek Więch
2026-05-12 00:33:42 +02:00
parent e86d13a00e
commit 708d26d561
19 changed files with 492 additions and 34 deletions

View File

@@ -106,6 +106,10 @@ This section defines the granular, step-by-step implementation steps and enumera
* Mock `**/family.ged` containing complex nested fact (`FACT`), source (`SOUR`), and note (`NOTE`) trees.
* Select the individual and wait for `#sidebar` to load.
* Assert sidebar visual representation: `expect(page.locator('#sidebar')).toHaveScreenshot('details-events-sources.png')`.
* **Immediate Family Rendering Test:**
* Mock `**/family.ged` containing an individual with explicit parental links (`FAMC`) and multi-partner spousal families (`FAMS`) to display biological parents, spouses, and chronologically sorted children blocks.
* Select the individual and wait for `#sidebar` to load.
* Assert sidebar visual representation: `expect(page.locator('#sidebar')).toHaveScreenshot('details-immediate-family.png')`.
#### Step 5: Configurations Integration Spec (`tests/config_visual.spec.ts`)
1. Define a test block tagged `@visual` with a locked browser window viewport size of `1280x720` via `playwright.config.ts`.