fix: stabilize frontend e2e selectors and auth/session reliability (#373)
This commit is contained in:
@@ -15,6 +15,8 @@ const defaultForm: FormState = {
|
||||
packCount: "1",
|
||||
blistersPerPack: "1",
|
||||
pillsPerBlister: "1",
|
||||
packageAmountValue: "0",
|
||||
packageAmountUnit: "ml",
|
||||
looseTablets: "0",
|
||||
totalPills: "",
|
||||
pillWeightMg: "",
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user