Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

fix(test): explicitly set streaming mode in home deck tab switching test

Samir Hossainsad408d6f3d0a
diff --git a/tests/tui_acceptance.rs b/tests/tui_acceptance.rs
index 18af50f..8538fe1 100644
--- a/tests/tui_acceptance.rs
+++ b/tests/tui_acceptance.rs
@@ -924,6 +924,9 @@ async fn test_home_deck_tab_switching() {
app.state_mut().active_screen = Screen::Home;
app.state_mut().input_mode = InputMode::Normal;
app.state_mut().streaming_enabled = true;
+ app.state_mut().is_tv_mode = false;
+ app.state_mut()
+ .set_mode(moviebox_tui::tui::state::AppMode::Streaming);
app.state_mut().history.recent.clear();
app.state_mut().favorites.items.clear();