Compare commits

...
Author SHA1 Message Date
kitlangton d1230689e9 test(tui): await preview tab promotion 2026-09-05 13:06:41 +00:00
kitlangton 595d7ca1f7 test(tui): await consecutive tab closes 2026-09-03 13:07:10 +00:00
@@ -186,10 +186,12 @@ test("double-clicking a preview tab keeps it open without promoting permanent ta
expect(promoted).toEqual([])
await app.mockMouse.click(40, 0)
await app.waitFor(() => active() === "second")
expect(active()).toBe("second")
expect(promoted).toEqual([])
await app.mockMouse.click(40, 0)
await app.waitFor(() => promoted.length === 1)
expect(promoted).toEqual(["second"])
} finally {
app.renderer.destroy()
@@ -280,6 +282,7 @@ test("keeps consecutive close controls fixed across overflow window changes", as
await app.mockMouse.click(11, 0)
await app.waitForFrame((frame) => items().length === 4 && Array.from(frame.split("\n")[0] ?? "")[11] === "✕")
await app.mockMouse.click(11, 0)
await app.waitFor(() => closed.length === 2)
expect(closed).toEqual(["third", "fourth"])
} finally {