mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
test(tui): synchronize tab close frame before pointer moves (#45017)
This commit is contained in:
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] ?? ""
|
||||
|
||||
Reference in New Issue
Block a user