mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Closes the deferred component-level test gap from phase W4d (`.planning/phase-W4d-v1425-glp1-full-report.md` section 5). Renders the Glp1MedicationCard via renderToStaticMarkup with a seeded QueryClientProvider so the useQuery calls resolve synchronously, then asserts on the produced SSR string. Coverage (13 tests): - GLP-1 variant renders when treatmentClass === "GLP1" - Default MedicationCard back-compat when treatmentClass is null - Drug name + dose joined with the middle-dot separator - Last + next injection lines with localised prefixes - Dose-history <details> disclosure (closed by default) - Injection-site rotation hint (last + recommended) - Pen-inventory line + low-stock badge - Side-effect quick-log button hands off the medication object - AI-disabled state pin (no Coach hand-off button today) - Inactive paused-since state - German locale parity with Umlaute round-trip No production code changes.