Add extra delay before ENTER for searching to ensure that the async query finishes

This commit is contained in:
David Dworken 2023-09-01 21:57:25 -07:00
parent 96d14d3b9f
commit 58c791b662
No known key found for this signature in database

View File

@ -1843,7 +1843,7 @@ func testTui_search(t testing.TB) {
// Check the output when there is a selected result
out = captureTerminalOutput(t, tester, []string{
"hishtory SPACE tquery ENTER",
"ls", "ENTER",
"ls", "", "ENTER",
})
out = strings.Split(strings.TrimSpace(strings.Split(out, "hishtory tquery")[1]), "\n")[0]
expected := `ls ~/`