Make the thread right-click test independent of the date

This commit is contained in:
Callum Alpass committed 2026-11-03 00:41:48 +11:00
1 parent 000645909c
commit b70099f23f
1 file changed
+3 -2
+3 -2
View File
@@ -292,8 +292,9 @@ describe("mouse", () => {
test("right-clicking a thread opens its actions", async () => {
const app = await open();
const row = app.find("135d");
await app.click(row.x, row.y, 2);
// The list row is the "Thread" below the header; its relative age grows daily, so don't look for it.
const y = app.frame().split("\n").findIndex((line, index) => index > 0 && line.includes("Thread"));
await app.click(5, y, 2);
expect(app.hints()).toBe("↑/↓ move · enter choose · esc close");
expect(app.frame()).toContain("Mark unread");
});