mirror of
https://github.com/ddworken/hishtory.git
synced 2025-07-13 19:08:21 +02:00
Another set of extra delays for testTui/search, similar to 37c06a31db
This commit is contained in:
@ -1932,9 +1932,9 @@ func testTui_search(t testing.TB) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check the output when the initial search is invalid
|
// Check the output when the initial search is invalid
|
||||||
out = captureTerminalOutput(t, tester, []string{
|
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
|
||||||
"hishtory SPACE tquery SPACE foo: ENTER",
|
{Keys: "hishtory SPACE tquery SPACE foo: ENTER", ExtraDelay: 1.0},
|
||||||
"ls",
|
{Keys: "ls", ExtraDelay: 1.0},
|
||||||
})
|
})
|
||||||
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
||||||
testutils.CompareGoldens(t, out, "TestTui-InitialInvalidSearch")
|
testutils.CompareGoldens(t, out, "TestTui-InitialInvalidSearch")
|
||||||
|
Reference in New Issue
Block a user