mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 06:22:24 +02:00
Revert "Make testControlR more reliable by making it more lenient in how it looks for the separator"
This reverts commit 5168efb2c83dd3a1d2de2f4c56a3b2d82a2abee8.
This commit is contained in:
parent
d613c22e50
commit
61c8e26f89
@ -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
|
// And check that the control-r binding brings up the search
|
||||||
out := captureTerminalOutputWithShellName(t, tester, shellName, []string{"C-R"})
|
out := captureTerminalOutputWithShellName(t, tester, shellName, []string{"C-R"})
|
||||||
require.Contains(t, out, "\n\n", "failed to find separator")
|
require.Contains(t, out, "\n\n\n", "failed to find separator")
|
||||||
out = strings.TrimSpace(strings.Split(out, "\n\n")[1])
|
out = strings.TrimSpace(strings.Split(out, "\n\n\n")[1])
|
||||||
testutils.CompareGoldens(t, out, "testControlR-Initial")
|
testutils.CompareGoldens(t, out, "testControlR-Initial")
|
||||||
|
|
||||||
// And check that we can scroll down and select an option
|
// And check that we can scroll down and select an option
|
||||||
|
Loading…
x
Reference in New Issue
Block a user