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).
This commit is contained in:
Marc-André Bombeck committed 2026-06-16 03:06:59 +02:00
1 parent 84033e9a46
commit 68fd659f04
2 files changed
+8 -4

No files matched your search

@@ -83,7 +83,9 @@ describe("<MedicationsSection> — 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("<MedicationsSection> — 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.",
@@ -150,14 +150,14 @@ describe("<MoodSection> — 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");