Another set of extra delays for testTui/search, similar to 37c06a31db

This commit is contained in:
David Dworken 2023-09-08 10:09:01 -07:00
parent cc10689d09
commit 3a8243d25d
No known key found for this signature in database

View File

@ -1932,9 +1932,9 @@ func testTui_search(t testing.TB) {
}
// Check the output when the initial search is invalid
out = captureTerminalOutput(t, tester, []string{
"hishtory SPACE tquery SPACE foo: ENTER",
"ls",
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
{Keys: "hishtory SPACE tquery SPACE foo: ENTER", ExtraDelay: 1.0},
{Keys: "ls", ExtraDelay: 1.0},
})
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
testutils.CompareGoldens(t, out, "TestTui-InitialInvalidSearch")