test(tui): await dialog text selection (#46143)

Co-authored-by: kitlangton <7587245+kitlangton@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-08-31 13:44:00 -04:00 committed by GitHub
parent ec0dcb3da9
commit fcce2d7cc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,7 +192,7 @@ test("ctrl+c clears a dialog text selection before closing the dialog", async ()
const column = frame[row]!.indexOf("Alpha") + 1
await select.app.mockMouse.click(column, row)
await select.app.mockMouse.click(column, row)
expect(select.app.renderer.getSelection()?.getSelectedText()).toBe("Alpha")
await select.app.waitFor(() => select.app.renderer.getSelection()?.getSelectedText() === "Alpha")
select.app.mockInput.pressKey("c", { ctrl: true })
await select.app.waitFor(() => !select.app.renderer.getSelection())