mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-05 08:34:30 +00:00
test(tui): await dialog text selection (#46143)
Co-authored-by: kitlangton <7587245+kitlangton@users.noreply.github.com>
This commit is contained in:
parent
ec0dcb3da9
commit
fcce2d7cc9
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue