mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
test(tui): await dialog text selection (#46143)
Co-authored-by: kitlangton <7587245+kitlangton@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
ec0dcb3da9
commit
fcce2d7cc9
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user