Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

calendar-allday-reminders: read the card's date however the engine punctuates it

Yashwanth Kamireddi460071b1277b
diff --git a/.uiverify/calendar-allday-reminders.mjs b/.uiverify/calendar-allday-reminders.mjs
index 1a475e1..5223cd7 100644
--- a/.uiverify/calendar-allday-reminders.mjs
+++ b/.uiverify/calendar-allday-reminders.mjs
@@ -41,8 +41,9 @@ async function open(timezoneId, due) {
const card = page.locator(".cx-popover.is-reminder");
await card.waitFor({ timeout: 2000 }).catch(() => {});
const text = (await card.count()) ? await card.innerText() : "";
- const wanted = `${day.toLocaleDateString("en-GB", { weekday: "long" })}, ${day.toLocaleDateString("en-GB", { day: "numeric", month: "long" })}`;
- ok(text.includes(wanted), `its card names its day, ${wanted} ${JSON.stringify(text.split("\n").slice(0, 3))}`);
+ // Its weekday and date, however the engine punctuates them.
+ const wanted = `${day.toLocaleDateString("en-GB", { weekday: "long" })} ${day.toLocaleDateString("en-GB", { day: "numeric", month: "long" })}`;
+ ok(text.replace(/,/g, "").includes(wanted), `its card names its day, ${wanted} ${JSON.stringify(text.split("\n").slice(0, 3))}`);
await page.keyboard.press("Escape");
// The day's list, in Day.
await page.keyboard.press("Control+1");