diff --git a/src/components/records/__tests__/profile-summary.test.tsx b/src/components/records/__tests__/profile-summary.test.tsx new file mode 100644 index 000000000..999805e0e --- /dev/null +++ b/src/components/records/__tests__/profile-summary.test.tsx @@ -0,0 +1,30 @@ +import { describe, expect, it } from "vitest"; +import { renderToStaticMarkup } from "react-dom/server"; + +import { I18nProvider } from "@/lib/i18n/context"; +import { ProfileSummary } from "../profile-summary"; + +describe("ProfileSummary", () => { + it("renders bounded profile information without mutation controls", () => { + const html = renderToStaticMarkup( + + + , + ); + + expect(html).toContain('data-slot="profile-summary"'); + expect(html).toContain("Pollen"); + expect(html).toContain("Hypertension"); + expect(html).toContain("Smoking"); + expect(html).not.toContain("