mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-13 12:33:44 +02:00
Strengthen wait test to verify fzf stays alive after cancel
Assert that a query still filters after Ctrl-C, proving fzf keeps running and accepts input. The disappearing indicator alone would also pass if fzf exited.
This commit is contained in:
parent
206f5877c0
commit
f4f2c34916
1 changed files with 3 additions and 0 deletions
|
|
@ -1168,6 +1168,9 @@ class TestCore < TestInteractive
|
|||
tmux.until { |lines| assert lines.any_include?('20/100 (..)') }
|
||||
tmux.send_keys 'C-c'
|
||||
tmux.until { |lines| refute lines.any_include?('20/100 (..)') }
|
||||
# Ctrl-C cancels the wait; fzf keeps running and accepts input again
|
||||
tmux.send_keys '99'
|
||||
tmux.until { |lines| assert_equal 1, lines.match_count }
|
||||
end
|
||||
|
||||
def test_clear_selection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue