commit
This commit is contained in:
1 parent
5c92c059c9
commit
9465f067fe
2 files changed
+10
-11
No files matched your search
@@ -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