Skip to content

Commit f52a6e2

Browse files
committed
test(scheduler): expect generic zones for paused tasks
1 parent 7b7ea39 commit f52a6e2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/web/src/components/chat/ThreadAutomationsPanel.permissions.browser.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ it("labels fixed times with a short server zone and preserves labels from older
122122

123123
state.listResult = { tasks, timeZone: "America/Los_Angeles" };
124124
await renderPanel();
125-
expect(labels()[0]).toMatch(/^Daily at 09:00 (P[DS]T|GMT-)/);
125+
expect(labels()[0]).toMatch(/^Daily at 09:00 (PT|Los Angeles Time)$/);
126126
expect(labels()[0]).not.toContain("America/");
127127
expect(labels().slice(1)).toEqual(["Every 1 min", "On webhook"]);
128128

‎apps/web/src/components/settings/scheduledTasksSettings.logic.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ describe("schedule timezone labels", () => {
395395
expect(scheduleTimeZoneLabel("America/Los_Angeles", "2027-01-15T17:00:00Z")).toBe("PST");
396396
expect(scheduleTimeZoneLabel("America/Los_Angeles", "2027-07-15T16:00:00Z")).toBe("PDT");
397397
const kolkata = scheduleTimeZoneLabel("Asia/Kolkata");
398-
expect(kolkata === "IST" || kolkata?.startsWith("GMT+") === true).toBe(true);
398+
expect(
399+
kolkata === "IST" || kolkata === "India Time" || kolkata?.startsWith("GMT+") === true,
400+
).toBe(true);
399401
expect(kolkata).not.toContain("Asia/");
400402
});
401403

0 commit comments

Comments
 (0)