commit
This commit is contained in:
@@ -39,17 +39,17 @@ async fn test_arrow_navigation_in_chat_list() {
|
||||
handle_main_input(&mut app, key(KeyCode::Down)).await;
|
||||
assert_eq!(app.chat_list_state.selected(), Some(0));
|
||||
|
||||
// Up - возвращаемся на второй
|
||||
handle_main_input(&mut app, key(KeyCode::Up)).await;
|
||||
assert_eq!(app.chat_list_state.selected(), Some(1));
|
||||
|
||||
// Up - возвращаемся на первый
|
||||
handle_main_input(&mut app, key(KeyCode::Up)).await;
|
||||
assert_eq!(app.chat_list_state.selected(), Some(0));
|
||||
|
||||
// Up - циклим в конец (циклическая навигация)
|
||||
handle_main_input(&mut app, key(KeyCode::Up)).await;
|
||||
assert_eq!(app.chat_list_state.selected(), Some(2));
|
||||
|
||||
// Up - на второй чат
|
||||
handle_main_input(&mut app, key(KeyCode::Up)).await;
|
||||
assert_eq!(app.chat_list_state.selected(), Some(1));
|
||||
|
||||
// Up - на первый чат
|
||||
handle_main_input(&mut app, key(KeyCode::Up)).await;
|
||||
assert_eq!(app.chat_list_state.selected(), Some(0));
|
||||
}
|
||||
|
||||
/// Test: Vim-style j/k навигация по списку чатов
|
||||
|
||||
Reference in New Issue
Block a user