diff options
Diffstat (limited to 'test/test_go.rb')
-rwxr-xr-x | test/test_go.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 12e53471..30d5e7b2 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -3020,6 +3020,13 @@ class TestGoFZF < TestBase tmux.send_keys :x tmux.until { |lines| assert(lines.any? { |line| line.include?('[x-foo]') }) } end + + def test_preview_window_hidden_on_focus + tmux.send_keys "seq 3 | #{FZF} --preview 'echo {}' --bind focus:hide-preview", :Enter + tmux.until { |lines| assert_includes lines, '> 1' } + tmux.send_keys :Up + tmux.until { |lines| assert_includes lines, '> 2' } + end end module TestShell |