Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
test(tui): align update modal keyboard test with input isolation
Samir Hossains5930a42a3464
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex eabbacc..ca1dcb0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -50,6 +50,7 @@- Consolidated unit assertions for file stem sanitization, MD5 hashing, atomic writing, and badge rendering directly into their respective modules (`src/download.rs`, `src/cache.rs`, `src/tui/widgets/badge.rs`).- Pruned 10 redundant, weightless, and duplicate test suites (`player_integration.rs`, `url_security.rs`, `download_integration.rs`, `m3u_integration.rs`, `cache_lifecycle.rs`, `real_acceptance.rs`, `grand_user_journey.rs`, `history_reconciliation.rs`, `version_upgrade_e2e.rs`), reducing integration test files from 20 to 9 focused suites while preserving complete regression coverage.- Hardened `.omp/AGENTS.md` and `docs/testing.md` with strict engineering rules rejecting weightless tests, duplicate test layers, and monolithic multi-phase journey tests.+ - Aligned update modal keyboard tests with modal input isolation, verifying keystrokes do not fall through to background search results while the dialog is active.### Fixed- **Responsive Text Sizing & Layout Truncation**:- Raised Details footer split threshold (`DETAILS_FOOTER_SPLIT_THRESHOLD`) to 106 columns, ensuring shortcuts use a clean 2-row layout on terminals between 80 and 105 columns without clipping.diff --git a/src/tui/app/keyboard.rs b/src/tui/app/keyboard.rsindex 3422031..5c07d5c 100644--- a/src/tui/app/keyboard.rs+++ b/src/tui/app/keyboard.rs@@ -1193,7 +1193,7 @@ mod tests {}#[tokio::test]- async fn test_update_modal_keystroke_fallthrough() {+ async fn test_update_modal_keystroke_isolation() {let mut app = App::new();app.state.active_screen = crate::tui::state::Screen::Home;app.state.input_mode = InputMode::Normal;@@ -1224,10 +1224,13 @@ mod tests {app.handle_key(KeyEvent::new(KeyCode::End, KeyModifiers::empty())).await;- assert_eq!(app.state.search_list_state.selected(), Some(1));+ assert_eq!(app.state.search_list_state.selected(), Some(0));app.handle_key(KeyEvent::new(KeyCode::Esc, KeyModifiers::empty())).await;assert!(app.state.update_available.is_none());+ app.handle_key(KeyEvent::new(KeyCode::End, KeyModifiers::empty()))+ .await;+ assert_eq!(app.state.search_list_state.selected(), Some(1));}#[tokio::test]async fn test_normal_mode_c_clears_search_and_results() {