Skip to content

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

fix(test): explicitly isolate streaming mode in history item tests

Samir Hossains44eb6817933f
diff --git a/tests/tui_acceptance.rs b/tests/tui_acceptance.rs
index 703df72..dc2a5b4 100644
--- a/tests/tui_acceptance.rs
+++ b/tests/tui_acceptance.rs
@@ -727,6 +727,9 @@ async fn test_ctrl_u_and_clear_command_clears_results_cleanly() {
#[tokio::test]
async fn test_history_item_space_and_p_key_direct_resume() {
let mut app = App::new();
+ app.state_mut().is_tv_mode = false;
+ app.state_mut()
+ .set_mode(moviebox_tui::tui::state::AppMode::Streaming);
app.state_mut().active_screen = Screen::Home;
app.state_mut().input_mode = InputMode::Normal;
app.state_mut().search_query.set_content("/history");
@@ -757,6 +760,9 @@ async fn test_history_item_space_and_p_key_direct_resume() {
#[tokio::test]
async fn test_history_item_enter_pre_seeds_season_and_episode() {
let mut app = App::new();
+ app.state_mut().is_tv_mode = false;
+ app.state_mut()
+ .set_mode(moviebox_tui::tui::state::AppMode::Streaming);
app.state_mut().active_screen = Screen::Home;
app.state_mut().input_mode = InputMode::Normal;
app.state_mut().search_query.set_content("/history");