Make the thread right-click test independent of the date
This commit is contained in:
1 parent
000645909c
commit
b70099f23f
1 file changed
+3
-2
@@ -292,8 +292,9 @@ describe("mouse", () => {
|
|||||||
|
|
||||||
test("right-clicking a thread opens its actions", async () => {
|
test("right-clicking a thread opens its actions", async () => {
|
||||||
const app = await open();
|
const app = await open();
|
||||||
const row = app.find("135d");
|
// The list row is the "Thread" below the header; its relative age grows daily, so don't look for it.
|
||||||
await app.click(row.x, row.y, 2);
|
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.hints()).toBe("↑/↓ move · enter choose · esc close");
|
||||||
expect(app.frame()).toContain("Mark unread");
|
expect(app.frame()).toContain("Mark unread");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user