Add ctrl-k command palette regression tests
This commit is contained in:
parent
2d2d8da1c7
commit
1dab226bcc
3 changed files with 82 additions and 17 deletions
|
|
@ -3,8 +3,8 @@
|
|||
Regression test: command palette list navigation keys.
|
||||
|
||||
Validates:
|
||||
- Down: ArrowDown, Ctrl+N, Ctrl+J
|
||||
- Up: ArrowUp, Ctrl+P, Ctrl+K
|
||||
- Down: ArrowDown, Ctrl+N
|
||||
- Up: ArrowUp, Ctrl+P
|
||||
"""
|
||||
|
||||
import os
|
||||
|
|
@ -125,10 +125,10 @@ def main() -> int:
|
|||
message="no focused surface available for command palette context",
|
||||
)
|
||||
|
||||
for combo in ("down", "ctrl+n", "ctrl+j"):
|
||||
for combo in ("down", "ctrl+n"):
|
||||
_assert_move(client, window_id, combo, start_index=0, expected_index=1)
|
||||
|
||||
for combo in ("up", "ctrl+p", "ctrl+k"):
|
||||
for combo in ("up", "ctrl+p"):
|
||||
_assert_move(client, window_id, combo, start_index=1, expected_index=0)
|
||||
|
||||
_assert_can_navigate_past_ten_results(client, window_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue