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.

UI suites: Show All is a list option now; delete from Week, where every event shows

Yashwanth Kamireddic4d76d787b8f
diff --git a/.uiverify/calendar-edits.mjs b/.uiverify/calendar-edits.mjs
index cd8dc41..3363304 100644
--- a/.uiverify/calendar-edits.mjs
+++ b/.uiverify/calendar-edits.mjs
@@ -78,8 +78,11 @@ await page.waitForTimeout(300);
s = await saves();
ok(s.at(-1)?.guid === "e1" && s.at(-1)?.calendarGuid === "personal", "Calendar ▸ Personal moves it");
-// Delete, from the keyboard, asks first.
-await page.locator(".cx-item", { hasText: "Dentist" }).click();
+// Delete, from the keyboard, asks first. In Week, where every event of the day is drawn: a
+// Month day shows as many lines as fit, and today has grown by the copies made above.
+await page.keyboard.press("Control+2");
+await page.waitForTimeout(300);
+await page.locator(".cx-block", { hasText: "Dentist" }).first().click();
await page.waitForTimeout(200);
await page.keyboard.press("Escape");
await page.keyboard.press("Delete");
diff --git a/.uiverify/search-everything.mjs b/.uiverify/search-everything.mjs
index 883b8d8..e62104f 100644
--- a/.uiverify/search-everything.mjs
+++ b/.uiverify/search-everything.mjs
@@ -43,25 +43,26 @@ for (const scheme of ["light", "dark"]) {
// puts it back; the keys reach every row of it.
await field.fill("marlowe");
await page.waitForTimeout(300);
- const more = panel.getByRole("button", { name: /^Show all \d+ in / }).first();
+ const more = panel.getByRole("option", { name: /^Show all \d+ in / }).first();
const label = await more.getAttribute("aria-label").catch(() => null);
if (!label) ok(false, `${scheme}: some section has more than it shows`);
else {
const [, total, name] = /Show all (\d+) in (.+)/.exec(label);
const region = panel.getByRole("group", { name });
- const short = await region.getByRole("option").count();
+ const rows = () => region.getByRole("option").filter({ hasNotText: /^Show (All|Less)$/ }).count();
+ const short = await rows();
await more.click();
await page.waitForTimeout(300);
- const all = await region.getByRole("option").count();
+ const all = await rows();
ok(short === 5 && all === Number(total), `${scheme}: Show All shows ${name} whole (${short} → ${all} of ${total})`);
ok(await field.evaluate((f) => f === document.activeElement), `${scheme}: and the field keeps the keys`);
- await region.getByRole("button", { name: "Show Less" }).click();
+ await panel.getByRole("option", { name: `Show less of ${name}` }).click();
await page.waitForTimeout(300);
- ok((await region.getByRole("option").count()) === 5, `${scheme}: Show Less puts it back`);
+ ok((await rows()) === 5, `${scheme}: Show Less puts it back`);
}
await field.fill("qqqzzz");
await page.waitForTimeout(300);
- ok(/No results for “qqqzzz”/.test(await panel.innerText()), `${scheme}: nothing found says so`);
+ ok(/No results for “qqqzzz”/.test(await page.locator("#gsearch-results").innerText()), `${scheme}: nothing found says so`);
await ctx.close();
}
await b.close();