Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(test): isolate details modal test and reset mode in journey test
Samir Hossains306f9d571b09
diff --git a/src/tui/screens/details.rs b/src/tui/screens/details.rsindex d05d3db..b8a2b3e 100644--- a/src/tui/screens/details.rs+++ b/src/tui/screens/details.rs@@ -3088,6 +3088,7 @@ mod tests {}],details_pane: crate::tui::state::DetailsPane::Streams,show_episode_download_confirm: true,+ basic_terminal: false,..Default::default()};state.language_list_state.select(Some(0));@@ -3121,8 +3122,8 @@ mod tests {{assert_eq!(cell.style().fg,- theme.muted.fg,- "Multi badge foreground should be muted"+ theme.overlay1.fg,+ "Multi badge foreground should be overlay1");}if cell.symbol() == "H" && x + 4 < 120 && buffer[(x + 1, y)].symbol() == "i" {diff --git a/tests/tui_acceptance.rs b/tests/tui_acceptance.rsindex 94d4c86..18af50f 100644--- a/tests/tui_acceptance.rs+++ b/tests/tui_acceptance.rs@@ -377,10 +377,10 @@ async fn test_full_user_journey_mode_switching_and_theme_selection() {app.handle_action(Action::SwitchToStreamingMode).await;assert!(!app.state().is_tv_mode);-app.handle_action(Action::SelectTheme("TokyoNight".to_string())).await;assert_eq!(app.state().active_theme_kind, "TokyoNight");+ app.handle_action(Action::SwitchToStreamingMode).await;}#[tokio::test]