From 68fd659f04b93e1312733549b1cbdb4510f12b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 16 Jun 2026 03:06:59 +0200 Subject: [PATCH] test(settings): align mood + medication section copy assertions with the refreshed i18n The v1.18.0 IA restructure reworded the mood + medications section descriptions; update the SSR copy assertions to the new strings (the i18n parity guards stayed green, but these per-section copy assertions pinned the old text). --- .../settings/__tests__/medications-section.test.tsx | 8 ++++++-- src/components/settings/__tests__/mood-section.test.tsx | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/settings/__tests__/medications-section.test.tsx b/src/components/settings/__tests__/medications-section.test.tsx index b66aee43f..3ff5eb734 100644 --- a/src/components/settings/__tests__/medications-section.test.tsx +++ b/src/components/settings/__tests__/medications-section.test.tsx @@ -83,7 +83,9 @@ describe(" — SSR smoke", () => { it("renders the section heading + description via i18n (no raw keys)", () => { const html = render(); expect(html).toContain("settings-section-medications-title"); - expect(html).toContain("List view and medication order."); + expect(html).toContain( + "List view, order, and injection sites for your medications.", + ); expect(html).not.toContain("settings.sections."); expect(html).not.toContain("medications.view"); expect(html).not.toContain("medications.reorder"); @@ -91,7 +93,9 @@ describe(" — SSR smoke", () => { it("renders the German copy end-to-end", () => { const html = render("de"); - expect(html).toContain("Listenansicht und Reihenfolge der Medikamente."); + expect(html).toContain( + "Listenansicht, Reihenfolge und Injektionsstellen deiner Medikamente.", + ); expect(html).toContain("Reihenfolge anpassen"); expect(html).toContain( "Wähle, ob deine Medikamente als Karten oder als Tabelle angezeigt werden.", diff --git a/src/components/settings/__tests__/mood-section.test.tsx b/src/components/settings/__tests__/mood-section.test.tsx index edfb4d47a..f933bc633 100644 --- a/src/components/settings/__tests__/mood-section.test.tsx +++ b/src/components/settings/__tests__/mood-section.test.tsx @@ -150,14 +150,14 @@ describe(" — SSR smoke", () => { it("renders the section heading + description via i18n (no raw keys)", () => { const html = render(); expect(html).toContain("settings-section-mood-title"); - expect(html).toContain("Groups, tags, and order of the mood picker."); + expect(html).toContain("Groups, tags, and archived tags for the mood picker."); expect(html).not.toContain("settings.sections."); expect(html).not.toContain("mood.manage."); }); it("renders the German copy end-to-end", () => { const html = render("de"); - expect(html).toContain("Gruppen, Tags und Reihenfolge der Tag-Auswahl."); + expect(html).toContain("Gruppen, Tags und archivierte Tags der Stimmungs-Auswahl."); expect(html).toContain("Neue Gruppe"); expect(html).toContain("Neuer Tag"); expect(html).toContain("Archivierte Tags");