From 6831dc2a15e57e541d6586a2d279788849eea572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 9 Jul 2026 00:03:25 +0200 Subject: [PATCH] test(offline-banner): update copy assertions to the honest offline message --- src/components/layout/__tests__/offline-banner.test.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/layout/__tests__/offline-banner.test.tsx b/src/components/layout/__tests__/offline-banner.test.tsx index af43498ce..ae5c58a49 100644 --- a/src/components/layout/__tests__/offline-banner.test.tsx +++ b/src/components/layout/__tests__/offline-banner.test.tsx @@ -49,16 +49,19 @@ describe("", () => { }); it("ships the EN copy for `offlineBanner.message`", () => { + // F-OFF-1 — the copy must not over-promise auto-save: offline mutations now + // fail fast (networkMode "always") rather than queue, so the banner states + // the honest thing. const en = loadMessages("en"); expect(en.offlineBanner.message).toBe( - "No connection — your changes will save once you're back online.", + "No connection — changes can't be saved until you're back online.", ); }); it("ships the DE copy for `offlineBanner.message`", () => { const de = loadMessages("de"); expect(de.offlineBanner.message).toBe( - "Keine Verbindung — Änderungen werden gespeichert, sobald du wieder online bist.", + "Keine Verbindung — Änderungen können erst gespeichert werden, wenn du wieder online bist.", ); });