mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-23 06:38:52 +01:00
Make testControlR more reliable in cases where control-R doesn't include padding
This commit is contained in:
parent
a711ed0767
commit
ce9602d0df
@ -1840,8 +1840,8 @@ func testControlR(t testing.TB, tester shellTester, shellName string, onlineStat
|
||||
|
||||
// And check that the control-r binding brings up the search
|
||||
out := captureTerminalOutputWithShellName(t, tester, shellName, []string{"C-R"})
|
||||
require.Contains(t, out, "\n\n\n", "failed to find separator")
|
||||
out = strings.TrimSpace(strings.Split(out, "\n\n\n")[1])
|
||||
split := strings.Split(out, "\n\n\n")
|
||||
out = strings.TrimSpace(split[len(split)-1])
|
||||
testutils.CompareGoldens(t, out, "testControlR-Initial")
|
||||
|
||||
// And check that we can scroll down and select an option
|
||||
|
Loading…
Reference in New Issue
Block a user