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.

Suites: seven Reminders tiles; the tick key is checked after the caret is placed

Yashwanth Kamireddic0704f839293
diff --git a/.uiverify/assert.mjs b/.uiverify/assert.mjs
index 313d899..e60eb2d 100644
--- a/.uiverify/assert.mjs
+++ b/.uiverify/assert.mjs
@@ -326,8 +326,8 @@ let failures = 0;
console.log(even ? `PASS the Reminders sidebar has the same inset on both sides [${m.left.toFixed(1)} / ${m.right.toFixed(1)}]`
: `FAIL the Reminders sidebar is lopsided [left ${m.left.toFixed(1)}, right ${m.right.toFixed(1)}]`);
if (!even) failures++;
- const same = m.count === 6 && new Set(m.sizes).size === 1;
- console.log(same ? `PASS six tiles, all one size [${m.sizes[0]}]` : `FAIL tiles differ ${JSON.stringify(m.sizes)}`);
+ const same = m.count === 7 && new Set(m.sizes).size === 1;
+ console.log(same ? `PASS seven tiles (Completed among them, as on the Mac), all one size [${m.sizes[0]}]` : `FAIL tiles differ ${JSON.stringify(m.sizes)}`);
if (!same) failures++;
console.log(m.clipped.length === 0 ? "PASS no tile's text runs out of it" : `FAIL text runs out of its tile: ${JSON.stringify(m.clipped)}`);
if (m.clipped.length) failures++;
diff --git a/.uiverify/notes-search-marks.mjs b/.uiverify/notes-search-marks.mjs
index 2da4138..f78e345 100644
--- a/.uiverify/notes-search-marks.mjs
+++ b/.uiverify/notes-search-marks.mjs
@@ -54,8 +54,11 @@ ok(await until(page, () => document.querySelector(".note-rich") && !document.que
await page.locator(".note-row", { hasText: "Curtains" }).click();
await until(page, () => document.querySelector('.note-rich p[data-style="103"]'));
const ticked = () => page.evaluate(() => document.querySelector('.note-rich p[data-style="103"]')?.getAttribute("data-checked") === "true");
+// The caret put in the item's text first (at its end, clear of the tick circle), and only then
+// is its state read: a click that strayed onto the circle ticked it and read as the key failing.
+await page.locator('.note-rich p[data-style="103"]').first().click({ position: { x: 120, y: 8 } });
+await page.keyboard.press("End");
const was = await ticked();
-await page.locator('.note-rich p[data-style="103"]').click({ position: { x: 120, y: 8 } });
await page.keyboard.press("Control+Shift+u");
ok(await until(page, (w) => (document.querySelector('.note-rich p[data-style="103"]')?.getAttribute("data-checked") === "true") !== w, was),
"Shift+Ctrl+U ticks or unticks the checklist item", "the item stayed as it was");