Skip to content

Commit

Permalink
test: update command-line test to account for q keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Sep 30, 2024
1 parent 14f28fd commit 8cdc745
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions tests/kitty-scrollback/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,15 @@ M.control_v = function()
}
end

M.control_f = function()
return {
[[\x06]],
opts = {
send_by = 'string',
},
}
end

M.esc = function()
return {
[[\x1b]],
Expand Down
6 changes: 4 additions & 2 deletions tests/kitty-scrollback/kitty_scrollback_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,10 @@ $🭽▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
h.assert_screen_equals(
h.feed_kitty({
h.open_kitty_scrollback_nvim(),
h.with_pause_seconds_before(h.send_without_newline([[q:i]])),
h.send_without_newline([[# in command-line window]]),
h.with_pause_seconds_before(h.send_without_newline([[:]])),
h.with_pause_seconds_before(h.control_f()),
h.send_without_newline([[i]]),
h.with_pause_seconds_before(h.send_without_newline([[# in command-line window]])),
h.send_without_newline(h.esc()),
h.send_without_newline([[V]]),
h.shift_enter(),
Expand Down

0 comments on commit 8cdc745

Please sign in to comment.