Files
telegram-tui/tests
Mikhail Kilin dd4981d216 test: add comprehensive input navigation tests
Added 13 integration tests for keyboard navigation:

Arrow Keys Navigation:
- test_arrow_navigation_in_chat_list: Up/Down arrows, circular wrapping
- test_vim_navigation_in_chat_list: j/k vim-style navigation
- test_russian_keyboard_navigation: Russian layout (о/р) support
- test_enter_opens_chat: Enter to open selected chat
- test_esc_closes_chat: Esc to close open chat

Cursor Navigation in Input:
- test_cursor_navigation_in_input: Left/Right arrow keys
- test_home_end_in_input: Home/End keys
- test_backspace_with_cursor: Backspace at different positions
- test_insert_char_at_cursor_position: Insert char in middle

Message Navigation:
- test_up_arrow_selects_last_message_when_input_empty: Up arrow for message selection

Additional:
- test_circular_navigation_optional: Circular list navigation

These tests verify that the navigation functionality works correctly
through the main_input handler, protecting against future refactoring
that might break keyboard input.

All tests compile and verify actual input handling via handle_main_input().

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-02 00:39:47 +03:00
..
2026-01-31 23:02:53 +03:00
2026-01-31 23:02:53 +03:00
2026-01-31 23:02:53 +03:00
2026-01-31 23:02:53 +03:00
2026-01-30 15:07:13 +03:00
2026-01-30 17:26:21 +03:00
2026-01-31 03:48:50 +03:00
2026-01-30 23:55:01 +03:00
2026-01-31 23:02:53 +03:00
2026-01-31 23:02:53 +03:00
2026-01-31 23:02:53 +03:00
2026-01-31 23:02:53 +03:00
2026-01-30 23:55:01 +03:00
2026-01-31 23:02:53 +03:00
2026-01-31 23:02:53 +03:00