/** * Markup-leak guard for `` rendering in notification bodies. * * These tests are the airtight contract for issue #2279 (Bug A) — they assert: * - well-formed tags become pills (no raw `` text leaks), * - attacker-influenceable `path` values can't become a navigable * `javascript:` link, and * - non-link bodies and stray markup render as literal, auto-escaped text * (no `'; const { container } = renderCard(body); // React auto-escapes anything that's not an `` segment. const bodyEl = screen.getByTestId('notification-card-body'); expect(bodyEl.textContent).toBe(''); // Hard guarantee: no actual