test(tui): synchronize tab close frame before pointer moves (#45017)

This commit is contained in:
Kit Langton
2026-08-25 12:30:20 -04:00
committed by GitHub
Unverified
parent c46b76b58e
commit 938a82226a
@@ -197,7 +197,9 @@ test("reflows held tabs when the pointer leaves the strip", async () => {
await app.mockMouse.moveTo(22, 0)
await app.waitForFrame((frame) => Array.from(frame.split("\n")[0] ?? "")[22] === "✕")
await app.mockMouse.click(22, 0)
await app.waitForFrame((frame) => items().length === 3 && Array.from(frame.split("\n")[0] ?? "")[22] === "✕")
await app.waitForFrame(
(frame) => !frame.includes("First") && items().length === 3 && Array.from(frame.split("\n")[0] ?? "")[22] === "✕",
)
await app.renderOnce()
const held = app.captureCharFrame().split("\n")[0] ?? ""