Skip to content

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

fix(test): isolate streaming mode on landing deck tests

Samir Hossains2bcb06763b05
diff --git a/tests/tui_acceptance.rs b/tests/tui_acceptance.rs
index ed5de0c..703df72 100644
--- a/tests/tui_acceptance.rs
+++ b/tests/tui_acceptance.rs
@@ -1015,6 +1015,9 @@ async fn test_home_deck_continue_watching_resume() {
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();
@@ -1057,6 +1060,9 @@ async fn test_landing_deck_header_renders_without_star_or_bracket() {
let mut app = App::new();
app.state_mut().active_screen = Screen::Home;
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();