fix: stabilize frontend e2e selectors and auth/session reliability (#373)

This commit is contained in:
Daniel Volz
2026-03-02 23:21:57 +01:00
committed by GitHub
parent 1a348c62f5
commit 56d244aa61
19 changed files with 485 additions and 43 deletions
+3 -3
View File
@@ -1286,9 +1286,9 @@ describe("getNextReminderForMed", () => {
vi.useRealTimers();
});
const mockT = (key: string, options?: Record<string, number>) => {
if (options?.count) return `${key} (${options.count})`;
if (options?.days) return `${key} (${options.days})`;
const mockT = (key: string, options?: Record<string, unknown>) => {
if (typeof options?.count === "number") return `${key} (${options.count})`;
if (typeof options?.days === "number") return `${key} (${options.days})`;
return key;
};