Skip to content

Commit d7a787f

Browse files
committed
fixup! feat: support custom keybinds in custom command prompt menus
1 parent eb5b0f1 commit d7a787f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/integration/tests/custom_commands/menu_prompt_with_keys.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,13 @@ var MenuPromptWithKeys = NewIntegrationTest(NewIntegrationTestArgs{
5353
IsFocused().
5454
Press("a")
5555

56-
// Verify the menu appears
5756
t.ExpectPopup().Menu().
5857
Title(Equals("Choose an option"))
5958

60-
// Press 'H' to directly select the second option via its keybinding
6159
// 'H' is normally a navigation key (ScrollLeft), so this tests that menu item
6260
// keybindings have proper precedence over non-essential navigation keys
6361
t.Views().Menu().Press("H")
6462

65-
// After pressing 'H', the menu should close and the command should execute
6663
t.FileSystem().FileContent("result.txt", Equals("SECOND\n"))
6764
},
6865
})

0 commit comments

Comments
 (0)