diff --git a/codecov.yml b/codecov.yml index 960aad7..2076d3b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -12,4 +12,3 @@ coverage: ignore: - "**/*_tests.rs" - - "src/ui" diff --git a/src/app/mod.rs b/src/app/mod.rs index 5a04ac4..efb05b8 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -19,23 +19,6 @@ use crate::models::servarr_models::KeybindingItem; use crate::models::stateful_table::StatefulTable; use crate::models::{HorizontallyScrollableText, Route, TabRoute, TabState}; use crate::network::NetworkEvent; -#[cfg(test)] -use { - crate::models::ScrollableText, - crate::models::radarr_models, - crate::models::radarr_models::MinimumAvailability, - crate::models::radarr_models::MovieMonitor, - crate::models::servarr_data::modals::EditIndexerModal, - crate::models::servarr_data::radarr::modals::AddMovieModal, - crate::models::servarr_data::radarr::modals::{ - EditCollectionModal, EditMovieModal, MovieDetailsModal, - }, - crate::models::stateful_table::SortOption, - crate::network::radarr_network::radarr_network_test_utils::test_utils::*, - chrono::DateTime, - std::fmt::Debug, - strum::IntoEnumIterator, -}; #[cfg(test)] mod app_tests; @@ -45,16 +28,6 @@ mod key_binding_tests; pub mod radarr; pub mod sonarr; -#[cfg(test)] -macro_rules! sort_option { - ($field:ident) => { - SortOption { - name: "Something", - cmp_fn: Some(|a, b| a.$field.cmp(&b.$field)), - } - }; -} - pub struct App<'a> { navigation_stack: Vec, network_tx: Option>, @@ -287,157 +260,10 @@ impl App<'_> { } pub fn test_default_fully_populated() -> Self { - let quality_profile_name = "HD - 1080p".to_owned(); - let mut add_movie_modal = AddMovieModal { - tags: "alex".into(), - ..AddMovieModal::default() - }; - add_movie_modal - .root_folder_list - .set_items(vec![root_folder()]); - add_movie_modal - .monitor_list - .set_items(MovieMonitor::iter().collect()); - add_movie_modal - .minimum_availability_list - .set_items(MinimumAvailability::iter().collect()); - add_movie_modal - .quality_profile_list - .set_items(vec![quality_profile_name.clone()]); - - let mut add_movie_search_result_table = StatefulTable::default(); - add_movie_search_result_table.set_items(vec![add_movie_search_result()]); - add_movie_search_result_table.sorting(vec![sort_option!(tmdb_id)]); - add_movie_search_result_table.search = Some("something".into()); - add_movie_search_result_table.filter = Some("something".into()); - - let mut edit_movie_modal = EditMovieModal { - monitored: Some(true), - path: "/nfs/movies".into(), - tags: "alex".into(), - ..EditMovieModal::default() - }; - edit_movie_modal - .minimum_availability_list - .set_items(MinimumAvailability::iter().collect()); - edit_movie_modal - .quality_profile_list - .set_items(vec![quality_profile_name.clone()]); - - let mut edit_collection_modal = EditCollectionModal { - monitored: Some(true), - path: "/nfs/movies".into(), - search_on_add: Some(true), - ..EditCollectionModal::default() - }; - edit_collection_modal - .minimum_availability_list - .set_items(MinimumAvailability::iter().collect()); - edit_collection_modal - .quality_profile_list - .set_items(vec![quality_profile_name.clone()]); - - let edit_indexer_modal = EditIndexerModal { - name: "DrunkenSlug".into(), - enable_rss: Some(true), - enable_automatic_search: Some(true), - enable_interactive_search: Some(true), - url: "http://127.0.0.1:9696/1/".into(), - api_key: "someApiKey".into(), - seed_ratio: "ratio".into(), - tags: "25".into(), - priority: 1, - }; - - let indexer_settings = radarr_models::IndexerSettings { - allow_hardcoded_subs: true, - availability_delay: 0, - id: 1, - maximum_size: 1234, - minimum_age: 12, - prefer_indexer_flags: true, - retention: 30, - rss_sync_interval: 60, - whitelisted_hardcoded_subs: "eng".into(), - }; - - let mut indexer_test_results = StatefulTable::default(); - indexer_test_results.set_items(vec![indexer_test_result()]); - indexer_test_results.sorting(vec![sort_option!(name)]); - indexer_test_results.search = Some("something".into()); - indexer_test_results.filter = Some("something".into()); - - let mut movie_details_modal = MovieDetailsModal { - movie_details: ScrollableText::with_string("Some information".to_owned()), - file_details: "Some file info".to_owned(), - audio_details: "Some audio info".to_owned(), - video_details: "Some video info".to_owned(), - ..MovieDetailsModal::default() - }; - movie_details_modal - .movie_history - .set_items(vec![movie_history_item()]); - movie_details_modal - .movie_cast - .set_items(vec![cast_credit()]); - movie_details_modal - .movie_crew - .set_items(vec![crew_credit()]); - movie_details_modal - .movie_releases - .set_items(vec![torrent_release(), usenet_release()]); - movie_details_modal - .movie_releases - .sorting(vec![sort_option!(indexer_id)]); - - let mut radarr_data = RadarrData { - disk_space_vec: vec![diskspace()], - version: "1.2.3.4".to_owned(), - quality_profile_map: quality_profile_map(), - tags_map: tags_map(), - updates: updates(), - start_time: DateTime::from(DateTime::parse_from_rfc3339("2023-05-20T21:29:16Z").unwrap()), - add_movie_search: Some("test".into()), - add_movie_modal: Some(add_movie_modal), - add_searched_movies: Some(add_movie_search_result_table), - edit_movie_modal: Some(edit_movie_modal), - edit_collection_modal: Some(edit_collection_modal), - edit_indexer_modal: Some(edit_indexer_modal), - edit_root_folder: Some("/nfs/movies".into()), - indexer_settings: Some(indexer_settings), - indexer_test_errors: Some("error".into()), - indexer_test_all_results: Some(indexer_test_results), - movie_details_modal: Some(movie_details_modal), - delete_movie_files: true, - ..RadarrData::default() - }; - radarr_data.root_folders.set_items(vec![root_folder()]); - radarr_data.movies.set_items(vec![movie()]); - radarr_data.movies.sorting(vec![sort_option!(id)]); - radarr_data.movies.search = Some("Something".into()); - radarr_data.movies.filter = Some("Something".into()); - radarr_data.collections.set_items(vec![collection()]); - radarr_data.collections.sorting(vec![sort_option!(id)]); - radarr_data.collections.search = Some("Something".into()); - radarr_data.collections.filter = Some("Something".into()); - radarr_data - .collection_movies - .set_items(vec![collection_movie()]); - radarr_data.downloads.set_items(vec![download_record()]); - radarr_data.blocklist.set_items(vec![blocklist_item()]); - radarr_data.blocklist.sorting(vec![sort_option!(id)]); - radarr_data.indexers.set_items(vec![indexer()]); - radarr_data.indexers.sorting(vec![sort_option!(id)]); - radarr_data.indexers.search = Some("Something".into()); - radarr_data.indexers.filter = Some("Something".into()); - radarr_data.logs.set_items(vec![log_line().into()]); - radarr_data.log_details.set_items(vec![log_line().into()]); - radarr_data.tasks.set_items(vec![task()]); - radarr_data.queued_events.set_items(vec![queued_event()]); App { data: Data { - radarr_data, - sonarr_data: SonarrData::default(), + radarr_data: RadarrData::test_default_fully_populated(), + sonarr_data: SonarrData::test_default_fully_populated(), }, server_tabs: TabState::new(vec![ TabRoute { diff --git a/src/models/servarr_data/data_test_utils.rs b/src/models/servarr_data/data_test_utils.rs new file mode 100644 index 0000000..429ff7f --- /dev/null +++ b/src/models/servarr_data/data_test_utils.rs @@ -0,0 +1,9 @@ +#[macro_export] +macro_rules! sort_option { + ($field:ident) => { + SortOption { + name: "Something", + cmp_fn: Some(|a, b| a.$field.cmp(&b.$field)), + } + }; +} diff --git a/src/models/servarr_data/mod.rs b/src/models/servarr_data/mod.rs index dcffb96..1545315 100644 --- a/src/models/servarr_data/mod.rs +++ b/src/models/servarr_data/mod.rs @@ -5,7 +5,8 @@ pub mod radarr; pub mod sonarr; #[cfg(test)] -#[path = "servarr_data_tests.rs"] +pub(in crate::models::servarr_data) mod data_test_utils; +#[cfg(test)] mod servarr_data_tests; #[derive(Clone, Copy, PartialEq, Eq, Debug, Default)] diff --git a/src/models/servarr_data/radarr/radarr_data.rs b/src/models/servarr_data/radarr/radarr_data.rs index f5d81f7..1d2d351 100644 --- a/src/models/servarr_data/radarr/radarr_data.rs +++ b/src/models/servarr_data/radarr/radarr_data.rs @@ -26,7 +26,22 @@ use chrono::{DateTime, Utc}; use serde_json::Number; use strum::EnumIter; #[cfg(test)] -use strum_macros::{Display, EnumString}; +use { + crate::models::radarr_models::{MinimumAvailability, MovieMonitor}, + crate::models::stateful_table::SortOption, + crate::network::radarr_network::radarr_network_test_utils::test_utils::root_folder, + crate::network::radarr_network::radarr_network_test_utils::test_utils::{ + add_movie_search_result, blocklist_item, cast_credit, collection, collection_movie, + crew_credit, download_record, indexer, log_line, movie, movie_history_item, + quality_profile_map, tags_map, task, torrent_release, updates, usenet_release, + }, + crate::network::servarr_test_utils::diskspace, + crate::network::servarr_test_utils::indexer_test_result, + crate::network::servarr_test_utils::queued_event, + crate::sort_option, + strum::IntoEnumIterator, + strum_macros::{Display, EnumString}, +}; #[cfg(test)] #[path = "radarr_data_tests.rs"] @@ -225,6 +240,161 @@ impl<'a> Default for RadarrData<'a> { } } +#[cfg(test)] +impl RadarrData<'_> { + pub fn test_default_fully_populated() -> Self { + let quality_profile_name = "HD - 1080p".to_owned(); + let mut add_movie_modal = AddMovieModal { + tags: "alex".into(), + ..AddMovieModal::default() + }; + add_movie_modal + .root_folder_list + .set_items(vec![root_folder()]); + add_movie_modal + .monitor_list + .set_items(MovieMonitor::iter().collect()); + add_movie_modal + .minimum_availability_list + .set_items(MinimumAvailability::iter().collect()); + add_movie_modal + .quality_profile_list + .set_items(vec![quality_profile_name.clone()]); + + let mut add_movie_search_result_table = StatefulTable::default(); + add_movie_search_result_table.set_items(vec![add_movie_search_result()]); + add_movie_search_result_table.sorting(vec![sort_option!(tmdb_id)]); + add_movie_search_result_table.search = Some("something".into()); + add_movie_search_result_table.filter = Some("something".into()); + + let mut edit_movie_modal = EditMovieModal { + monitored: Some(true), + path: "/nfs/movies".into(), + tags: "alex".into(), + ..EditMovieModal::default() + }; + edit_movie_modal + .minimum_availability_list + .set_items(MinimumAvailability::iter().collect()); + edit_movie_modal + .quality_profile_list + .set_items(vec![quality_profile_name.clone()]); + + let mut edit_collection_modal = EditCollectionModal { + monitored: Some(true), + path: "/nfs/movies".into(), + search_on_add: Some(true), + ..EditCollectionModal::default() + }; + edit_collection_modal + .minimum_availability_list + .set_items(MinimumAvailability::iter().collect()); + edit_collection_modal + .quality_profile_list + .set_items(vec![quality_profile_name.clone()]); + + let edit_indexer_modal = EditIndexerModal { + name: "DrunkenSlug".into(), + enable_rss: Some(true), + enable_automatic_search: Some(true), + enable_interactive_search: Some(true), + url: "http://127.0.0.1:9696/1/".into(), + api_key: "someApiKey".into(), + seed_ratio: "ratio".into(), + tags: "25".into(), + priority: 1, + }; + + let indexer_settings = IndexerSettings { + allow_hardcoded_subs: true, + availability_delay: 0, + id: 1, + maximum_size: 1234, + minimum_age: 12, + prefer_indexer_flags: true, + retention: 30, + rss_sync_interval: 60, + whitelisted_hardcoded_subs: "eng".into(), + }; + + let mut indexer_test_results = StatefulTable::default(); + indexer_test_results.set_items(vec![indexer_test_result()]); + indexer_test_results.sorting(vec![sort_option!(name)]); + indexer_test_results.search = Some("something".into()); + indexer_test_results.filter = Some("something".into()); + + let mut movie_details_modal = MovieDetailsModal { + movie_details: ScrollableText::with_string("Some information".to_owned()), + file_details: "Some file info".to_owned(), + audio_details: "Some audio info".to_owned(), + video_details: "Some video info".to_owned(), + ..MovieDetailsModal::default() + }; + movie_details_modal + .movie_history + .set_items(vec![movie_history_item()]); + movie_details_modal + .movie_cast + .set_items(vec![cast_credit()]); + movie_details_modal + .movie_crew + .set_items(vec![crew_credit()]); + movie_details_modal + .movie_releases + .set_items(vec![torrent_release(), usenet_release()]); + movie_details_modal + .movie_releases + .sorting(vec![sort_option!(indexer_id)]); + + let mut radarr_data = RadarrData { + disk_space_vec: vec![diskspace()], + version: "1.2.3.4".to_owned(), + quality_profile_map: quality_profile_map(), + tags_map: tags_map(), + updates: updates(), + start_time: DateTime::from(DateTime::parse_from_rfc3339("2023-05-20T21:29:16Z").unwrap()), + add_movie_search: Some("test".into()), + add_movie_modal: Some(add_movie_modal), + add_searched_movies: Some(add_movie_search_result_table), + edit_movie_modal: Some(edit_movie_modal), + edit_collection_modal: Some(edit_collection_modal), + edit_indexer_modal: Some(edit_indexer_modal), + edit_root_folder: Some("/nfs/movies".into()), + indexer_settings: Some(indexer_settings), + indexer_test_errors: Some("error".into()), + indexer_test_all_results: Some(indexer_test_results), + movie_details_modal: Some(movie_details_modal), + delete_movie_files: true, + ..RadarrData::default() + }; + radarr_data.root_folders.set_items(vec![root_folder()]); + radarr_data.movies.set_items(vec![movie()]); + radarr_data.movies.sorting(vec![sort_option!(id)]); + radarr_data.movies.search = Some("Something".into()); + radarr_data.movies.filter = Some("Something".into()); + radarr_data.collections.set_items(vec![collection()]); + radarr_data.collections.sorting(vec![sort_option!(id)]); + radarr_data.collections.search = Some("Something".into()); + radarr_data.collections.filter = Some("Something".into()); + radarr_data + .collection_movies + .set_items(vec![collection_movie()]); + radarr_data.downloads.set_items(vec![download_record()]); + radarr_data.blocklist.set_items(vec![blocklist_item()]); + radarr_data.blocklist.sorting(vec![sort_option!(id)]); + radarr_data.indexers.set_items(vec![indexer()]); + radarr_data.indexers.sorting(vec![sort_option!(id)]); + radarr_data.indexers.search = Some("Something".into()); + radarr_data.indexers.filter = Some("Something".into()); + radarr_data.logs.set_items(vec![log_line().into()]); + radarr_data.log_details.set_items(vec![log_line().into()]); + radarr_data.tasks.set_items(vec![task()]); + radarr_data.queued_events.set_items(vec![queued_event()]); + + radarr_data + } +} + #[derive(Clone, Copy, PartialEq, Eq, Debug, Default, EnumIter)] #[cfg_attr(test, derive(Display, EnumString))] pub enum ActiveRadarrBlock { diff --git a/src/models/servarr_data/sonarr/sonarr_data.rs b/src/models/servarr_data/sonarr/sonarr_data.rs index 8682088..8713468 100644 --- a/src/models/servarr_data/sonarr/sonarr_data.rs +++ b/src/models/servarr_data/sonarr/sonarr_data.rs @@ -1,8 +1,4 @@ -use bimap::BiMap; -use chrono::{DateTime, Utc}; -use serde_json::Number; -use strum::EnumIter; - +use super::modals::{AddSeriesModal, EditSeriesModal, SeasonDetailsModal}; use crate::{ app::{ context_clues::{ @@ -27,8 +23,30 @@ use crate::{ }, network::sonarr_network::SonarrEvent, }; - -use super::modals::{AddSeriesModal, EditSeriesModal, SeasonDetailsModal}; +use bimap::BiMap; +use chrono::{DateTime, Utc}; +use serde_json::Number; +use strum::EnumIter; +#[cfg(test)] +use { + super::modals::EpisodeDetailsModal, + crate::models::sonarr_models::{SeriesMonitor, SeriesType}, + crate::models::stateful_table::SortOption, + crate::network::servarr_test_utils::diskspace, + crate::network::servarr_test_utils::indexer_test_result, + crate::network::servarr_test_utils::queued_event, + crate::network::sonarr_network::sonarr_network_test_utils::test_utils::{ + add_series_search_result, blocklist_item, download_record, history_item, indexer, + indexer_settings, log_line, root_folder, + }, + crate::network::sonarr_network::sonarr_network_test_utils::test_utils::{ + episode, episode_file, language_profiles_map, quality_profile_map, season, series, tags_map, + task, torrent_release, updates, usenet_release, + }, + crate::sort_option, + strum::IntoEnumIterator, + strum_macros::{Display, EnumString}, +}; #[cfg(test)] #[path = "sonarr_data_tests.rs"] @@ -212,7 +230,164 @@ impl<'a> Default for SonarrData<'a> { } } +#[cfg(test)] +impl SonarrData<'_> { + pub fn test_default_fully_populated() -> Self { + let quality_profile_name = "Bluray-1080p".to_owned(); + let language_profile_name = "English".to_owned(); + let mut add_searched_series = StatefulTable::default(); + add_searched_series.set_items(vec![add_series_search_result()]); + + let mut add_series_modal = AddSeriesModal { + use_season_folder: true, + tags: "alex".into(), + ..AddSeriesModal::default() + }; + add_series_modal + .root_folder_list + .set_items(vec![root_folder()]); + add_series_modal + .monitor_list + .set_items(SeriesMonitor::iter().collect()); + add_series_modal + .quality_profile_list + .set_items(vec![quality_profile_name.clone()]); + add_series_modal + .language_profile_list + .set_items(vec![language_profile_name.clone()]); + add_series_modal + .series_type_list + .set_items(SeriesType::iter().collect()); + + let edit_indexer_modal = EditIndexerModal { + name: "DrunkenSlug".into(), + enable_rss: Some(true), + enable_automatic_search: Some(true), + enable_interactive_search: Some(true), + url: "http://127.0.0.1:9696/1/".into(), + api_key: "someApiKey".into(), + seed_ratio: "ratio".into(), + tags: "25".into(), + priority: 1, + }; + + let mut edit_series_modal = EditSeriesModal { + monitored: Some(true), + use_season_folders: Some(true), + path: "/nfs/tv".into(), + tags: "alex".into(), + ..EditSeriesModal::default() + }; + edit_series_modal + .series_type_list + .set_items(SeriesType::iter().collect()); + edit_series_modal + .quality_profile_list + .set_items(vec![quality_profile_name.clone()]); + edit_series_modal + .language_profile_list + .set_items(vec![language_profile_name.clone()]); + + let mut indexer_test_all_results = StatefulTable::default(); + indexer_test_all_results.set_items(vec![indexer_test_result()]); + + let mut episode_details_modal = EpisodeDetailsModal { + episode_details: ScrollableText::with_string("Some episode details".into()), + file_details: "Some file details".to_owned(), + audio_details: "Some audio details".to_owned(), + video_details: "Some video details".to_owned(), + ..EpisodeDetailsModal::default() + }; + episode_details_modal + .episode_history + .set_items(vec![history_item()]); + episode_details_modal + .episode_releases + .set_items(vec![torrent_release(), usenet_release()]); + episode_details_modal + .episode_releases + .sorting(vec![sort_option!(indexer_id)]); + + let mut season_details_modal = SeasonDetailsModal { + episode_details_modal: Some(episode_details_modal), + ..SeasonDetailsModal::default() + }; + season_details_modal.episodes.set_items(vec![episode()]); + season_details_modal.episodes.search = Some("episode search".into()); + season_details_modal + .episode_files + .set_items(vec![episode_file()]); + season_details_modal + .season_history + .set_items(vec![history_item()]); + season_details_modal.season_history.search = Some("season history search".into()); + season_details_modal.season_history.filter = Some("season history filter".into()); + season_details_modal + .season_history + .sorting(vec![sort_option!(id)]); + season_details_modal + .season_releases + .set_items(vec![torrent_release(), usenet_release()]); + season_details_modal + .season_releases + .sorting(vec![sort_option!(indexer_id)]); + + let mut series_history = StatefulTable::default(); + series_history.set_items(vec![history_item()]); + series_history.sorting(vec![sort_option!(id)]); + series_history.search = Some("series history search".into()); + series_history.filter = Some("series history filter".into()); + + let mut sonarr_data = SonarrData { + add_list_exclusion: true, + add_searched_series: Some(add_searched_series), + add_series_modal: Some(add_series_modal), + add_series_search: Some("something".into()), + delete_series_files: true, + disk_space_vec: vec![diskspace()], + edit_indexer_modal: Some(edit_indexer_modal), + edit_root_folder: Some("/nfs/tv".into()), + edit_series_modal: Some(edit_series_modal), + indexer_settings: Some(indexer_settings()), + indexer_test_all_results: Some(indexer_test_all_results), + indexer_test_errors: Some("error".to_string()), + language_profiles_map: language_profiles_map(), + quality_profile_map: quality_profile_map(), + season_details_modal: Some(season_details_modal), + series_history: Some(series_history), + start_time: DateTime::from(DateTime::parse_from_rfc3339("2023-05-20T21:29:16Z").unwrap()), + tags_map: tags_map(), + updates: updates(), + version: "1.2.3.4".to_owned(), + ..SonarrData::default() + }; + + sonarr_data.blocklist.set_items(vec![blocklist_item()]); + sonarr_data.blocklist.sorting(vec![sort_option!(id)]); + sonarr_data.downloads.set_items(vec![download_record()]); + sonarr_data.history.set_items(vec![history_item()]); + sonarr_data.history.sorting(vec![sort_option!(id)]); + sonarr_data.history.search = Some("test search".into()); + sonarr_data.history.filter = Some("test filter".into()); + sonarr_data.indexers.set_items(vec![indexer()]); + sonarr_data.queued_events.set_items(vec![queued_event()]); + sonarr_data.root_folders.set_items(vec![root_folder()]); + sonarr_data.seasons.set_items(vec![season()]); + sonarr_data.seasons.search = Some("season search".into()); + sonarr_data.series.set_items(vec![series()]); + sonarr_data.series.sorting(vec![sort_option!(id)]); + sonarr_data.series.search = Some("series search".into()); + sonarr_data.series.filter = Some("series filter".into()); + sonarr_data.logs.set_items(vec![log_line().into()]); + sonarr_data.log_details.set_items(vec![log_line().into()]); + sonarr_data.tasks.set_items(vec![task()]); + + sonarr_data + } +} + #[derive(Clone, Copy, PartialEq, Eq, Debug, Default, EnumIter)] +#[cfg_attr(test, derive(Display, EnumString))] pub enum ActiveSonarrBlock { AddRootFolderPrompt, AddSeriesAlreadyInLibrary, diff --git a/src/network/mod.rs b/src/network/mod.rs index 1e65cd79..b3bf0f4 100644 --- a/src/network/mod.rs +++ b/src/network/mod.rs @@ -26,8 +26,9 @@ pub mod sonarr_network; mod utils; #[cfg(test)] -#[path = "network_tests.rs"] mod network_tests; +#[cfg(test)] +pub mod servarr_test_utils; #[cfg_attr(test, automock)] #[async_trait] diff --git a/src/network/radarr_network/radarr_network_test_utils.rs b/src/network/radarr_network/radarr_network_test_utils.rs index c8f26af..8cc37d6 100644 --- a/src/network/radarr_network/radarr_network_test_utils.rs +++ b/src/network/radarr_network/radarr_network_test_utils.rs @@ -6,9 +6,8 @@ pub mod test_utils { Movie, MovieCollection, MovieFile, MovieHistoryItem, RadarrRelease, RadarrTask, RadarrTaskName, Rating, RatingsList, }; - use crate::models::servarr_data::modals::IndexerTestResultModalItem; use crate::models::servarr_models::{ - DiskSpace, Indexer, IndexerField, Language, Quality, QualityWrapper, QueueEvent, RootFolder, + Indexer, IndexerField, Language, Quality, QualityWrapper, RootFolder, }; use crate::models::{HorizontallyScrollableText, ScrollableText}; use bimap::BiMap; @@ -108,13 +107,6 @@ pub mod test_utils { } } - pub fn diskspace() -> DiskSpace { - DiskSpace { - free_space: 6500, - total_space: 8675309, - } - } - pub fn log_line() -> &'static str { "2025-12-15 16:14:45 UTC|INFO|DownloadDecisionMaker|Processing 545 releases" } @@ -130,23 +122,6 @@ pub mod test_utils { } } - pub fn queued_event() -> QueueEvent { - QueueEvent { - trigger: "manual".to_string(), - name: "Refresh Monitored Downloads".to_string(), - command_name: "Refresh Monitored Downloads".to_string(), - status: "completed".to_string(), - queued: DateTime::from(DateTime::parse_from_rfc3339("2023-05-20T21:25:16Z").unwrap()), - started: Some(DateTime::from( - DateTime::parse_from_rfc3339("2023-05-20T21:25:30Z").unwrap(), - )), - ended: Some(DateTime::from( - DateTime::parse_from_rfc3339("2023-05-20T21:28:33Z").unwrap(), - )), - duration: Some("00:03:03".to_owned()), - } - } - pub fn tags_map() -> BiMap { BiMap::from_iter([(1, "alex".to_owned())]) } @@ -490,14 +465,6 @@ pub mod test_utils { )) } - pub fn indexer_test_result() -> IndexerTestResultModalItem { - IndexerTestResultModalItem { - name: "DrunkenSlug".to_owned(), - is_valid: false, - validation_failures: "Some failure".into(), - } - } - pub fn torrent_release() -> RadarrRelease { RadarrRelease { guid: "1234".to_string(), diff --git a/src/network/servarr_test_utils.rs b/src/network/servarr_test_utils.rs new file mode 100644 index 0000000..0f79be9 --- /dev/null +++ b/src/network/servarr_test_utils.rs @@ -0,0 +1,35 @@ +use crate::models::servarr_data::modals::IndexerTestResultModalItem; +use crate::models::servarr_models::{DiskSpace, QueueEvent}; +use chrono::DateTime; + +pub fn diskspace() -> DiskSpace { + DiskSpace { + free_space: 6500, + total_space: 8675309, + } +} + +pub fn indexer_test_result() -> IndexerTestResultModalItem { + IndexerTestResultModalItem { + name: "DrunkenSlug".to_owned(), + is_valid: false, + validation_failures: "Some failure".into(), + } +} + +pub fn queued_event() -> QueueEvent { + QueueEvent { + trigger: "manual".to_string(), + name: "Refresh Monitored Downloads".to_string(), + command_name: "Refresh Monitored Downloads".to_string(), + status: "completed".to_string(), + queued: DateTime::from(DateTime::parse_from_rfc3339("2023-05-20T21:25:16Z").unwrap()), + started: Some(DateTime::from( + DateTime::parse_from_rfc3339("2023-05-20T21:25:30Z").unwrap(), + )), + ended: Some(DateTime::from( + DateTime::parse_from_rfc3339("2023-05-20T21:28:33Z").unwrap(), + )), + duration: Some("00:03:03".to_owned()), + } +} diff --git a/src/network/sonarr_network/blocklist/sonarr_blocklist_network_tests.rs b/src/network/sonarr_network/blocklist/sonarr_blocklist_network_tests.rs index 5b818cc..a8d27d8 100644 --- a/src/network/sonarr_network/blocklist/sonarr_blocklist_network_tests.rs +++ b/src/network/sonarr_network/blocklist/sonarr_blocklist_network_tests.rs @@ -96,6 +96,7 @@ mod tests { }, { "seriesId": 2001, + "seriesTitle": "Test Series", "episodeIds": [42018], "sourceTitle": "A Series", "languages": [{ "id": 1, "name": "English" }], diff --git a/src/network/sonarr_network/library/episodes/sonarr_episodes_network_tests.rs b/src/network/sonarr_network/library/episodes/sonarr_episodes_network_tests.rs index cd4f536..4de541a 100644 --- a/src/network/sonarr_network/library/episodes/sonarr_episodes_network_tests.rs +++ b/src/network/sonarr_network/library/episodes/sonarr_episodes_network_tests.rs @@ -12,7 +12,7 @@ mod tests { use crate::network::sonarr_network::SonarrEvent; use crate::network::sonarr_network::library::episodes::get_episode_status; use crate::network::sonarr_network::sonarr_network_test_utils::test_utils::{ - EPISODE_JSON, episode, episode_file, history_item, release, + EPISODE_JSON, episode, episode_file, history_item, torrent_release, }; use indoc::formatdoc; use mockito::Matcher; @@ -1124,9 +1124,9 @@ mod tests { .unwrap() .episode_releases .items, - vec![release()] + vec![torrent_release()] ); - assert_eq!(releases_vec, vec![release()]); + assert_eq!(releases_vec, vec![torrent_release()]); } #[tokio::test] @@ -1179,9 +1179,9 @@ mod tests { .unwrap() .episode_releases .items, - vec![release()] + vec![torrent_release()] ); - assert_eq!(releases_vec, vec![release()]); + assert_eq!(releases_vec, vec![torrent_release()]); } #[tokio::test] diff --git a/src/network/sonarr_network/library/seasons/sonarr_seasons_network_tests.rs b/src/network/sonarr_network/library/seasons/sonarr_seasons_network_tests.rs index 25fb1f1..80427cc 100644 --- a/src/network/sonarr_network/library/seasons/sonarr_seasons_network_tests.rs +++ b/src/network/sonarr_network/library/seasons/sonarr_seasons_network_tests.rs @@ -6,7 +6,7 @@ mod tests { use crate::network::network_tests::test_utils::{MockServarrApi, test_network}; use crate::network::sonarr_network::SonarrEvent; use crate::network::sonarr_network::sonarr_network_test_utils::test_utils::{ - SERIES_JSON, history_item, release, season, series, + SERIES_JSON, history_item, season, series, torrent_release, }; use mockito::Matcher; use pretty_assertions::assert_eq; @@ -101,16 +101,16 @@ mod tests { ]); let expected_filtered_sonarr_release = SonarrRelease { full_season: true, - ..release() + ..torrent_release() }; let expected_raw_sonarr_releases = vec![ SonarrRelease { full_season: true, - ..release() + ..torrent_release() }, SonarrRelease { guid: "4567".to_owned(), - ..release() + ..torrent_release() }, ]; let (mock, app, _server) = MockServarrApi::get() @@ -197,7 +197,7 @@ mod tests { ]); let expected_sonarr_release = SonarrRelease { full_season: true, - ..release() + ..torrent_release() }; let (mock, app, _server) = MockServarrApi::get() .returns(release_json) diff --git a/src/network/sonarr_network/mod.rs b/src/network/sonarr_network/mod.rs index 6d45118..b0f314c 100644 --- a/src/network/sonarr_network/mod.rs +++ b/src/network/sonarr_network/mod.rs @@ -19,7 +19,7 @@ mod sonarr_network_tests; #[cfg(test)] #[path = "sonarr_network_test_utils.rs"] -mod sonarr_network_test_utils; +pub mod sonarr_network_test_utils; mod blocklist; mod downloads; diff --git a/src/network/sonarr_network/sonarr_network_test_utils.rs b/src/network/sonarr_network/sonarr_network_test_utils.rs index d8eb8f5..e3fc28c 100644 --- a/src/network/sonarr_network/sonarr_network_test_utils.rs +++ b/src/network/sonarr_network/sonarr_network_test_utils.rs @@ -1,6 +1,5 @@ #[cfg(test)] -pub(in crate::network::sonarr_network) mod test_utils { - use crate::models::HorizontallyScrollableText; +pub mod test_utils { use crate::models::servarr_models::{ Indexer, IndexerField, Language, Quality, QualityWrapper, RootFolder, }; @@ -8,9 +7,13 @@ pub(in crate::network::sonarr_network) mod test_utils { AddSeriesSearchResult, AddSeriesSearchResultStatistics, BlocklistItem, DownloadRecord, DownloadStatus, DownloadsResponse, Episode, EpisodeFile, IndexerSettings, MediaInfo, Rating, Season, SeasonStatistics, Series, SeriesStatistics, SeriesStatus, SeriesType, - SonarrHistoryData, SonarrHistoryEventType, SonarrHistoryItem, SonarrRelease, + SonarrHistoryData, SonarrHistoryEventType, SonarrHistoryItem, SonarrRelease, SonarrTask, + SonarrTaskName, }; + use crate::models::{HorizontallyScrollableText, ScrollableText}; + use bimap::BiMap; use chrono::DateTime; + use indoc::formatdoc; use serde_json::{Number, Value, json}; pub const SERIES_JSON: &str = r#"{ @@ -22,6 +25,7 @@ pub(in crate::network::sonarr_network) mod test_utils { "seasons": [ { "seasonNumber": 1, + "title": "Season title", "monitored": true, "statistics": { "previousAiring": "2022-10-24T01:00:00Z", @@ -120,7 +124,7 @@ pub(in crate::network::sonarr_network) mod test_utils { BlocklistItem { id: 1, series_id: 1, - series_title: None, + series_title: Some("Test Series".to_owned()), episode_ids: vec![Number::from(1)], source_title: "Test Source Title".to_owned(), languages: vec![Some(language())], @@ -299,7 +303,7 @@ pub(in crate::network::sonarr_network) mod test_utils { pub fn season() -> Season { Season { - title: None, + title: Some("Season title".to_owned()), season_number: 1, monitored: true, statistics: Some(season_statistics()), @@ -364,7 +368,7 @@ pub(in crate::network::sonarr_network) mod test_utils { ] } - pub fn release() -> SonarrRelease { + pub fn torrent_release() -> SonarrRelease { SonarrRelease { guid: "1234".to_owned(), protocol: "torrent".to_owned(), @@ -383,6 +387,25 @@ pub(in crate::network::sonarr_network) mod test_utils { } } + pub fn usenet_release() -> SonarrRelease { + SonarrRelease { + guid: "1234".to_owned(), + protocol: "usenet".to_owned(), + age: 1, + title: HorizontallyScrollableText::from("Test Release"), + indexer: "DrunkenSlug".to_owned(), + indexer_id: 1, + size: 1234, + rejected: true, + rejections: Some(rejections()), + seeders: None, + leechers: None, + languages: Some(vec![Some(language())]), + quality: quality_wrapper(), + full_season: false, + } + } + pub fn root_folder() -> RootFolder { RootFolder { id: 1, @@ -399,4 +422,61 @@ pub(in crate::network::sonarr_network) mod test_utils { "label": "testing" }) } + + pub fn log_line() -> &'static str { + "2025-12-16 16:40:59 UTC|INFO|ImportListSyncService|No list items to process" + } + + pub fn language_profiles_map() -> BiMap { + let Language { id, name } = language(); + + BiMap::from_iter(vec![(id, name)]) + } + + pub fn quality_profile_map() -> BiMap { + BiMap::from_iter(vec![(6, quality().name)]) + } + + pub fn tags_map() -> BiMap { + BiMap::from_iter(vec![(1, "alex".to_owned())]) + } + + pub fn task() -> SonarrTask { + SonarrTask { + name: "Backup".to_owned(), + task_name: SonarrTaskName::Backup, + interval: 60, + last_execution: DateTime::from(DateTime::parse_from_rfc3339("2023-05-20T21:29:16Z").unwrap()), + next_execution: DateTime::from(DateTime::parse_from_rfc3339("2023-05-20T22:29:16Z").unwrap()), + } + } + + pub fn updates() -> ScrollableText { + let line_break = "-".repeat(200); + ScrollableText::with_string(formatdoc!( + " + The latest version of Sonarr is already installed + + 4.3.2.1 - 2023-04-15 02:02:53 UTC (Currently Installed) + {line_break} + New: + * Cool new thing + Fixed: + * Some bugs killed + + + 3.2.1.0 - 2023-04-15 02:02:53 UTC (Previously Installed) + {line_break} + New: + * Cool new thing (old) + * Other cool new thing (old) + + + 2.1.0 - 2023-04-15 02:02:53 UTC + {line_break} + Fixed: + * Killed bug 1 + * Fixed bug 2" + )) + } } diff --git a/src/network/sonarr_network/system/mod.rs b/src/network/sonarr_network/system/mod.rs index 9bd6b88..d2c1ed6 100644 --- a/src/network/sonarr_network/system/mod.rs +++ b/src/network/sonarr_network/system/mod.rs @@ -202,9 +202,9 @@ impl Network<'_, '_> { .map(|update| { let install_status = if update.installed_on.is_some() { if update.installed { - "(Currently Installed)".to_owned() + " (Currently Installed)".to_owned() } else { - "(Previously Installed)".to_owned() + " (Previously Installed)".to_owned() } } else { String::new() @@ -218,7 +218,7 @@ impl Network<'_, '_> { }; let mut update_info = formatdoc!( - "{} - {} {install_status} + "{} - {}{install_status} {}", update.version, update.release_date, diff --git a/src/network/sonarr_network/system/sonarr_system_network_tests.rs b/src/network/sonarr_network/system/sonarr_system_network_tests.rs index 99c3f58..b254176 100644 --- a/src/network/sonarr_network/system/sonarr_system_network_tests.rs +++ b/src/network/sonarr_network/system/sonarr_system_network_tests.rs @@ -1,14 +1,14 @@ #[cfg(test)] mod tests { + use crate::models::HorizontallyScrollableText; use crate::models::servarr_models::{ DiskSpace, HostConfig, LogResponse, QueueEvent, SecurityConfig, Update, }; use crate::models::sonarr_models::{SonarrSerdeable, SonarrTask, SonarrTaskName, SystemStatus}; - use crate::models::{HorizontallyScrollableText, ScrollableText}; use crate::network::network_tests::test_utils::{MockServarrApi, test_network}; use crate::network::sonarr_network::SonarrEvent; + use crate::network::sonarr_network::sonarr_network_test_utils::test_utils::updates; use chrono::DateTime; - use indoc::formatdoc; use pretty_assertions::{assert_eq, assert_str_eq}; use serde_json::json; @@ -359,32 +359,7 @@ mod tests { }, }]); let response: Vec = serde_json::from_value(updates_json.clone()).unwrap(); - let line_break = "-".repeat(200); - let expected_text = ScrollableText::with_string(formatdoc!( - " - The latest version of Sonarr is already installed - - 4.3.2.1 - 2023-04-15 02:02:53 UTC (Currently Installed) - {line_break} - New: - * Cool new thing - Fixed: - * Some bugs killed - - - 3.2.1.0 - 2023-04-15 02:02:53 UTC (Previously Installed) - {line_break} - New: - * Cool new thing (old) - * Other cool new thing (old) - - - 2.1.0 - 2023-04-15 02:02:53 UTC - {line_break} - Fixed: - * Killed bug 1 - * Fixed bug 2" - )); + let expected_text = updates(); let (mock, app, _server) = MockServarrApi::get() .returns(updates_json) .build_for(SonarrEvent::GetUpdates) diff --git a/src/ui/radarr_ui/collections/collections_ui_tests.rs b/src/ui/radarr_ui/collections/collections_ui_tests.rs index ba8caa7..10fff87 100644 --- a/src/ui/radarr_ui/collections/collections_ui_tests.rs +++ b/src/ui/radarr_ui/collections/collections_ui_tests.rs @@ -58,7 +58,12 @@ mod tests { CollectionsUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!( + format!( + "is_loading_{is_loading}_empty_movies_{empty_movies}_empty_profile_{empty_profile_map}" + ), + output + ); } #[rstest] @@ -81,7 +86,7 @@ mod tests { CollectionsUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(active_radarr_block.to_string(), output); + insta::assert_snapshot!(format!("collections_tab_{active_radarr_block}"), output); } #[test] @@ -141,7 +146,7 @@ mod tests { insta::assert_snapshot!( format!( - "{}_{}", + "edit_collection_modal_{}_{}", active_radarr_block.to_string(), context_block.to_string() ), diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__Collections.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_Collections.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__Collections.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_Collections.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__CollectionsSortPrompt.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_CollectionsSortPrompt.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__CollectionsSortPrompt.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_CollectionsSortPrompt.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__FilterCollections.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_FilterCollections.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__FilterCollections.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_FilterCollections.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__FilterCollectionsError.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_FilterCollectionsError.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__FilterCollectionsError.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_FilterCollectionsError.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__SearchCollection.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_SearchCollection.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__SearchCollection.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_SearchCollection.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__SearchCollectionError.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_SearchCollectionError.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__SearchCollectionError.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_SearchCollectionError.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__UpdateAllCollectionsPrompt.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_UpdateAllCollectionsPrompt.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__UpdateAllCollectionsPrompt.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__collections_tab_UpdateAllCollectionsPrompt.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionConfirmPrompt_CollectionDetails.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionConfirmPrompt_CollectionDetails.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionConfirmPrompt_CollectionDetails.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionConfirmPrompt_CollectionDetails.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionPrompt_CollectionDetails.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionPrompt_CollectionDetails.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionPrompt_CollectionDetails.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionPrompt_CollectionDetails.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionRootFolderPathInput_CollectionDetails.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionRootFolderPathInput_CollectionDetails.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionRootFolderPathInput_CollectionDetails.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionRootFolderPathInput_CollectionDetails.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionSelectMinimumAvailability_CollectionDetails.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionSelectMinimumAvailability_CollectionDetails.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionSelectMinimumAvailability_CollectionDetails.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionSelectMinimumAvailability_CollectionDetails.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionSelectQualityProfile_CollectionDetails.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionSelectQualityProfile_CollectionDetails.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionSelectQualityProfile_CollectionDetails.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionSelectQualityProfile_CollectionDetails.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionToggleMonitored_CollectionDetails.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionToggleMonitored_CollectionDetails.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionToggleMonitored_CollectionDetails.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionToggleMonitored_CollectionDetails.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionToggleSearchOnAdd_CollectionDetails.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionToggleSearchOnAdd_CollectionDetails.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__EditCollectionToggleSearchOnAdd_CollectionDetails.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__edit_collection_modal_EditCollectionToggleSearchOnAdd_CollectionDetails.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__radarr_ui_renders_collections_tab_loading-2.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__is_loading_false_empty_movies_false_empty_profile_true.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__radarr_ui_renders_collections_tab_loading-2.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__is_loading_false_empty_movies_false_empty_profile_true.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__radarr_ui_renders_collections_tab_loading-3.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__is_loading_false_empty_movies_true_empty_profile_false.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__radarr_ui_renders_collections_tab_loading-3.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__is_loading_false_empty_movies_true_empty_profile_false.snap diff --git a/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__radarr_ui_renders_collections_tab_loading.snap b/src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__is_loading_true_empty_movies_false_empty_profile_false.snap similarity index 100% rename from src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__radarr_ui_renders_collections_tab_loading.snap rename to src/ui/radarr_ui/collections/snapshots/managarr__ui__radarr_ui__collections__collections_ui_tests__tests__snapshot_tests__is_loading_true_empty_movies_false_empty_profile_false.snap diff --git a/src/ui/radarr_ui/library/library_ui_tests.rs b/src/ui/radarr_ui/library/library_ui_tests.rs index 2ab03be..629c955 100644 --- a/src/ui/radarr_ui/library/library_ui_tests.rs +++ b/src/ui/radarr_ui/library/library_ui_tests.rs @@ -82,7 +82,7 @@ mod tests { LibraryUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(active_radarr_block.to_string(), output); + insta::assert_snapshot!(format!("library_tab_{active_radarr_block}"), output); } #[rstest] @@ -109,7 +109,7 @@ mod tests { LibraryUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(active_radarr_block.to_string(), output); + insta::assert_snapshot!(format!("add_movie_ui_{active_radarr_block}"), output); } #[test] diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieAlreadyInLibrary.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieAlreadyInLibrary.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieAlreadyInLibrary.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieAlreadyInLibrary.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieEmptySearchResults.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieEmptySearchResults.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieEmptySearchResults.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieEmptySearchResults.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMoviePrompt.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMoviePrompt.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMoviePrompt.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMoviePrompt.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSearchInput.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSearchInput.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSearchInput.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSearchInput.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSearchResults.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSearchResults.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSearchResults.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSearchResults.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSelectMinimumAvailability.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSelectMinimumAvailability.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSelectMinimumAvailability.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSelectMinimumAvailability.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSelectMonitor.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSelectMonitor.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSelectMonitor.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSelectMonitor.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSelectQualityProfile.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSelectQualityProfile.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSelectQualityProfile.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSelectQualityProfile.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSelectRootFolder.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSelectRootFolder.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieSelectRootFolder.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieSelectRootFolder.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieTagsInput.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieTagsInput.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__AddMovieTagsInput.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__add_movie_ui_AddMovieTagsInput.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__FilterMovies.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_FilterMovies.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__FilterMovies.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_FilterMovies.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__FilterMoviesError.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_FilterMoviesError.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__FilterMoviesError.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_FilterMoviesError.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__Movies.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_Movies.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__Movies.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_Movies.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__MoviesSortPrompt.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_MoviesSortPrompt.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__MoviesSortPrompt.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_MoviesSortPrompt.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__SearchMovie.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_SearchMovie.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__SearchMovie.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_SearchMovie.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__SearchMovieError.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_SearchMovieError.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__SearchMovieError.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_SearchMovieError.snap diff --git a/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__UpdateAllMoviesPrompt.snap b/src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_UpdateAllMoviesPrompt.snap similarity index 100% rename from src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__UpdateAllMoviesPrompt.snap rename to src/ui/radarr_ui/library/snapshots/managarr__ui__radarr_ui__library__library_ui_tests__tests__snapshot_tests__library_tab_UpdateAllMoviesPrompt.snap diff --git a/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemLogs.snap b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemLogs.snap new file mode 100644 index 0000000..68c4f5f --- /dev/null +++ b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemLogs.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/radarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Last Duration Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 00:00:17 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Log Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │2025-12-15 16:14:45 UTC|INFO|DownloadDecisionMaker|Processing 545 releases │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +╰───────────────────│ │────────────────────╯ +╭ Logs ───────────│ │────────────────────╮ +│2025-12-15 16:14:45│ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemQueuedEvents.snap b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemQueuedEvents.snap new file mode 100644 index 0000000..18b71e4 --- /dev/null +++ b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemQueuedEvents.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/radarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Last Duration Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 00:00:17 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Queued Events ────────────────────────────────────────────────────────────────────────────────╮ │ +│ │Trigger Status Name Queued Started Duration │ │ +│ │manual completed Refresh Monitored Downlo 4 minutes ago 4 minutes ago 00:03:03 │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +╰────────────────────────────────│ │────────────────────────────────╯ +╭ Logs ────────────────────────│ │────────────────────────────────╮ +│2025-12-15 16:14:45 UTC|INFO|Dow│ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemTaskStartConfirmPrompt.snap b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemTaskStartConfirmPrompt.snap new file mode 100644 index 0000000..08c6dc7 --- /dev/null +++ b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemTaskStartConfirmPrompt.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/radarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Last Duration Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 00:00:17 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Tasks ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Name Interval Last Execution Last Duration Next Execution │ │ +│ │=> Backup 1 hour now 00:00:17 59 minutes │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ ╭────────────────────── Start Task ───────────────────────╮ │ │ +│ │ │ Do you want to manually start this task: Backup? │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +╰───────────────────│ │ │ │────────────────────╯ +╭ Logs ───────────│ │ │ │────────────────────╮ +│2025-12-15 16:14:45│ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │╭────────────────────────────╮╭───────────────────────────╮│ │ │ +│ │ ││ Yes ││ No ││ │ │ +│ │ │╰────────────────────────────╯╰───────────────────────────╯│ │ │ +│ │ ╰───────────────────────────────────────────────────────────╯ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemTasks.snap b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemTasks.snap new file mode 100644 index 0000000..e5f4537 --- /dev/null +++ b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemTasks.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/radarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Last Duration Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 00:00:17 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Tasks ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Name Interval Last Execution Last Duration Next Execution │ │ +│ │=> Backup 1 hour now 00:00:17 59 minutes │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +╰───────────────────│ │────────────────────╯ +╭ Logs ───────────│ │────────────────────╮ +│2025-12-15 16:14:45│ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemUpdates.snap b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemUpdates.snap new file mode 100644 index 0000000..8e22df5 --- /dev/null +++ b/src/ui/radarr_ui/system/snapshots/managarr__ui__radarr_ui__system__system_ui_tests__tests__snapshot_tests__system_details_over_system_tab_SystemUpdates.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/radarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Last Duration Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 00:00:17 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Updates ───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │The latest version of Radarr is already installed │ │ +│ │ │ │ +│ │4.3.2.1 - 2023-04-15 02:02:53 UTC (Currently Installed) │ │ +│ │--------------------------------------------------------------------------------------------------------------------------│ │ +│ │New: │ │ +│ │ * Cool new thing │ │ +│ │Fixed: │ │ +│ │ * Some bugs killed │ │ +│ │ │ │ +│ │ │ │ +│ │3.2.1.0 - 2023-04-15 02:02:53 UTC (Previously Installed) │ │ +│ │--------------------------------------------------------------------------------------------------------------------------│ │ +│ │New: │ │ +│ │ * Cool new thing (old) │ │ +│ │ * Other cool new thing (old) │ │ +│ │ │ │ +│ │ │ │ +╰───────────────────│2.1.0 - 2023-04-15 02:02:53 UTC │────────────────────╯ +╭ Logs ───────────│--------------------------------------------------------------------------------------------------------------------------│────────────────────╮ +│2025-12-15 16:14:45│Fixed: │ │ +│ │ * Killed bug 1 │ │ +│ │ * Fixed bug 2 │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/radarr_ui/system/system_details_ui_tests.rs b/src/ui/radarr_ui/system/system_details_ui_tests.rs index 37782ec..2277f3a 100644 --- a/src/ui/radarr_ui/system/system_details_ui_tests.rs +++ b/src/ui/radarr_ui/system/system_details_ui_tests.rs @@ -27,7 +27,7 @@ mod tests { use rstest::rstest; #[rstest] - fn test_system_details_ui_renders_tasks( + fn test_system_details_ui_renders_popups( #[values( ActiveRadarrBlock::SystemLogs, ActiveRadarrBlock::SystemQueuedEvents, diff --git a/src/ui/radarr_ui/system/system_ui_tests.rs b/src/ui/radarr_ui/system/system_ui_tests.rs index 52ea30e..31bd161 100644 --- a/src/ui/radarr_ui/system/system_ui_tests.rs +++ b/src/ui/radarr_ui/system/system_ui_tests.rs @@ -29,6 +29,7 @@ mod tests { use super::*; use crate::models::stateful_list::StatefulList; use crate::models::stateful_table::StatefulTable; + use rstest::rstest; #[test] fn test_radarr_ui_renders_system_tab_loading() { @@ -98,5 +99,29 @@ mod tests { insta::assert_snapshot!(output); } + + #[rstest] + fn test_system_details_ui_renders_popups_over_system_tab( + #[values( + ActiveRadarrBlock::SystemLogs, + ActiveRadarrBlock::SystemQueuedEvents, + ActiveRadarrBlock::SystemTasks, + ActiveRadarrBlock::SystemTaskStartConfirmPrompt, + ActiveRadarrBlock::SystemUpdates + )] + active_radarr_block: ActiveRadarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_radarr_block.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SystemUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!( + format!("system_details_over_system_tab_{active_radarr_block}"), + output + ); + } } } diff --git a/src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs b/src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs index d04e2ef..0ab47b0 100644 --- a/src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs +++ b/src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs @@ -4,8 +4,6 @@ mod tests { use crate::app::App; use crate::models::servarr_data::sonarr::sonarr_data::{ActiveSonarrBlock, BLOCKLIST_BLOCKS}; - use crate::models::sonarr_models::BlocklistItem; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::blocklist::BlocklistUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -23,11 +21,12 @@ mod tests { mod snapshot_tests { use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; #[test] - fn test_blocklist_ui_renders_loading_state() { + fn test_blocklist_ui_renders_loading() { let mut app = App::test_default(); app.is_loading = true; app.push_navigation_stack(ActiveSonarrBlock::Blocklist.into()); @@ -40,10 +39,9 @@ mod tests { } #[test] - fn test_blocklist_ui_renders_empty_blocklist() { + fn test_blocklist_ui_renders_empty() { let mut app = App::test_default(); app.push_navigation_stack(ActiveSonarrBlock::Blocklist.into()); - app.data.sonarr_data.blocklist = StatefulTable::default(); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { BlocklistUi::draw(f, app, f.area()); @@ -52,29 +50,25 @@ mod tests { insta::assert_snapshot!(output); } - #[test] - fn test_blocklist_ui_renders_with_blocklist_items() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::Blocklist.into()); - app.data.sonarr_data.blocklist = StatefulTable::default(); - app.data.sonarr_data.blocklist.set_items(vec![ - BlocklistItem { - id: 1, - source_title: "Test.Series.S01E01.1080p".to_owned(), - ..BlocklistItem::default() - }, - BlocklistItem { - id: 2, - source_title: "Another.Series.S02E05.720p".to_owned(), - ..BlocklistItem::default() - }, - ]); + #[rstest] + fn test_blocklist_ui_renders( + #[values( + ActiveSonarrBlock::Blocklist, + ActiveSonarrBlock::BlocklistItemDetails, + ActiveSonarrBlock::DeleteBlocklistItemPrompt, + ActiveSonarrBlock::BlocklistClearAllItemsPrompt, + ActiveSonarrBlock::BlocklistSortPrompt + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { BlocklistUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!(format!("blocklist_tab_{active_sonarr_block}"), output); } } } diff --git a/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_with_blocklist_items.snap b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_Blocklist.snap similarity index 53% rename from src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_with_blocklist_items.snap rename to src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_Blocklist.snap index 42522b0..1d83850 100644 --- a/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_with_blocklist_items.snap +++ b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_Blocklist.snap @@ -3,6 +3,5 @@ source: src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs expression: output --- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── - Series Title Source Title Language Quality Date -=> Test.Series.S01E01.1080p 1970-01-01 00:00:00 UTC - Another.Series.S02E05.720p 1970-01-01 00:00:00 UTC + Series Title ▼ Source Title Language Quality Date +=> Test Series Test Source Title English Bluray-1080p 2024-02-10 07:28:45 UTC diff --git a/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistClearAllItemsPrompt.snap b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistClearAllItemsPrompt.snap new file mode 100644 index 0000000..2d83c6e --- /dev/null +++ b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistClearAllItemsPrompt.snap @@ -0,0 +1,34 @@ +--- +source: src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Series Title ▼ Source Title Language Quality Date +=> Test Series Test Source Title English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + + + + + + + + ╭────── Clear Blocklist ──────╮ + │ Do you want to clear your │ + │ blocklist? │ + │ │ + │ │ + │ │ + │╭──────────────╮╭─────────────╮│ + ││ Yes ││ No ││ + │╰──────────────╯╰─────────────╯│ + ╰───────────────────────────────╯ diff --git a/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistItemDetails.snap b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistItemDetails.snap new file mode 100644 index 0000000..8c2e63c --- /dev/null +++ b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistItemDetails.snap @@ -0,0 +1,34 @@ +--- +source: src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Series Title ▼ Source Title Language Quality Date +=> Test Series Test Source Title English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + + + + + + + + ╭─────────────────────────────────── Details ───────────────────────────────────╮ + │Name: Test Source Title │ + │Protocol: usenet │ + │Indexer: NZBgeek (Prowlarr) │ + │Message: test message │ + │ │ + │ │ + │ │ + │ │ + ╰─────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistSortPrompt.snap b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistSortPrompt.snap new file mode 100644 index 0000000..5f6e390 --- /dev/null +++ b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_BlocklistSortPrompt.snap @@ -0,0 +1,42 @@ +--- +source: src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Series Title Source Title Language Quality Date +=> Test Series Test Source Title English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + ╭───────────────────────────────╮ + │Something │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────╯ diff --git a/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_DeleteBlocklistItemPrompt.snap b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_DeleteBlocklistItemPrompt.snap new file mode 100644 index 0000000..8f2c711 --- /dev/null +++ b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_tab_DeleteBlocklistItemPrompt.snap @@ -0,0 +1,38 @@ +--- +source: src/ui/sonarr_ui/blocklist/blocklist_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Series Title ▼ Source Title Language Quality Date +=> Test Series Test Source Title English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + + + + ╭────────────── Remove Item from Blocklist ───────────────╮ + │ Do you want to remove this item from your blocklist: │ + │ Test Source Title? │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭────────────────────────────╮╭───────────────────────────╮│ + ││ Yes ││ No ││ + │╰────────────────────────────╯╰───────────────────────────╯│ + ╰───────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_empty_blocklist.snap b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_empty.snap similarity index 100% rename from src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_empty_blocklist.snap rename to src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_empty.snap diff --git a/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_loading_state.snap b/src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_loading.snap similarity index 100% rename from src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/blocklist/snapshots/managarr__ui__sonarr_ui__blocklist__blocklist_ui_tests__tests__snapshot_tests__blocklist_ui_renders_loading.snap diff --git a/src/ui/sonarr_ui/downloads/downloads_ui_tests.rs b/src/ui/sonarr_ui/downloads/downloads_ui_tests.rs index b6a7b82..19985a5 100644 --- a/src/ui/sonarr_ui/downloads/downloads_ui_tests.rs +++ b/src/ui/sonarr_ui/downloads/downloads_ui_tests.rs @@ -4,8 +4,6 @@ mod tests { use crate::app::App; use crate::models::servarr_data::sonarr::sonarr_data::{ActiveSonarrBlock, DOWNLOADS_BLOCKS}; - use crate::models::sonarr_models::DownloadRecord; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::downloads::DownloadsUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -23,11 +21,12 @@ mod tests { mod snapshot_tests { use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; #[test] - fn test_downloads_ui_renders_loading_state() { + fn test_downloads_ui_renders_loading() { let mut app = App::test_default(); app.is_loading = true; app.push_navigation_stack(ActiveSonarrBlock::Downloads.into()); @@ -43,7 +42,6 @@ mod tests { fn test_downloads_ui_renders_empty_downloads() { let mut app = App::test_default(); app.push_navigation_stack(ActiveSonarrBlock::Downloads.into()); - app.data.sonarr_data.downloads = StatefulTable::default(); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { DownloadsUi::draw(f, app, f.area()); @@ -52,35 +50,23 @@ mod tests { insta::assert_snapshot!(output); } - #[test] - fn test_downloads_ui_renders_with_downloads() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::Downloads.into()); - app.data.sonarr_data.downloads = StatefulTable::default(); - app.data.sonarr_data.downloads.set_items(vec![ - DownloadRecord { - id: 1, - title: "Test Series Download".to_owned(), - status: Default::default(), - size: 1024.0 * 1024.0 * 1024.0, - sizeleft: 512.0 * 1024.0 * 1024.0, - ..DownloadRecord::default() - }, - DownloadRecord { - id: 2, - title: "Another Series Download".to_owned(), - status: Default::default(), - size: 2048.0 * 1024.0 * 1024.0, - sizeleft: 0.0, - ..DownloadRecord::default() - }, - ]); + #[rstest] + fn test_downloads_ui_renders( + #[values( + ActiveSonarrBlock::Downloads, + ActiveSonarrBlock::DeleteDownloadPrompt, + ActiveSonarrBlock::UpdateDownloadsPrompt + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { DownloadsUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!(format!("downloads_ui_{active_sonarr_block}"), output); } } } diff --git a/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_DeleteDownloadPrompt.snap b/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_DeleteDownloadPrompt.snap new file mode 100644 index 0000000..c5f7dae --- /dev/null +++ b/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_DeleteDownloadPrompt.snap @@ -0,0 +1,38 @@ +--- +source: src/ui/sonarr_ui/downloads/downloads_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title Percent Complete Size Output Path Indexer Download Client +=> Test Download Title 50% 3.30 GB /nfs/tv/Test show/season 1/ kickass torrents transmission + + + + + + + + + + + + + + ╭──────────────────── Cancel Download ────────────────────╮ + │ Do you really want to delete this download: │ + │ Test Download Title? │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭────────────────────────────╮╭───────────────────────────╮│ + ││ Yes ││ No ││ + │╰────────────────────────────╯╰───────────────────────────╯│ + ╰───────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_renders_with_downloads.snap b/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_Downloads.snap similarity index 75% rename from src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_renders_with_downloads.snap rename to src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_Downloads.snap index 06fb5ed..933b0c9 100644 --- a/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_renders_with_downloads.snap +++ b/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_Downloads.snap @@ -4,5 +4,4 @@ expression: output --- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Title Percent Complete Size Output Path Indexer Download Client -=> Test Series Download 50% 1.00 GB - Another Series Download 100% 2.00 GB +=> Test Download Title 50% 3.30 GB /nfs/tv/Test show/season 1/ kickass torrents transmission diff --git a/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_UpdateDownloadsPrompt.snap b/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_UpdateDownloadsPrompt.snap new file mode 100644 index 0000000..19a85cc --- /dev/null +++ b/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_UpdateDownloadsPrompt.snap @@ -0,0 +1,38 @@ +--- +source: src/ui/sonarr_ui/downloads/downloads_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title Percent Complete Size Output Path Indexer Download Client +=> Test Download Title 50% 3.30 GB /nfs/tv/Test show/season 1/ kickass torrents transmission + + + + + + + + + + + + + + ╭─────────────────── Update Downloads ────────────────────╮ + │ Do you want to update your downloads? │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭────────────────────────────╮╭───────────────────────────╮│ + ││ Yes ││ No ││ + │╰────────────────────────────╯╰───────────────────────────╯│ + ╰───────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_renders_loading_state.snap b/src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_renders_loading.snap similarity index 100% rename from src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/downloads/snapshots/managarr__ui__sonarr_ui__downloads__downloads_ui_tests__tests__snapshot_tests__downloads_ui_renders_loading.snap diff --git a/src/ui/sonarr_ui/history/history_ui_tests.rs b/src/ui/sonarr_ui/history/history_ui_tests.rs index 9c519d1..21ef724 100644 --- a/src/ui/sonarr_ui/history/history_ui_tests.rs +++ b/src/ui/sonarr_ui/history/history_ui_tests.rs @@ -4,8 +4,6 @@ mod tests { use crate::app::App; use crate::models::servarr_data::sonarr::sonarr_data::{ActiveSonarrBlock, HISTORY_BLOCKS}; - use crate::models::sonarr_models::SonarrHistoryItem; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::history::HistoryUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -23,11 +21,12 @@ mod tests { mod snapshot_tests { use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; #[test] - fn test_history_ui_renders_loading_state() { + fn test_history_ui_renders_loading() { let mut app = App::test_default(); app.is_loading = true; app.push_navigation_stack(ActiveSonarrBlock::History.into()); @@ -39,42 +38,42 @@ mod tests { insta::assert_snapshot!(output); } - #[test] - fn test_history_ui_renders_empty_history() { + #[rstest] + fn test_history_ui_renders_empty( + #[values(ActiveSonarrBlock::History, ActiveSonarrBlock::HistoryItemDetails)] + active_sonarr_block: ActiveSonarrBlock, + ) { let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::History.into()); - app.data.sonarr_data.history = StatefulTable::default(); + app.push_navigation_stack(active_sonarr_block.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { HistoryUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!(format!("loading_history_tab_{active_sonarr_block}"), output); } - #[test] - fn test_history_ui_renders_with_history_items() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::History.into()); - app.data.sonarr_data.history = StatefulTable::default(); - app.data.sonarr_data.history.set_items(vec![ - SonarrHistoryItem { - id: 1, - source_title: "Test.Series.S01E01".to_owned().into(), - ..SonarrHistoryItem::default() - }, - SonarrHistoryItem { - id: 2, - source_title: "Another.Series.S02E05".to_owned().into(), - ..SonarrHistoryItem::default() - }, - ]); + #[rstest] + fn test_history_ui_renders( + #[values( + ActiveSonarrBlock::History, + ActiveSonarrBlock::HistoryItemDetails, + ActiveSonarrBlock::HistorySortPrompt, + ActiveSonarrBlock::FilterHistory, + ActiveSonarrBlock::FilterHistoryError, + ActiveSonarrBlock::SearchHistory, + ActiveSonarrBlock::SearchHistoryError + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { HistoryUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!(format!("history_tab_{active_sonarr_block}"), output); } } } diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_FilterHistory.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_FilterHistory.snap new file mode 100644 index 0000000..fd21b4e --- /dev/null +++ b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_FilterHistory.snap @@ -0,0 +1,28 @@ +--- +source: src/ui/sonarr_ui/history/history_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Source Title ▼ Event Type Language Quality Date +=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + + + + + + + + + ╭───────────────── Filter ──────────────────╮ + │test filter │ + ╰─────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_FilterHistoryError.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_FilterHistoryError.snap new file mode 100644 index 0000000..5e35a5a --- /dev/null +++ b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_FilterHistoryError.snap @@ -0,0 +1,31 @@ +--- +source: src/ui/sonarr_ui/history/history_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Source Title ▼ Event Type Language Quality Date +=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + + + + + + + + + + + ╭─────────────── Error ───────────────╮ + │The given filter produced empty results│ + │ │ + ╰───────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_with_history_items.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_History.snap similarity index 54% rename from src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_with_history_items.snap rename to src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_History.snap index ff6f39f..b28692c 100644 --- a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_with_history_items.snap +++ b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_History.snap @@ -3,6 +3,5 @@ source: src/ui/sonarr_ui/history/history_ui_tests.rs expression: output --- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── - Source Title Event Type Language Quality Date -=> Test.Series.S01E01 unknown 1970-01-01 00:00:00 UTC - Another.Series.S02E05 unknown 1970-01-01 00:00:00 UTC + Source Title ▼ Event Type Language Quality Date +=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_HistoryItemDetails.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_HistoryItemDetails.snap new file mode 100644 index 0000000..77e2c98 --- /dev/null +++ b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_HistoryItemDetails.snap @@ -0,0 +1,34 @@ +--- +source: src/ui/sonarr_ui/history/history_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Source Title ▼ Event Type Language Quality Date +=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + + + + + + + + ╭─────────────────────────────────── Details ───────────────────────────────────╮ + │Source Title: Test source │ + │Indexer: │ + │Release Group: │ + │Series Match Type: │ + │NZB Info URL: │ + │Download Client Name: │ + │Age: 0 days │ + │Published Date: 1970-01-01 00:00:00 UTC │ + ╰─────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_HistorySortPrompt.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_HistorySortPrompt.snap new file mode 100644 index 0000000..1d784c9 --- /dev/null +++ b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_HistorySortPrompt.snap @@ -0,0 +1,42 @@ +--- +source: src/ui/sonarr_ui/history/history_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Source Title Event Type Language Quality Date +=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + ╭───────────────────────────────╮ + │Something │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────╯ diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_SearchHistory.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_SearchHistory.snap new file mode 100644 index 0000000..f7923ef --- /dev/null +++ b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_SearchHistory.snap @@ -0,0 +1,28 @@ +--- +source: src/ui/sonarr_ui/history/history_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Source Title ▼ Event Type Language Quality Date +=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + + + + + + + + + ╭───────────────── Search ──────────────────╮ + │test search │ + ╰─────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_SearchHistoryError.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_SearchHistoryError.snap new file mode 100644 index 0000000..21e184f --- /dev/null +++ b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_tab_SearchHistoryError.snap @@ -0,0 +1,31 @@ +--- +source: src/ui/sonarr_ui/history/history_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Source Title ▼ Event Type Language Quality Date +=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC + + + + + + + + + + + + + + + + + + + + + ╭─────────────── Error ───────────────╮ + │ No items found matching search │ + │ │ + ╰───────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_loading_state.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_loading.snap similarity index 100% rename from src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_loading.snap diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_empty_history.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__loading_history_tab_History.snap similarity index 100% rename from src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__history_ui_renders_empty_history.snap rename to src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__loading_history_tab_History.snap diff --git a/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__loading_history_tab_HistoryItemDetails.snap b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__loading_history_tab_HistoryItemDetails.snap new file mode 100644 index 0000000..71155ea --- /dev/null +++ b/src/ui/sonarr_ui/history/snapshots/managarr__ui__sonarr_ui__history__history_ui_tests__tests__snapshot_tests__loading_history_tab_HistoryItemDetails.snap @@ -0,0 +1,34 @@ +--- +source: src/ui/sonarr_ui/history/history_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + ╭─────────────────────────────────── Details ───────────────────────────────────╮ + │Source Title: │ + │ │ + │No additional data available │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰─────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/edit_indexer_ui_tests.rs b/src/ui/sonarr_ui/indexers/edit_indexer_ui_tests.rs index e53fbf0..a1ed716 100644 --- a/src/ui/sonarr_ui/indexers/edit_indexer_ui_tests.rs +++ b/src/ui/sonarr_ui/indexers/edit_indexer_ui_tests.rs @@ -4,16 +4,13 @@ mod tests { use crate::app::App; use crate::models::BlockSelectionState; - use crate::models::servarr_data::modals::EditIndexerModal; use crate::models::servarr_data::sonarr::sonarr_data::{ ActiveSonarrBlock, EDIT_INDEXER_BLOCKS, EDIT_INDEXER_TORRENT_SELECTION_BLOCKS, }; - use crate::models::servarr_models::{Indexer, IndexerField}; - use crate::models::stateful_table::StatefulTable; + use crate::models::servarr_models::Indexer; use crate::ui::DrawUi; use crate::ui::sonarr_ui::indexers::edit_indexer_ui::EditIndexerUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; - use serde_json::json; #[test] fn test_edit_indexer_ui_accepts() { @@ -27,39 +24,52 @@ mod tests { } mod snapshot_tests { + use crate::models::servarr_data::sonarr::sonarr_data::EDIT_INDEXER_NZB_SELECTION_BLOCKS; + use crate::network::sonarr_network::sonarr_network_test_utils::test_utils::indexer; use crate::ui::ui_test_utils::test_utils::TerminalSize; use super::*; #[test] - fn test_edit_indexer_ui_renders_edit_indexer_modal() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::EditIndexerNameInput.into()); - app.data.sonarr_data.indexers = StatefulTable::default(); - app.data.sonarr_data.indexers.set_items(vec![Indexer { - id: 1, - name: Some("Test Indexer".to_owned()), - enable_rss: true, - priority: 25, - fields: Some(vec![ - IndexerField { - name: Some("baseUrl".to_owned()), - value: Some(json!("https://test.indexer.com")), - }, - IndexerField { - name: Some("apiKey".to_owned()), - value: Some(json!("test-api-key")), - }, - IndexerField { - name: Some("seedCriteria.seedRatio".to_owned()), - value: Some(json!(1.0)), - }, - ]), - ..Indexer::default() - }]); + fn test_edit_indexer_ui_renders_loading() { + let mut app = App::test_default_fully_populated(); + app.is_loading = true; + app.data.sonarr_data.edit_indexer_modal = None; + app.push_navigation_stack(ActiveSonarrBlock::EditIndexerPrompt.into()); app.data.sonarr_data.selected_block = BlockSelectionState::new(EDIT_INDEXER_TORRENT_SELECTION_BLOCKS); - app.data.sonarr_data.edit_indexer_modal = Some(EditIndexerModal::from(&app.data.sonarr_data)); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + EditIndexerUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_edit_indexer_ui_renders_edit_torrent_indexer() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::EditIndexerPrompt.into()); + app.data.sonarr_data.selected_block = + BlockSelectionState::new(EDIT_INDEXER_TORRENT_SELECTION_BLOCKS); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + EditIndexerUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_edit_indexer_ui_renders_edit_usenet_indexer() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::EditIndexerPrompt.into()); + app.data.sonarr_data.indexers.set_items(vec![Indexer { + protocol: "usenet".into(), + ..indexer() + }]); + app.data.sonarr_data.selected_block = + BlockSelectionState::new(EDIT_INDEXER_NZB_SELECTION_BLOCKS); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { EditIndexerUi::draw(f, app, f.area()); diff --git a/src/ui/sonarr_ui/indexers/indexer_settings_ui_tests.rs b/src/ui/sonarr_ui/indexers/indexer_settings_ui_tests.rs index 26b0e08..884d0ee 100644 --- a/src/ui/sonarr_ui/indexers/indexer_settings_ui_tests.rs +++ b/src/ui/sonarr_ui/indexers/indexer_settings_ui_tests.rs @@ -7,7 +7,6 @@ mod tests { use crate::models::servarr_data::sonarr::sonarr_data::{ ActiveSonarrBlock, INDEXER_SETTINGS_BLOCKS, INDEXER_SETTINGS_SELECTION_BLOCKS, }; - use crate::models::sonarr_models::IndexerSettings; use crate::ui::DrawUi; use crate::ui::sonarr_ui::indexers::indexer_settings_ui::IndexerSettingsUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -30,11 +29,10 @@ mod tests { #[test] fn test_indexer_settings_ui_renders_indexer_settings() { - let mut app = App::test_default(); + let mut app = App::test_default_fully_populated(); app.push_navigation_stack(ActiveSonarrBlock::IndexerSettingsMinimumAgeInput.into()); app.data.sonarr_data.selected_block = BlockSelectionState::new(INDEXER_SETTINGS_SELECTION_BLOCKS); - app.data.sonarr_data.indexer_settings = Some(IndexerSettings::default()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { IndexerSettingsUi::draw(f, app, f.area()); diff --git a/src/ui/sonarr_ui/indexers/indexers_ui_tests.rs b/src/ui/sonarr_ui/indexers/indexers_ui_tests.rs index 72c3bf6..0db0575 100644 --- a/src/ui/sonarr_ui/indexers/indexers_ui_tests.rs +++ b/src/ui/sonarr_ui/indexers/indexers_ui_tests.rs @@ -7,7 +7,6 @@ mod tests { ActiveSonarrBlock, EDIT_INDEXER_BLOCKS, INDEXER_SETTINGS_BLOCKS, INDEXERS_BLOCKS, }; use crate::models::servarr_models::Indexer; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::indexers::IndexersUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -30,13 +29,19 @@ mod tests { } mod snapshot_tests { + use crate::models::BlockSelectionState; + use crate::models::servarr_data::sonarr::sonarr_data::{ + EDIT_INDEXER_NZB_SELECTION_BLOCKS, EDIT_INDEXER_TORRENT_SELECTION_BLOCKS, + }; + use crate::network::sonarr_network::sonarr_network_test_utils::test_utils::indexer; use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; #[test] - fn test_indexers_ui_renders_loading_state() { - let mut app = App::test_default(); + fn test_indexers_ui_renders_loading() { + let mut app = App::test_default_fully_populated(); app.is_loading = true; app.push_navigation_stack(ActiveSonarrBlock::Indexers.into()); @@ -47,11 +52,67 @@ mod tests { insta::assert_snapshot!(output); } + #[test] + fn test_indexers_ui_renders_loading_test_results() { + let mut app = App::test_default_fully_populated(); + app.is_loading = true; + app.push_navigation_stack(ActiveSonarrBlock::TestIndexer.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + IndexersUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_indexers_ui_renders_loading_test_results_when_indexer_test_errors_is_none() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::TestIndexer.into()); + app.data.sonarr_data.indexer_test_errors = None; + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + IndexersUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + #[test] fn test_indexers_ui_renders_empty_indexers() { let mut app = App::test_default(); app.push_navigation_stack(ActiveSonarrBlock::Indexers.into()); - app.data.sonarr_data.indexers = StatefulTable::default(); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + IndexersUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[rstest] + fn test_indexers_ui_renders( + #[values( + ActiveSonarrBlock::DeleteIndexerPrompt, + ActiveSonarrBlock::Indexers, + ActiveSonarrBlock::TestIndexer + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + IndexersUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(format!("indexers_ui_{active_sonarr_block}"), output); + } + + #[test] + fn test_indexers_ui_renders_test_all_over_indexers() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::TestAllIndexers.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { IndexersUi::draw(f, app, f.area()); @@ -61,27 +122,29 @@ mod tests { } #[test] - fn test_indexers_ui_renders_with_indexers() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::Indexers.into()); - app.data.sonarr_data.indexers = StatefulTable::default(); - app.data.sonarr_data.indexers.set_items(vec![ - Indexer { - id: 1, - name: Some("Test Indexer 1".to_owned()), - enable_rss: true, - enable_automatic_search: true, - enable_interactive_search: true, - priority: 25, - ..Indexer::default() - }, - Indexer { - id: 2, - name: Some("Test Indexer 2".to_owned()), - enable_rss: false, - ..Indexer::default() - }, - ]); + fn test_indexers_ui_renders_edit_usenet_indexer_over_indexers() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::EditIndexerPrompt.into()); + app.data.sonarr_data.selected_block = + BlockSelectionState::new(EDIT_INDEXER_NZB_SELECTION_BLOCKS); + app.data.sonarr_data.indexers.set_items(vec![Indexer { + protocol: "usenet".into(), + ..indexer() + }]); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + IndexersUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_indexers_ui_renders_edit_torrent_indexer_over_indexers() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::EditIndexerPrompt.into()); + app.data.sonarr_data.selected_block = + BlockSelectionState::new(EDIT_INDEXER_TORRENT_SELECTION_BLOCKS); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { IndexersUi::draw(f, app, f.area()); diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_torrent_indexer.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_torrent_indexer.snap new file mode 100644 index 0000000..a0b6c2a --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_torrent_indexer.snap @@ -0,0 +1,42 @@ +--- +source: src/ui/sonarr_ui/indexers/edit_indexer_ui_tests.rs +expression: output +--- + + + + + + + + + + + + + + ╭──────────────────────────────────────────────── Edit Indexer ─────────────────────────────────────────────────╮ + │ │ + │ ╭─────────────────────────╮ ╭─────────────────────────╮ │ + │ Name: │DrunkenSlug │ URL: │http://127.0.0.1:9696/1/ │ │ + │ ╰─────────────────────────╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable RSS: │ ✔ │ API Key: │someApiKey │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable Automatic Search: │ ✔ │ Seed Ratio: │ratio │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable Interactive Search: │ ✔ │ Tags: │25 │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ ╭─────────────────────────╮ │ + │ Indexer Priority ▴▾: │1 │ │ + │ ╰─────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───────────────────────────╮╭──────────────────────────╮ │ + │ │ Save ││ Cancel │ │ + │ ╰───────────────────────────╯╰──────────────────────────╯ │ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_indexer_modal.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_usenet_indexer.snap similarity index 91% rename from src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_indexer_modal.snap rename to src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_usenet_indexer.snap index 2491012..896e728 100644 --- a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_indexer_modal.snap +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_edit_usenet_indexer.snap @@ -18,16 +18,16 @@ expression: output ╭──────────────────────────────────────────────── Edit Indexer ─────────────────────────────────────────────────╮ │ │ │ ╭─────────────────────────╮ ╭─────────────────────────╮ │ - │ Name: │Test Indexer │ URL: │https://test.indexer.com │ │ + │ Name: │DrunkenSlug │ URL: │http://127.0.0.1:9696/1/ │ │ │ ╰─────────────────────────╯ ╰─────────────────────────╯ │ │ ╭───╮ ╭─────────────────────────╮ │ - │ Enable RSS: │ ✔ │ API Key: │test-api-key │ │ + │ Enable RSS: │ ✔ │ API Key: │someApiKey │ │ │ ╰───╯ ╰─────────────────────────╯ │ │ ╭───╮ ╭─────────────────────────╮ │ - │ Enable Automatic Search: │ │ Tags: │ │ │ + │ Enable Automatic Search: │ ✔ │ Tags: │25 │ │ │ ╰───╯ ╰─────────────────────────╯ │ │ ╭───╮ ╭─────────────────────────╮ │ - │ Enable Interactive Search: │ │ Indexer Priority ▴▾: │25 │ │ + │ Enable Interactive Search: │ ✔ │ Indexer Priority ▴▾: │1 │ │ │ ╰───╯ ╰─────────────────────────╯ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_loading.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_loading.snap new file mode 100644 index 0000000..2d1f45a --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__edit_indexer_ui__edit_indexer_ui_tests__tests__snapshot_tests__edit_indexer_ui_renders_loading.snap @@ -0,0 +1,42 @@ +--- +source: src/ui/sonarr_ui/indexers/edit_indexer_ui_tests.rs +expression: output +--- + + + + + + + + + + + + + + ╭──────────────────────────────────────────────── Edit Indexer ─────────────────────────────────────────────────╮ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexer_settings_ui__indexer_settings_ui_tests__tests__snapshot_tests__indexer_settings_ui_renders_indexer_settings.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexer_settings_ui__indexer_settings_ui_tests__tests__snapshot_tests__indexer_settings_ui_renders_indexer_settings.snap index f2cf85f..5452cda 100644 --- a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexer_settings_ui__indexer_settings_ui_tests__tests__snapshot_tests__indexer_settings_ui_renders_indexer_settings.snap +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexer_settings_ui__indexer_settings_ui_tests__tests__snapshot_tests__indexer_settings_ui_renders_indexer_settings.snap @@ -21,16 +21,16 @@ expression: output │ │ │ │ │ ╭────────────────────────────────╮ │ - │ Minimum Age (minutes) ▴▾: │0 │ │ + │ Minimum Age (minutes) ▴▾: │1 │ │ │ ╰────────────────────────────────╯ │ │ ╭────────────────────────────────╮ │ - │ Retention (days) ▴▾: │0 │ │ + │ Retention (days) ▴▾: │1 │ │ │ ╰────────────────────────────────╯ │ │ ╭────────────────────────────────╮ │ - │ Maximum Size (MB) ▴▾: │0 │ │ + │ Maximum Size (MB) ▴▾: │12345 │ │ │ ╰────────────────────────────────╯ │ │ ╭────────────────────────────────╮ │ - │ RSS Sync Interval (minutes) ▴▾: │0 │ │ + │ RSS Sync Interval (minutes) ▴▾: │60 │ │ │ ╰────────────────────────────────╯ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_DeleteIndexerPrompt.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_DeleteIndexerPrompt.snap new file mode 100644 index 0000000..4bbef8a --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_DeleteIndexerPrompt.snap @@ -0,0 +1,38 @@ +--- +source: src/ui/sonarr_ui/indexers/indexers_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Indexer RSS Automatic Search Interactive Search Priority Tags +=> Test Indexer Enabled Enabled Enabled 25 alex + + + + + + + + + + + + + + ╭──────────────────── Delete Indexer ─────────────────────╮ + │ Do you really want to delete this indexer: │ + │ Test Indexer? │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭────────────────────────────╮╭───────────────────────────╮│ + ││ Yes ││ No ││ + │╰────────────────────────────╯╰───────────────────────────╯│ + ╰───────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_with_indexers.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_Indexers.snap similarity index 79% rename from src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_with_indexers.snap rename to src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_Indexers.snap index e07f3a5..5392f4e 100644 --- a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_with_indexers.snap +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_Indexers.snap @@ -4,5 +4,4 @@ expression: output --- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Indexer RSS Automatic Search Interactive Search Priority Tags -=> Test Indexer 1 Enabled Enabled Enabled 25 - Test Indexer 2 Disabled Disabled Disabled 0 +=> Test Indexer Enabled Enabled Enabled 25 alex diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_TestIndexer.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_TestIndexer.snap new file mode 100644 index 0000000..d7d1ec7 --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_TestIndexer.snap @@ -0,0 +1,35 @@ +--- +source: src/ui/sonarr_ui/indexers/indexers_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Indexer RSS Automatic Search Interactive Search Priority Tags +=> Test Indexer Enabled Enabled Enabled 25 alex + + + + + + + + + + + + + + + + + ╭─────────────── Error ───────────────╮ + │ error │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_edit_torrent_indexer_over_indexers.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_edit_torrent_indexer_over_indexers.snap new file mode 100644 index 0000000..d29787f --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_edit_torrent_indexer_over_indexers.snap @@ -0,0 +1,42 @@ +--- +source: src/ui/sonarr_ui/indexers/indexers_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Indexer RSS Automatic Search Interactive Search Priority Tags +=> Test Indexer Enabled Enabled Enabled 25 alex + + + + + + + + + + + ╭──────────────────────────────────────────────── Edit Indexer ─────────────────────────────────────────────────╮ + │ │ + │ ╭─────────────────────────╮ ╭─────────────────────────╮ │ + │ Name: │DrunkenSlug │ URL: │http://127.0.0.1:9696/1/ │ │ + │ ╰─────────────────────────╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable RSS: │ ✔ │ API Key: │someApiKey │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable Automatic Search: │ ✔ │ Seed Ratio: │ratio │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable Interactive Search: │ ✔ │ Tags: │25 │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ ╭─────────────────────────╮ │ + │ Indexer Priority ▴▾: │1 │ │ + │ ╰─────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───────────────────────────╮╭──────────────────────────╮ │ + │ │ Save ││ Cancel │ │ + │ ╰───────────────────────────╯╰──────────────────────────╯ │ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_edit_usenet_indexer_over_indexers.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_edit_usenet_indexer_over_indexers.snap new file mode 100644 index 0000000..585f82b --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_edit_usenet_indexer_over_indexers.snap @@ -0,0 +1,42 @@ +--- +source: src/ui/sonarr_ui/indexers/indexers_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Indexer RSS Automatic Search Interactive Search Priority Tags +=> Test Indexer Enabled Enabled Enabled 25 alex + + + + + + + + + + + ╭──────────────────────────────────────────────── Edit Indexer ─────────────────────────────────────────────────╮ + │ │ + │ ╭─────────────────────────╮ ╭─────────────────────────╮ │ + │ Name: │DrunkenSlug │ URL: │http://127.0.0.1:9696/1/ │ │ + │ ╰─────────────────────────╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable RSS: │ ✔ │ API Key: │someApiKey │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable Automatic Search: │ ✔ │ Tags: │25 │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ ╭───╮ ╭─────────────────────────╮ │ + │ Enable Interactive Search: │ ✔ │ Indexer Priority ▴▾: │1 │ │ + │ ╰───╯ ╰─────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───────────────────────────╮╭──────────────────────────╮ │ + │ │ Save ││ Cancel │ │ + │ ╰───────────────────────────╯╰──────────────────────────╯ │ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading_state.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading.snap similarity index 100% rename from src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading.snap diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading_test_results.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading_test_results.snap new file mode 100644 index 0000000..d9d8ee2 --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading_test_results.snap @@ -0,0 +1,35 @@ +--- +source: src/ui/sonarr_ui/indexers/indexers_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + + + Loading ... + + + + + + + + + + + + + + + + ╭ Testing Indexer ────────────────────╮ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading_test_results_when_indexer_test_errors_is_none.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading_test_results_when_indexer_test_errors_is_none.snap new file mode 100644 index 0000000..f893fed --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_loading_test_results_when_indexer_test_errors_is_none.snap @@ -0,0 +1,35 @@ +--- +source: src/ui/sonarr_ui/indexers/indexers_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Indexer RSS Automatic Search Interactive Search Priority Tags +=> Test Indexer Enabled Enabled Enabled 25 alex + + + + + + + + + + + + + + + + + ╭ Testing Indexer ────────────────────╮ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_test_all_over_indexers.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_test_all_over_indexers.snap new file mode 100644 index 0000000..a18b8a2 --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__indexers_ui_tests__tests__snapshot_tests__indexers_ui_renders_test_all_over_indexers.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/indexers/indexers_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Indexer RSS Automatic Search Interactive Search Priority Tags +=> Test Indexer Enabled Enabled Enabled 25 alex + + + + ╭ Test All Indexers ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Indexer Pass/Fail Failure Messages │ + │=> DrunkenSlug ❌ Some failure │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__test_all_indexers_ui__test_all_indexers_ui_tests__tests__snapshot_tests__test_all_indexers_ui_renders.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__test_all_indexers_ui__test_all_indexers_ui_tests__tests__snapshot_tests__test_all_indexers_ui_renders.snap new file mode 100644 index 0000000..9312f77 --- /dev/null +++ b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__test_all_indexers_ui__test_all_indexers_ui_tests__tests__snapshot_tests__test_all_indexers_ui_renders.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/indexers/test_all_indexers_ui_tests.rs +expression: output +--- + + + + + + + ╭ Test All Indexers ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Indexer Pass/Fail Failure Messages │ + │=> DrunkenSlug ❌ Some failure │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__test_all_indexers_ui__test_all_indexers_ui_tests__tests__snapshot_tests__test_all_indexers_ui_renders_loading_state.snap b/src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__test_all_indexers_ui__test_all_indexers_ui_tests__tests__snapshot_tests__test_all_indexers_ui_renders_loading.snap similarity index 100% rename from src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__test_all_indexers_ui__test_all_indexers_ui_tests__tests__snapshot_tests__test_all_indexers_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/indexers/snapshots/managarr__ui__sonarr_ui__indexers__test_all_indexers_ui__test_all_indexers_ui_tests__tests__snapshot_tests__test_all_indexers_ui_renders_loading.snap diff --git a/src/ui/sonarr_ui/indexers/test_all_indexers_ui_tests.rs b/src/ui/sonarr_ui/indexers/test_all_indexers_ui_tests.rs index f8152da..695ab20 100644 --- a/src/ui/sonarr_ui/indexers/test_all_indexers_ui_tests.rs +++ b/src/ui/sonarr_ui/indexers/test_all_indexers_ui_tests.rs @@ -25,8 +25,8 @@ mod tests { use super::*; #[test] - fn test_test_all_indexers_ui_renders_loading_state() { - let mut app = App::test_default(); + fn test_test_all_indexers_ui_renders_loading() { + let mut app = App::test_default_fully_populated(); app.is_loading = true; app.push_navigation_stack(ActiveSonarrBlock::TestAllIndexers.into()); @@ -36,5 +36,17 @@ mod tests { insta::assert_snapshot!(output); } + + #[test] + fn test_test_all_indexers_ui_renders() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::TestAllIndexers.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + TestAllIndexersUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } } } diff --git a/src/ui/sonarr_ui/library/add_series_ui_tests.rs b/src/ui/sonarr_ui/library/add_series_ui_tests.rs index f907de4..40974db 100644 --- a/src/ui/sonarr_ui/library/add_series_ui_tests.rs +++ b/src/ui/sonarr_ui/library/add_series_ui_tests.rs @@ -21,15 +21,18 @@ mod tests { } mod snapshot_tests { + use crate::models::BlockSelectionState; + use crate::models::servarr_data::sonarr::sonarr_data::ADD_SERIES_SELECTION_BLOCKS; use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; #[test] - fn test_add_series_ui_renders_loading_state() { - let mut app = App::test_default(); + fn test_add_series_ui_renders_loading_search() { + let mut app = App::test_default_fully_populated(); app.is_loading = true; - app.push_navigation_stack(ActiveSonarrBlock::AddSeriesSearchInput.into()); + app.push_navigation_stack(ActiveSonarrBlock::AddSeriesSearchResults.into()); app.data.sonarr_data.add_series_search = Some(HorizontallyScrollableText::default()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { @@ -39,17 +42,30 @@ mod tests { insta::assert_snapshot!(output); } - #[test] - fn test_add_series_ui_renders_search_input() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::AddSeriesSearchInput.into()); - app.data.sonarr_data.add_series_search = Some(HorizontallyScrollableText::default()); + #[rstest] + fn test_add_series_ui_renders( + #[values( + ActiveSonarrBlock::AddSeriesAlreadyInLibrary, + ActiveSonarrBlock::AddSeriesEmptySearchResults, + ActiveSonarrBlock::AddSeriesPrompt, + ActiveSonarrBlock::AddSeriesSearchResults, + ActiveSonarrBlock::AddSeriesSelectLanguageProfile, + ActiveSonarrBlock::AddSeriesSelectMonitor, + ActiveSonarrBlock::AddSeriesSelectQualityProfile, + ActiveSonarrBlock::AddSeriesSelectRootFolder, + ActiveSonarrBlock::AddSeriesSelectSeriesType + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + app.data.sonarr_data.selected_block = BlockSelectionState::new(ADD_SERIES_SELECTION_BLOCKS); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { AddSeriesUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!(format!("add_series_ui_{active_sonarr_block}"), output); } } } diff --git a/src/ui/sonarr_ui/library/delete_series_ui_tests.rs b/src/ui/sonarr_ui/library/delete_series_ui_tests.rs index 18243bd..a28501e 100644 --- a/src/ui/sonarr_ui/library/delete_series_ui_tests.rs +++ b/src/ui/sonarr_ui/library/delete_series_ui_tests.rs @@ -7,8 +7,6 @@ mod tests { use crate::models::servarr_data::sonarr::sonarr_data::{ ActiveSonarrBlock, DELETE_SERIES_BLOCKS, DELETE_SERIES_SELECTION_BLOCKS, }; - use crate::models::sonarr_models::Series; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::library::delete_series_ui::DeleteSeriesUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -30,15 +28,9 @@ mod tests { use super::*; #[test] - fn test_delete_series_ui_renders_delete_series_toggle() { - let mut app = App::test_default(); + fn test_delete_series_ui_renders_delete_series() { + let mut app = App::test_default_fully_populated(); app.push_navigation_stack(ActiveSonarrBlock::DeleteSeriesPrompt.into()); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - id: 1, - title: "Test Series".into(), - ..Series::default() - }]); app.data.sonarr_data.selected_block = BlockSelectionState::new(DELETE_SERIES_SELECTION_BLOCKS); diff --git a/src/ui/sonarr_ui/library/edit_series_ui_tests.rs b/src/ui/sonarr_ui/library/edit_series_ui_tests.rs index 1bc62f3..c6961db 100644 --- a/src/ui/sonarr_ui/library/edit_series_ui_tests.rs +++ b/src/ui/sonarr_ui/library/edit_series_ui_tests.rs @@ -1,16 +1,12 @@ #[cfg(test)] mod tests { - use bimap::BiMap; use strum::IntoEnumIterator; use crate::app::App; use crate::models::BlockSelectionState; - use crate::models::servarr_data::sonarr::modals::EditSeriesModal; use crate::models::servarr_data::sonarr::sonarr_data::{ ActiveSonarrBlock, EDIT_SERIES_BLOCKS, EDIT_SERIES_SELECTION_BLOCKS, }; - use crate::models::sonarr_models::Series; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::library::edit_series_ui::EditSeriesUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -28,33 +24,56 @@ mod tests { mod snapshot_tests { use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; - #[test] - fn test_edit_series_ui_renders_edit_series_modal() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::EditSeriesPathInput.into()); - app.data.sonarr_data.quality_profile_map = BiMap::from_iter(vec![(1, "HD-1080p".to_owned())]); - app.data.sonarr_data.language_profiles_map = - BiMap::from_iter(vec![(1, "English".to_owned())]); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - id: 1, - title: "Test Series".into(), - path: "/tv/test".to_owned(), - quality_profile_id: 1, - language_profile_id: 1, - ..Series::default() - }]); + #[rstest] + #[case(ActiveSonarrBlock::EditSeriesPrompt, None)] + #[case(ActiveSonarrBlock::EditSeriesConfirmPrompt, None)] + #[case(ActiveSonarrBlock::EditSeriesSelectSeriesType, None)] + #[case(ActiveSonarrBlock::EditSeriesSelectQualityProfile, None)] + #[case(ActiveSonarrBlock::EditSeriesSelectLanguageProfile, None)] + #[case( + ActiveSonarrBlock::EditSeriesPrompt, + Some(ActiveSonarrBlock::SeriesDetails) + )] + #[case( + ActiveSonarrBlock::EditSeriesConfirmPrompt, + Some(ActiveSonarrBlock::SeriesDetails) + )] + #[case( + ActiveSonarrBlock::EditSeriesSelectSeriesType, + Some(ActiveSonarrBlock::SeriesDetails) + )] + #[case( + ActiveSonarrBlock::EditSeriesSelectQualityProfile, + Some(ActiveSonarrBlock::SeriesDetails) + )] + #[case( + ActiveSonarrBlock::EditSeriesSelectLanguageProfile, + Some(ActiveSonarrBlock::SeriesDetails) + )] + fn test_edit_series_ui_renders( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] context: Option, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack((active_sonarr_block, context).into()); app.data.sonarr_data.selected_block = BlockSelectionState::new(EDIT_SERIES_SELECTION_BLOCKS); - app.data.sonarr_data.edit_series_modal = Some(EditSeriesModal::from(&app.data.sonarr_data)); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { EditSeriesUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + if let Some(context) = context { + insta::assert_snapshot!( + format!("edit_series_{active_sonarr_block}_{context}"), + output + ); + } else { + insta::assert_snapshot!(format!("edit_series_{active_sonarr_block}"), output); + } } } } diff --git a/src/ui/sonarr_ui/library/episode_details_ui.rs b/src/ui/sonarr_ui/library/episode_details_ui.rs index afc7dbf..af07c2f 100644 --- a/src/ui/sonarr_ui/library/episode_details_ui.rs +++ b/src/ui/sonarr_ui/library/episode_details_ui.rs @@ -194,60 +194,60 @@ fn draw_episode_details(f: &mut Frame<'_>, app: &App<'_>, area: Rect) { fn draw_file_info(f: &mut Frame<'_>, app: &App<'_>, area: Rect) { match app.data.sonarr_data.season_details_modal.as_ref() { - Some(season_details_modal) => match season_details_modal.episode_details_modal.as_ref() { - Some(episode_details_modal) - if !episode_details_modal.file_details.is_empty() && !app.is_loading => - { - let file_info = episode_details_modal.file_details.to_owned(); - let audio_details = episode_details_modal.audio_details.to_owned(); - let video_details = episode_details_modal.video_details.to_owned(); - let [ - file_details_title_area, - file_details_area, - audio_details_title_area, - audio_details_area, - video_details_title_area, - video_details_area, - ] = Layout::vertical([ - Constraint::Length(2), - Constraint::Length(5), - Constraint::Length(1), - Constraint::Length(6), - Constraint::Length(1), - Constraint::Length(7), - ]) - .areas(area); + Some(season_details_modal) if !app.is_loading => { + match season_details_modal.episode_details_modal.as_ref() { + Some(episode_details_modal) if !episode_details_modal.file_details.is_empty() => { + let file_info = episode_details_modal.file_details.to_owned(); + let audio_details = episode_details_modal.audio_details.to_owned(); + let video_details = episode_details_modal.video_details.to_owned(); + let [ + file_details_title_area, + file_details_area, + audio_details_title_area, + audio_details_area, + video_details_title_area, + video_details_area, + ] = Layout::vertical([ + Constraint::Length(2), + Constraint::Length(5), + Constraint::Length(1), + Constraint::Length(6), + Constraint::Length(1), + Constraint::Length(7), + ]) + .areas(area); - let file_details_title_paragraph = - Paragraph::new("File Details".bold()).block(layout_block_top_border()); - let audio_details_title_paragraph = - Paragraph::new("Audio Details".bold()).block(borderless_block()); - let video_details_title_paragraph = - Paragraph::new("Video Details".bold()).block(borderless_block()); + let file_details_title_paragraph = + Paragraph::new("File Details".bold()).block(layout_block_top_border()); + let audio_details_title_paragraph = + Paragraph::new("Audio Details".bold()).block(borderless_block()); + let video_details_title_paragraph = + Paragraph::new("Video Details".bold()).block(borderless_block()); - let file_details = Text::from(file_info); - let audio_details = Text::from(audio_details); - let video_details = Text::from(video_details); + let file_details = Text::from(file_info); + let audio_details = Text::from(audio_details); + let video_details = Text::from(video_details); - let file_details_paragraph = Paragraph::new(file_details) - .block(layout_block_bottom_border()) - .wrap(Wrap { trim: false }); - let audio_details_paragraph = Paragraph::new(audio_details) - .block(layout_block_bottom_border()) - .wrap(Wrap { trim: false }); - let video_details_paragraph = Paragraph::new(video_details) - .block(borderless_block()) - .wrap(Wrap { trim: false }); + let file_details_paragraph = Paragraph::new(file_details) + .block(layout_block_bottom_border()) + .wrap(Wrap { trim: false }); + let audio_details_paragraph = Paragraph::new(audio_details) + .block(layout_block_bottom_border()) + .wrap(Wrap { trim: false }); + let video_details_paragraph = Paragraph::new(video_details) + .block(borderless_block()) + .wrap(Wrap { trim: false }); - f.render_widget(file_details_title_paragraph, file_details_title_area); - f.render_widget(file_details_paragraph, file_details_area); - f.render_widget(audio_details_title_paragraph, audio_details_title_area); - f.render_widget(audio_details_paragraph, audio_details_area); - f.render_widget(video_details_title_paragraph, video_details_title_area); - f.render_widget(video_details_paragraph, video_details_area); + f.render_widget(file_details_title_paragraph, file_details_title_area); + f.render_widget(file_details_paragraph, file_details_area); + f.render_widget(audio_details_title_paragraph, audio_details_title_area); + f.render_widget(audio_details_paragraph, audio_details_area); + f.render_widget(video_details_title_paragraph, video_details_title_area); + f.render_widget(video_details_paragraph, video_details_area); + } + _ => f.render_widget(layout_block_top_border(), area), } - _ => f.render_widget(layout_block_top_border(), area), - }, + } _ => f.render_widget( LoadingBlock::new(app.is_loading, layout_block_top_border()), area, diff --git a/src/ui/sonarr_ui/library/episode_details_ui_tests.rs b/src/ui/sonarr_ui/library/episode_details_ui_tests.rs index d74f2fb..5eb2c4d 100644 --- a/src/ui/sonarr_ui/library/episode_details_ui_tests.rs +++ b/src/ui/sonarr_ui/library/episode_details_ui_tests.rs @@ -3,12 +3,9 @@ mod tests { use strum::IntoEnumIterator; use crate::app::App; - use crate::models::servarr_data::sonarr::modals::{EpisodeDetailsModal, SeasonDetailsModal}; use crate::models::servarr_data::sonarr::sonarr_data::{ ActiveSonarrBlock, EPISODE_DETAILS_BLOCKS, }; - use crate::models::sonarr_models::{Episode, Season, Series}; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::library::episode_details_ui::EpisodeDetailsUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -26,110 +23,121 @@ mod tests { mod snapshot_tests { use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; - #[test] - fn test_episode_details_ui_renders_loading_state() { - let mut app = App::test_default(); + #[rstest] + #[case(ActiveSonarrBlock::EpisodeDetails, 0)] + #[case(ActiveSonarrBlock::EpisodeHistory, 1)] + #[case(ActiveSonarrBlock::EpisodeHistoryDetails, 1)] + #[case(ActiveSonarrBlock::EpisodeFile, 2)] + #[case(ActiveSonarrBlock::ManualEpisodeSearch, 3)] + #[case(ActiveSonarrBlock::ManualEpisodeSearchConfirmPrompt, 3)] + #[case(ActiveSonarrBlock::ManualEpisodeSearchSortPrompt, 3)] + #[case(ActiveSonarrBlock::AutomaticallySearchEpisodePrompt, 0)] + #[case(ActiveSonarrBlock::AutomaticallySearchEpisodePrompt, 1)] + #[case(ActiveSonarrBlock::AutomaticallySearchEpisodePrompt, 2)] + #[case(ActiveSonarrBlock::AutomaticallySearchEpisodePrompt, 3)] + fn test_episode_details_ui_renders( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + app + .data + .sonarr_data + .season_details_modal + .as_mut() + .unwrap() + .episode_details_modal + .as_mut() + .unwrap() + .episode_details_tabs + .set_index(index); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + EpisodeDetailsUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!( + format!("episode_details_{active_sonarr_block}_{index}"), + output + ); + } + + #[rstest] + #[case(ActiveSonarrBlock::EpisodeDetails, 0)] + #[case(ActiveSonarrBlock::EpisodeHistory, 1)] + #[case(ActiveSonarrBlock::EpisodeFile, 2)] + #[case(ActiveSonarrBlock::ManualEpisodeSearch, 3)] + fn test_episode_details_ui_renders_loading( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); app.is_loading = true; - app.push_navigation_stack(ActiveSonarrBlock::EpisodeDetails.into()); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - seasons: Some(vec![Season { - season_number: 1, - ..Season::default() - }]), - ..Series::default() - }]); + app.push_navigation_stack(active_sonarr_block.into()); + app + .data + .sonarr_data + .season_details_modal + .as_mut() + .unwrap() + .episode_details_modal + .as_mut() + .unwrap() + .episode_details_tabs + .set_index(index); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { EpisodeDetailsUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!( + format!("loading_episode_details_{active_sonarr_block}_{index}"), + output + ); } - #[test] - fn test_episode_details_ui_renders_episode_details_tab() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::EpisodeDetails.into()); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - seasons: Some(vec![Season { - season_number: 1, - ..Season::default() - }]), - ..Series::default() - }]); - let mut season_details_modal = SeasonDetailsModal::default(); - season_details_modal - .episodes - .set_items(vec![Episode::default()]); - season_details_modal.episode_details_modal = Some(EpisodeDetailsModal::default()); - app.data.sonarr_data.season_details_modal = Some(season_details_modal); + #[rstest] + #[case(ActiveSonarrBlock::EpisodeDetails, 0)] + #[case(ActiveSonarrBlock::EpisodeHistory, 1)] + #[case(ActiveSonarrBlock::EpisodeHistoryDetails, 1)] + #[case(ActiveSonarrBlock::EpisodeFile, 2)] + #[case(ActiveSonarrBlock::ManualEpisodeSearch, 3)] + fn test_episode_details_ui_renders_empty( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + { + let episode_details_modal = app + .data + .sonarr_data + .season_details_modal + .as_mut() + .unwrap() + .episode_details_modal + .as_mut() + .unwrap(); + episode_details_modal.episode_details_tabs.set_index(index); + episode_details_modal.episode_details = Default::default(); + episode_details_modal.episode_history = Default::default(); + episode_details_modal.file_details = Default::default(); + episode_details_modal.episode_releases = Default::default(); + } let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { EpisodeDetailsUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); - } - - #[test] - fn test_episode_details_ui_renders_episode_history_tab() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::EpisodeDetails.into()); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - seasons: Some(vec![Season { - season_number: 1, - ..Season::default() - }]), - ..Series::default() - }]); - let mut season_details_modal = SeasonDetailsModal::default(); - season_details_modal - .episodes - .set_items(vec![Episode::default()]); - let mut episode_details_modal = EpisodeDetailsModal::default(); - episode_details_modal.episode_details_tabs.set_index(1); - season_details_modal.episode_details_modal = Some(episode_details_modal); - app.data.sonarr_data.season_details_modal = Some(season_details_modal); - - let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { - EpisodeDetailsUi::draw(f, app, f.area()); - }); - - insta::assert_snapshot!(output); - } - - #[test] - fn test_episode_details_ui_renders_manual_search_tab() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::EpisodeDetails.into()); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - seasons: Some(vec![Season { - season_number: 1, - ..Season::default() - }]), - ..Series::default() - }]); - let mut season_details_modal = SeasonDetailsModal::default(); - season_details_modal - .episodes - .set_items(vec![Episode::default()]); - let mut episode_details_modal = EpisodeDetailsModal::default(); - episode_details_modal.episode_details_tabs.set_index(3); - season_details_modal.episode_details_modal = Some(episode_details_modal); - app.data.sonarr_data.season_details_modal = Some(season_details_modal); - - let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { - EpisodeDetailsUi::draw(f, app, f.area()); - }); - - insta::assert_snapshot!(output); + insta::assert_snapshot!( + format!("empty_episode_details_{active_sonarr_block}_{index}"), + output + ); } } } diff --git a/src/ui/sonarr_ui/library/library_ui_tests.rs b/src/ui/sonarr_ui/library/library_ui_tests.rs index 5d5cc2a..7d65fdc 100644 --- a/src/ui/sonarr_ui/library/library_ui_tests.rs +++ b/src/ui/sonarr_ui/library/library_ui_tests.rs @@ -247,18 +247,44 @@ mod tests { } mod snapshot_tests { - use crate::app::App; - use crate::models::servarr_data::sonarr::sonarr_data::ActiveSonarrBlock; + use crate::models::BlockSelectionState; + use crate::models::servarr_data::sonarr::sonarr_data::{ + ADD_SERIES_SELECTION_BLOCKS, ActiveSonarrBlock, DELETE_SERIES_SELECTION_BLOCKS, + EDIT_SERIES_SELECTION_BLOCKS, + }; + use rstest::rstest; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::library::LibraryUi; use crate::ui::ui_test_utils::test_utils::{TerminalSize, render_to_string_with_app}; + #[rstest] + fn test_library_ui_renders( + #[values( + ActiveSonarrBlock::Series, + ActiveSonarrBlock::SeriesSortPrompt, + ActiveSonarrBlock::SearchSeries, + ActiveSonarrBlock::SearchSeriesError, + ActiveSonarrBlock::FilterSeries, + ActiveSonarrBlock::FilterSeriesError, + ActiveSonarrBlock::UpdateAllSeriesPrompt + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + LibraryUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(format!("sonarr_library_{active_sonarr_block}"), output); + } + #[test] - fn test_library_ui_renders_loading_state() { - let mut app = App::test_default(); + fn test_library_ui_renders_loading() { + let mut app = App::test_default_fully_populated(); app.is_loading = true; app.push_navigation_stack(ActiveSonarrBlock::Series.into()); @@ -270,10 +296,9 @@ mod tests { } #[test] - fn test_library_ui_renders_empty_series() { + fn test_library_ui_renders_empty() { let mut app = App::test_default(); app.push_navigation_stack(ActiveSonarrBlock::Series.into()); - app.data.sonarr_data.series = StatefulTable::default(); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { LibraryUi::draw(f, app, f.area()); @@ -283,56 +308,9 @@ mod tests { } #[test] - fn test_library_ui_renders_with_series() { - use crate::models::sonarr_models::{Series, SeriesStatus, SeriesType}; - use crate::models::stateful_table::StatefulTable; - use bimap::BiMap; - - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::Series.into()); - - // Set up quality profile and language profile maps - let mut quality_profile_map = BiMap::new(); - quality_profile_map.insert(1, "HD-1080p".to_owned()); - quality_profile_map.insert(2, "Any".to_owned()); - app.data.sonarr_data.quality_profile_map = quality_profile_map; - - let mut language_profiles_map = BiMap::new(); - language_profiles_map.insert(1, "English".to_owned()); - language_profiles_map.insert(2, "Any".to_owned()); - app.data.sonarr_data.language_profiles_map = language_profiles_map; - - // Create series with data - let mut series_table = StatefulTable::default(); - series_table.set_items(vec![ - Series { - id: 1, - title: "Breaking Bad".into(), - year: 2008, - network: Some("AMC".to_owned()), - status: SeriesStatus::Ended, - monitored: true, - series_type: SeriesType::Standard, - quality_profile_id: 1, - language_profile_id: 1, - seasons: Some(vec![]), - ..Series::default() - }, - Series { - id: 2, - title: "The Wire".into(), - year: 2002, - network: Some("HBO".to_owned()), - status: SeriesStatus::Continuing, - monitored: true, - series_type: SeriesType::Standard, - quality_profile_id: 2, - language_profile_id: 1, - seasons: Some(vec![]), - ..Series::default() - }, - ]); - app.data.sonarr_data.series = series_table; + fn test_library_ui_renders_series_details_over_series() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::SeriesDetails.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { LibraryUi::draw(f, app, f.area()); @@ -342,11 +320,61 @@ mod tests { } #[test] - fn test_library_ui_renders_update_all_series_prompt() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::Series.into()); - app.push_navigation_stack(ActiveSonarrBlock::UpdateAllSeriesPrompt.into()); - app.data.sonarr_data.series = StatefulTable::default(); + fn test_library_ui_renders_season_details_over_series() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::SeasonDetails.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + LibraryUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_library_ui_renders_episode_details_over_series() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::EpisodeDetails.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + LibraryUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_library_ui_renders_delete_episode_over_series() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::DeleteSeriesPrompt.into()); + app.data.sonarr_data.selected_block = + BlockSelectionState::new(DELETE_SERIES_SELECTION_BLOCKS); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + LibraryUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_library_ui_renders_edit_series_over_series() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::EditSeriesPrompt.into()); + app.data.sonarr_data.selected_block = BlockSelectionState::new(EDIT_SERIES_SELECTION_BLOCKS); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + LibraryUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_library_ui_renders_add_series_over_series() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::AddSeriesPrompt.into()); + app.data.sonarr_data.selected_block = BlockSelectionState::new(ADD_SERIES_SELECTION_BLOCKS); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { LibraryUi::draw(f, app, f.area()); diff --git a/src/ui/sonarr_ui/library/season_details_ui_tests.rs b/src/ui/sonarr_ui/library/season_details_ui_tests.rs index c0a5ad9..26cd503 100644 --- a/src/ui/sonarr_ui/library/season_details_ui_tests.rs +++ b/src/ui/sonarr_ui/library/season_details_ui_tests.rs @@ -1,14 +1,11 @@ #[cfg(test)] mod tests { - use bimap::BiMap; use strum::IntoEnumIterator; use crate::app::App; - use crate::models::servarr_data::sonarr::modals::SeasonDetailsModal; use crate::models::servarr_data::sonarr::sonarr_data::{ ActiveSonarrBlock, EPISODE_DETAILS_BLOCKS, SEASON_DETAILS_BLOCKS, }; - use crate::models::sonarr_models::{Season, Series}; use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::library::season_details_ui::SeasonDetailsUi; @@ -30,114 +27,116 @@ mod tests { mod snapshot_tests { use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; - #[test] - fn test_season_details_ui_renders_loading_state() { - let mut app = App::test_default(); + #[rstest] + #[case(ActiveSonarrBlock::SeasonDetails, 0)] + #[case(ActiveSonarrBlock::SeasonHistory, 1)] + #[case(ActiveSonarrBlock::SearchEpisodes, 0)] + #[case(ActiveSonarrBlock::SearchEpisodesError, 0)] + #[case(ActiveSonarrBlock::AutomaticallySearchSeasonPrompt, 0)] + #[case(ActiveSonarrBlock::AutomaticallySearchSeasonPrompt, 1)] + #[case(ActiveSonarrBlock::AutomaticallySearchSeasonPrompt, 2)] + #[case(ActiveSonarrBlock::SearchSeasonHistory, 1)] + #[case(ActiveSonarrBlock::SearchSeasonHistoryError, 1)] + #[case(ActiveSonarrBlock::FilterSeasonHistory, 1)] + #[case(ActiveSonarrBlock::FilterSeasonHistoryError, 1)] + #[case(ActiveSonarrBlock::SeasonHistorySortPrompt, 1)] + #[case(ActiveSonarrBlock::SeasonHistoryDetails, 1)] + #[case(ActiveSonarrBlock::ManualSeasonSearch, 2)] + #[case(ActiveSonarrBlock::ManualSeasonSearchConfirmPrompt, 2)] + #[case(ActiveSonarrBlock::ManualSeasonSearchSortPrompt, 2)] + #[case(ActiveSonarrBlock::DeleteEpisodeFilePrompt, 0)] + fn test_season_details_ui_renders( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + app + .data + .sonarr_data + .season_details_modal + .as_mut() + .unwrap() + .season_details_tabs + .set_index(index); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SeasonDetailsUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!( + format!("season_details_renders_{active_sonarr_block}_{index}"), + output + ); + } + + #[rstest] + #[case(ActiveSonarrBlock::SeasonDetails, 0)] + #[case(ActiveSonarrBlock::SeasonHistory, 1)] + #[case(ActiveSonarrBlock::SeasonHistoryDetails, 1)] + #[case(ActiveSonarrBlock::ManualSeasonSearch, 2)] + fn test_season_details_ui_renders_loading( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); app.is_loading = true; - app.push_navigation_stack(ActiveSonarrBlock::SeasonDetails.into()); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - seasons: Some(vec![Season::default()]), - ..Series::default() - }]); + app.push_navigation_stack(active_sonarr_block.into()); + { + let season_details_modal = app.data.sonarr_data.season_details_modal.as_mut().unwrap(); + season_details_modal.season_releases = StatefulTable::default(); + season_details_modal.season_history = StatefulTable::default(); + season_details_modal.episodes = StatefulTable::default(); + season_details_modal.season_details_tabs.set_index(index); + } let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { SeasonDetailsUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!( + format!("loading_season_details_{active_sonarr_block}_{index}"), + output + ); } - #[test] - fn test_season_details_ui_renders_episodes_tab() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::SeasonDetails.into()); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - seasons: Some(vec![Season::default()]), - ..Series::default() - }]); + #[rstest] + #[case(ActiveSonarrBlock::SeasonDetails, 0)] + #[case(ActiveSonarrBlock::SeasonHistory, 1)] + #[case(ActiveSonarrBlock::SeasonHistoryDetails, 1)] + #[case(ActiveSonarrBlock::ManualSeasonSearch, 2)] + fn test_season_details_ui_renders_empty( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + { + let season_details_modal = app.data.sonarr_data.season_details_modal.as_mut().unwrap(); + season_details_modal.season_releases = StatefulTable::default(); + season_details_modal.season_history = StatefulTable::default(); + season_details_modal.episodes = StatefulTable::default(); + season_details_modal.season_details_tabs.set_index(index); + } let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { SeasonDetailsUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); + insta::assert_snapshot!( + format!("empty_season_details_{active_sonarr_block}_{index}"), + output + ); } #[test] - fn test_season_details_ui_renders_manual_search_tab() { - use crate::models::sonarr_models::{Episode, EpisodeFile, SonarrRelease}; - - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::SeasonDetails.into()); - app.data.sonarr_data.quality_profile_map = BiMap::from_iter(vec![(0, "Any".to_owned())]); - app.data.sonarr_data.language_profiles_map = - BiMap::from_iter(vec![(0, "English".to_owned())]); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - seasons: Some(vec![Season::default()]), - ..Series::default() - }]); - app - .data - .sonarr_data - .seasons - .set_items(vec![Season::default()]); - let mut season_details_modal = SeasonDetailsModal::default(); - season_details_modal.season_details_tabs.set_index(2); - season_details_modal - .episodes - .set_items(vec![Episode::default()]); - season_details_modal - .episode_files - .set_items(vec![EpisodeFile::default()]); - season_details_modal - .season_releases - .set_items(vec![SonarrRelease::default()]); - app.data.sonarr_data.season_details_modal = Some(season_details_modal); - - let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { - SeasonDetailsUi::draw(f, app, f.area()); - }); - - insta::assert_snapshot!(output); - } - - #[test] - fn test_season_details_ui_renders_season_history_tab() { - use crate::models::sonarr_models::{Episode, EpisodeFile, SonarrHistoryItem}; - - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::SeasonDetails.into()); - app.data.sonarr_data.quality_profile_map = BiMap::from_iter(vec![(0, "Any".to_owned())]); - app.data.sonarr_data.language_profiles_map = - BiMap::from_iter(vec![(0, "English".to_owned())]); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - seasons: Some(vec![Season::default()]), - ..Series::default() - }]); - app - .data - .sonarr_data - .seasons - .set_items(vec![Season::default()]); - let mut season_details_modal = SeasonDetailsModal::default(); - season_details_modal.season_details_tabs.set_index(1); - season_details_modal - .episodes - .set_items(vec![Episode::default()]); - season_details_modal - .episode_files - .set_items(vec![EpisodeFile::default()]); - season_details_modal - .season_history - .set_items(vec![SonarrHistoryItem::default()]); - app.data.sonarr_data.season_details_modal = Some(season_details_modal); + fn test_season_details_ui_renders_episode_details_over_season_details() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::EpisodeDetails.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { SeasonDetailsUi::draw(f, app, f.area()); diff --git a/src/ui/sonarr_ui/library/series_details_ui.rs b/src/ui/sonarr_ui/library/series_details_ui.rs index bcdaf45..b395ee2 100644 --- a/src/ui/sonarr_ui/library/series_details_ui.rs +++ b/src/ui/sonarr_ui/library/series_details_ui.rs @@ -252,7 +252,7 @@ fn draw_seasons_table(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) { let row = Row::new(vec![ Cell::from(season_monitored.to_owned()), - Cell::from(title.clone().unwrap()), + Cell::from(title.clone().unwrap_or_default()), Cell::from(format!("{episode_file_count}/{episode_count}")), Cell::from(format!("{size:.2} GB")), ]); diff --git a/src/ui/sonarr_ui/library/series_details_ui_tests.rs b/src/ui/sonarr_ui/library/series_details_ui_tests.rs index 16de0b8..85ab39c 100644 --- a/src/ui/sonarr_ui/library/series_details_ui_tests.rs +++ b/src/ui/sonarr_ui/library/series_details_ui_tests.rs @@ -1,14 +1,11 @@ #[cfg(test)] mod tests { - use bimap::BiMap; use strum::IntoEnumIterator; use crate::app::App; use crate::models::servarr_data::sonarr::sonarr_data::{ ActiveSonarrBlock, EPISODE_DETAILS_BLOCKS, SEASON_DETAILS_BLOCKS, SERIES_DETAILS_BLOCKS, }; - use crate::models::sonarr_models::{Season, Series}; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::library::series_details_ui::SeriesDetailsUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -29,27 +26,107 @@ mod tests { } mod snapshot_tests { + use crate::models::stateful_table::StatefulTable; use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; - #[test] - fn test_series_details_ui_renders_series_details() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::SeriesDetails.into()); - app.data.sonarr_data.quality_profile_map = BiMap::from_iter(vec![(1, "HD-1080p".to_owned())]); - app.data.sonarr_data.language_profiles_map = - BiMap::from_iter(vec![(1, "English".to_owned())]); - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - id: 1, - title: "Test Series".into(), - seasons: Some(vec![Season::default()]), - quality_profile_id: 1, - language_profile_id: 1, - ..Series::default() - }]); + #[rstest] + #[case(ActiveSonarrBlock::SeriesDetails, 0)] + #[case(ActiveSonarrBlock::SeriesHistory, 1)] + #[case(ActiveSonarrBlock::SearchSeason, 0)] + #[case(ActiveSonarrBlock::SearchSeasonError, 0)] + #[case(ActiveSonarrBlock::UpdateAndScanSeriesPrompt, 0)] + #[case(ActiveSonarrBlock::UpdateAndScanSeriesPrompt, 1)] + #[case(ActiveSonarrBlock::AutomaticallySearchSeriesPrompt, 0)] + #[case(ActiveSonarrBlock::AutomaticallySearchSeriesPrompt, 1)] + #[case(ActiveSonarrBlock::SearchSeriesHistory, 1)] + #[case(ActiveSonarrBlock::SearchSeriesHistoryError, 1)] + #[case(ActiveSonarrBlock::FilterSeriesHistory, 1)] + #[case(ActiveSonarrBlock::FilterSeriesHistoryError, 1)] + #[case(ActiveSonarrBlock::SeriesHistorySortPrompt, 1)] + #[case(ActiveSonarrBlock::SeriesHistoryDetails, 1)] + fn test_series_details_ui_renders_series_details( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + app.data.sonarr_data.series_info_tabs.set_index(index); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SeriesDetailsUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!( + format!("series_details_ui_{active_sonarr_block}_{index}"), + output + ); + } + + #[rstest] + #[case(ActiveSonarrBlock::SeriesDetails, 0)] + #[case(ActiveSonarrBlock::SeriesHistory, 1)] + fn test_series_details_ui_renders_series_details_loading( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + app.data.sonarr_data.series_info_tabs.set_index(index); + app.is_loading = true; + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SeriesDetailsUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!( + format!("loading_series_details_{active_sonarr_block}"), + output + ); + } + + #[rstest] + #[case(ActiveSonarrBlock::SeriesDetails, 0)] + #[case(ActiveSonarrBlock::SeriesHistory, 1)] + #[case(ActiveSonarrBlock::SeriesHistoryDetails, 1)] + fn test_series_details_ui_renders_series_details_empty( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); + app.data.sonarr_data.seasons = StatefulTable::default(); app.data.sonarr_data.series_history = Some(StatefulTable::default()); + app.data.sonarr_data.series_info_tabs.set_index(index); + app.push_navigation_stack(active_sonarr_block.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SeriesDetailsUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!( + format!("empty_series_details_{active_sonarr_block}"), + output + ); + } + + #[test] + fn test_series_details_ui_renders_season_details_over_series_details() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::SeasonDetails.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SeriesDetailsUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_series_details_ui_renders_episode_details_over_series_details() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::EpisodeDetails.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { SeriesDetailsUi::draw(f, app, f.area()); diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesAlreadyInLibrary.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesAlreadyInLibrary.snap new file mode 100644 index 0000000..d39b8d2 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesAlreadyInLibrary.snap @@ -0,0 +1,47 @@ +--- +source: src/ui/sonarr_ui/library/add_series_ui_tests.rs +expression: output +--- + + + + + + + + ╭───────────────────────────────────────────────────── Add Series ─────────────────────────────────────────────────────╮ + │something │ + ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ + ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ ✔ Title Year Network Seasons Rating Genres │ + │=> Test 2023 Prime Video 8.4 3 cool, family, fun │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────────── Error ───────────────╮ │ + │ │This series is already in your library │ │ + │ │ │ │ + │ ╰───────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesEmptySearchResults.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesEmptySearchResults.snap new file mode 100644 index 0000000..9a5e62e --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesEmptySearchResults.snap @@ -0,0 +1,47 @@ +--- +source: src/ui/sonarr_ui/library/add_series_ui_tests.rs +expression: output +--- + + + + + + + + ╭───────────────────────────────────────────────────── Add Series ─────────────────────────────────────────────────────╮ + │something │ + ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ + ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────────── Error ───────────────╮ │ + │ │ No series found matching your query! │ │ + │ │ │ │ + │ ╰───────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesPrompt.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesPrompt.snap new file mode 100644 index 0000000..2c83b81 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesPrompt.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/add_series_ui_tests.rs +expression: output +--- + + + + + + + ╭────────────────────────────────────────── Add Series - Test ──────────────────────────────────────────╮ + ╭──────│ New series blah blah blah │───────╮ + │someth│ │ │ + ╰──────│ │───────╯ + ╭──────│ │───────╮ + │ ✔ │ │ │ + │=> │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Episodes ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Quality Profile: │Bluray-1080p ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Language Profile: │English ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Series Type: │Standard ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭───╮ │ │ + │ │ Season Folder: │ ✔ │ │ │ + │ │ ╰───╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Tags: │alex │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_search_input.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSearchResults.snap similarity index 95% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_search_input.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSearchResults.snap index 747e047..1dea6ec 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_search_input.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSearchResults.snap @@ -10,11 +10,11 @@ expression: output ╭───────────────────────────────────────────────────── Add Series ─────────────────────────────────────────────────────╮ - │ │ + │something │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ - │ │ - │ │ + │ ✔ Title Year Network Seasons Rating Genres │ + │=> Test 2023 Prime Video 8.4 3 cool, family, fun │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectLanguageProfile.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectLanguageProfile.snap new file mode 100644 index 0000000..68859e7 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectLanguageProfile.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/add_series_ui_tests.rs +expression: output +--- + + + + + + + ╭────────────────────────────────────────── Add Series - Test ──────────────────────────────────────────╮ + ╭──────│ New series blah blah blah │───────╮ + │someth│ │ │ + ╰──────│ │───────╯ + ╭──────│ │───────╮ + │ ✔ │ │ │ + │=> │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Episodes ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │English │──────────────────────────────╮ │ │ + │ │ Qual│ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ Langu│ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ │ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ Se│ │ │ │ + │ │ │ │ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectMonitor.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectMonitor.snap new file mode 100644 index 0000000..0e76f39 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectMonitor.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/add_series_ui_tests.rs +expression: output +--- + + + + + + + ╭────────────────────────────────────────── Add Series - Test ──────────────────────────────────────────╮ + ╭──────│ New series blah blah blah │───────╮ + │someth│ │ │ + ╰──────│ │───────╯ + ╭──────│ │───────╮ + │ ✔ │ │ │ + │=> │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Episodes ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │All Episodes │──────────────────────────────╮ │ │ + │ │ Qual│Unknown │ ▼ │ │ │ + │ │ │Future Episodes │──────────────────────────────╯ │ │ + │ │ │Missing Episodes │──────────────────────────────╮ │ │ + │ │ Langu│Existing Episodes │ ▼ │ │ │ + │ │ │Only First Season │──────────────────────────────╯ │ │ + │ │ │Only Last Season │──────────────────────────────╮ │ │ + │ │ │Only Latest Season │ ▼ │ │ │ + │ │ │Pilot Episode │──────────────────────────────╯ │ │ + │ │ │Recent Episodes │ │ │ + │ │ Se│Only Specials │ │ │ + │ │ │Not Specials │ │ │ + │ │ │None │──────────────────────────────╮ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectQualityProfile.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectQualityProfile.snap new file mode 100644 index 0000000..dcc57ae --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectQualityProfile.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/add_series_ui_tests.rs +expression: output +--- + + + + + + + ╭────────────────────────────────────────── Add Series - Test ──────────────────────────────────────────╮ + ╭──────│ New series blah blah blah │───────╮ + │someth│ │ │ + ╰──────│ │───────╯ + ╭──────│ │───────╮ + │ ✔ │ │ │ + │=> │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Episodes ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │Bluray-1080p │──────────────────────────────╮ │ │ + │ │ Qual│ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ Langu│ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ │ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ Se│ │ │ │ + │ │ │ │ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectRootFolder.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectRootFolder.snap new file mode 100644 index 0000000..924f085 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectRootFolder.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/add_series_ui_tests.rs +expression: output +--- + + + + + + + ╭────────────────────────────────────────── Add Series - Test ──────────────────────────────────────────╮ + ╭──────│ New series blah blah blah │───────╮ + │someth│ │ │ + ╰──────│ │───────╯ + ╭──────│ │───────╮ + │ ✔ │ │ │ + │=> │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Episodes ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │/nfs │──────────────────────────────╮ │ │ + │ │ Qual│ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ Langu│ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ │ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ Se│ │ │ │ + │ │ │ │ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectSeriesType.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectSeriesType.snap new file mode 100644 index 0000000..7434c27 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_AddSeriesSelectSeriesType.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/add_series_ui_tests.rs +expression: output +--- + + + + + + + ╭────────────────────────────────────────── Add Series - Test ──────────────────────────────────────────╮ + ╭──────│ New series blah blah blah │───────╮ + │someth│ │ │ + ╰──────│ │───────╯ + ╭──────│ │───────╮ + │ ✔ │ │ │ + │=> │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Episodes ▼ │ │ │ + │ │ ╭───────────────────────────────╮──────────────────────────────╯ │ │ + │ │ │Standard │──────────────────────────────╮ │ │ + │ │ Qual│Daily │ ▼ │ │ │ + │ │ │Anime │──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ Langu│ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ │ │ ▼ │ │ │ + │ │ │ │──────────────────────────────╯ │ │ + │ │ │ │ │ │ + │ │ Se│ │ │ │ + │ │ │ │ │ │ + │ │ │ │──────────────────────────────╮ │ │ + │ │ ╰───────────────────────────────╯ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_loading_state.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_loading_search.snap similarity index 99% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_loading_search.snap index 747e047..07dcfec 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_loading_state.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__add_series_ui__add_series_ui_tests__tests__snapshot_tests__add_series_ui_renders_loading_search.snap @@ -15,7 +15,7 @@ expression: output ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ │ - │ │ + │ Loading ... │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__delete_series_ui__delete_series_ui_tests__tests__snapshot_tests__delete_series_ui_renders_delete_series_toggle.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__delete_series_ui__delete_series_ui_tests__tests__snapshot_tests__delete_series_ui_renders_delete_series.snap similarity index 95% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__delete_series_ui__delete_series_ui_tests__tests__snapshot_tests__delete_series_ui_renders_delete_series_toggle.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__delete_series_ui__delete_series_ui_tests__tests__snapshot_tests__delete_series_ui_renders_delete_series.snap index e75cc87..84ece76 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__delete_series_ui__delete_series_ui_tests__tests__snapshot_tests__delete_series_ui_renders_delete_series_toggle.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__delete_series_ui__delete_series_ui_tests__tests__snapshot_tests__delete_series_ui_renders_delete_series.snap @@ -20,14 +20,14 @@ expression: output ╭───────────────────── Delete Series ─────────────────────╮ │ Do you really want to delete the series: │ - │ Test Series? │ + │ Test? │ │ │ │ │ │ ╭───╮ │ - │ Delete Series File: │ │ │ + │ Delete Series File: │ ✔ │ │ │ ╰───╯ │ │ ╭───╮ │ - │ Add List Exclusion: │ │ │ + │ Add List Exclusion: │ ✔ │ │ │ ╰───╯ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_ui_renders_edit_series_modal.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesConfirmPrompt.snap similarity index 92% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_ui_renders_edit_series_modal.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesConfirmPrompt.snap index 062dec1..fd06895 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_ui_renders_edit_series_modal.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesConfirmPrompt.snap @@ -8,21 +8,21 @@ expression: output - ╭───────────────────────────────────────── Edit - Test Series ──────────────────────────────────────────╮ - │ │ + ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ + │ Blah blah blah │ │ │ │ │ │ │ │ │ │ │ │ ╭───╮ │ - │ Monitored: │ │ │ + │ Monitored: │ ✔ │ │ │ ╰───╯ │ │ ╭───╮ │ - │ Season Folder: │ │ │ + │ Season Folder: │ ✔ │ │ │ ╰───╯ │ │ ╭─────────────────────────────────────────────────╮ │ - │ Quality Profile: │HD-1080p ▼ │ │ + │ Quality Profile: │Bluray-1080p ▼ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ ╭─────────────────────────────────────────────────╮ │ │ Language Profile: │English ▼ │ │ @@ -31,10 +31,10 @@ expression: output │ Series Type: │Standard ▼ │ │ │ ╰─────────────────────────────────────────────────╯ │ │ ╭─────────────────────────────────────────────────╮ │ - │ Path: │/tv/test │ │ + │ Path: │/nfs/tv │ │ │ ╰─────────────────────────────────────────────────╯ │ │ ╭─────────────────────────────────────────────────╮ │ - │ Tags: │ │ │ + │ Tags: │alex │ │ │ ╰─────────────────────────────────────────────────╯ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesConfirmPrompt_SeriesDetails.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesConfirmPrompt_SeriesDetails.snap new file mode 100644 index 0000000..be8a8fe --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesConfirmPrompt_SeriesDetails.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ │ + │Status: Continuing │ Blah blah blah │ │ + │Genres: cool, famil│ │ │ + │Rating: 84% │ │ │ + │Year: 2022 │ │ │ + │Runtime: 63 minutes│ │ │ + │Path: /nfs/tv/Test │ │ │ + │Quality Profile: Bl│ ╭───╮ │ │ + │Language Profile: E│ Monitored: │ ✔ │ │ │ + │Monitored: Yes │ ╰───╯ │ │ + │Size on Disk: 59.51│ ╭───╮ │ │ + │ │ Season Folder: │ ✔ │ │ │ + │ │ ╰───╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │╭ Series Details │ Quality Profile: │Bluray-1080p ▼ │ │────────────────────╮│ + ││ Seasons │ History│ ╰─────────────────────────────────────────────────╯ │ ││ + ││──────────────────│ ╭─────────────────────────────────────────────────╮ │────────────────────││ + ││ Monitored Seaso│ Language Profile: │English ▼ │ │ ││ + ││=> 🏷 Seaso│ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ ╭─────────────────────────────────────────────────╮ │ ││ + ││ │ Series Type: │Standard ▼ │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ ╭─────────────────────────────────────────────────╮ │ ││ + ││ │ Path: │/nfs/tv │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ ╭─────────────────────────────────────────────────╮ │ ││ + ││ │ Tags: │alex │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ ││ + ││ ││ Save ││ Cancel ││ ││ + ││ │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ ││ + ││ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesPrompt.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesPrompt.snap new file mode 100644 index 0000000..fd06895 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesPrompt.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + + + + ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ + │ Blah blah blah │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───╮ │ + │ Monitored: │ ✔ │ │ + │ ╰───╯ │ + │ ╭───╮ │ + │ Season Folder: │ ✔ │ │ + │ ╰───╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Quality Profile: │Bluray-1080p ▼ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Language Profile: │English ▼ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Series Type: │Standard ▼ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Path: │/nfs/tv │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Tags: │alex │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ + ││ Save ││ Cancel ││ + │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesPrompt_SeriesDetails.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesPrompt_SeriesDetails.snap new file mode 100644 index 0000000..be8a8fe --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesPrompt_SeriesDetails.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ │ + │Status: Continuing │ Blah blah blah │ │ + │Genres: cool, famil│ │ │ + │Rating: 84% │ │ │ + │Year: 2022 │ │ │ + │Runtime: 63 minutes│ │ │ + │Path: /nfs/tv/Test │ │ │ + │Quality Profile: Bl│ ╭───╮ │ │ + │Language Profile: E│ Monitored: │ ✔ │ │ │ + │Monitored: Yes │ ╰───╯ │ │ + │Size on Disk: 59.51│ ╭───╮ │ │ + │ │ Season Folder: │ ✔ │ │ │ + │ │ ╰───╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │╭ Series Details │ Quality Profile: │Bluray-1080p ▼ │ │────────────────────╮│ + ││ Seasons │ History│ ╰─────────────────────────────────────────────────╯ │ ││ + ││──────────────────│ ╭─────────────────────────────────────────────────╮ │────────────────────││ + ││ Monitored Seaso│ Language Profile: │English ▼ │ │ ││ + ││=> 🏷 Seaso│ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ ╭─────────────────────────────────────────────────╮ │ ││ + ││ │ Series Type: │Standard ▼ │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ ╭─────────────────────────────────────────────────╮ │ ││ + ││ │ Path: │/nfs/tv │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ ╭─────────────────────────────────────────────────╮ │ ││ + ││ │ Tags: │alex │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ ││ + ││ ││ Save ││ Cancel ││ ││ + ││ │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ ││ + ││ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectLanguageProfile.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectLanguageProfile.snap new file mode 100644 index 0000000..9990fb3 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectLanguageProfile.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + + + + ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ + │ Blah blah blah │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───╮ │ + │ Monitored: │ ✔ │ │ + │ ╰───╯ │ + │ ╭───╮ │ + │ Season Folder: │ ✔ │ │ + │ ╭───────────────────────────────╮ │ + │ │English │──────────────────────────────╮ │ + │ Qual│ │ ▼ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ Langu│ │ ▼ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ │ │ ▼ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ │ │ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ ╰───────────────────────────────╯ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ + ││ Save ││ Cancel ││ + │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectLanguageProfile_SeriesDetails.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectLanguageProfile_SeriesDetails.snap new file mode 100644 index 0000000..f882c48 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectLanguageProfile_SeriesDetails.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ │ + │Status: Continuing │ Blah blah blah │ │ + │Genres: cool, famil│ │ │ + │Rating: 84% │ │ │ + │Year: 2022 │ │ │ + │Runtime: 63 minutes│ │ │ + │Path: /nfs/tv/Test │ │ │ + │Quality Profile: Bl│ ╭───╮ │ │ + │Language Profile: E│ Monitored: │ ✔ │ │ │ + │Monitored: Yes │ ╰───╯ │ │ + │Size on Disk: 59.51│ ╭───╮ │ │ + │ │ Season Folder: │ ✔ │ │ │ + │ │ ╭───────────────────────────────╮ │ │ + │ │ │English │──────────────────────────────╮ │ │ + │╭ Series Details │ Qual│ │ ▼ │ │────────────────────╮│ + ││ Seasons │ History│ │ │──────────────────────────────╯ │ ││ + ││──────────────────│ │ │──────────────────────────────╮ │────────────────────││ + ││ Monitored Seaso│ Langu│ │ ▼ │ │ ││ + ││=> 🏷 Seaso│ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ │ │ ▼ │ │ ││ + ││ │ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ │ │ │ │ ││ + ││ │ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ ╰───────────────────────────────╯ │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ ││ + ││ ││ Save ││ Cancel ││ ││ + ││ │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ ││ + ││ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectQualityProfile.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectQualityProfile.snap new file mode 100644 index 0000000..3cc0c3e --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectQualityProfile.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + + + + ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ + │ Blah blah blah │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───╮ │ + │ Monitored: │ ✔ │ │ + │ ╰───╯ │ + │ ╭───╮ │ + │ Season Folder: │ ✔ │ │ + │ ╭───────────────────────────────╮ │ + │ │Bluray-1080p │──────────────────────────────╮ │ + │ Qual│ │ ▼ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ Langu│ │ ▼ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ │ │ ▼ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ │ │ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ ╰───────────────────────────────╯ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ + ││ Save ││ Cancel ││ + │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectQualityProfile_SeriesDetails.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectQualityProfile_SeriesDetails.snap new file mode 100644 index 0000000..7f9f544 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectQualityProfile_SeriesDetails.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ │ + │Status: Continuing │ Blah blah blah │ │ + │Genres: cool, famil│ │ │ + │Rating: 84% │ │ │ + │Year: 2022 │ │ │ + │Runtime: 63 minutes│ │ │ + │Path: /nfs/tv/Test │ │ │ + │Quality Profile: Bl│ ╭───╮ │ │ + │Language Profile: E│ Monitored: │ ✔ │ │ │ + │Monitored: Yes │ ╰───╯ │ │ + │Size on Disk: 59.51│ ╭───╮ │ │ + │ │ Season Folder: │ ✔ │ │ │ + │ │ ╭───────────────────────────────╮ │ │ + │ │ │Bluray-1080p │──────────────────────────────╮ │ │ + │╭ Series Details │ Qual│ │ ▼ │ │────────────────────╮│ + ││ Seasons │ History│ │ │──────────────────────────────╯ │ ││ + ││──────────────────│ │ │──────────────────────────────╮ │────────────────────││ + ││ Monitored Seaso│ Langu│ │ ▼ │ │ ││ + ││=> 🏷 Seaso│ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ │ │ ▼ │ │ ││ + ││ │ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ │ │ │ │ ││ + ││ │ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ ╰───────────────────────────────╯ │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ ││ + ││ ││ Save ││ Cancel ││ ││ + ││ │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ ││ + ││ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectSeriesType.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectSeriesType.snap new file mode 100644 index 0000000..cd0e5be --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectSeriesType.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + + + + ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ + │ Blah blah blah │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───╮ │ + │ Monitored: │ ✔ │ │ + │ ╰───╯ │ + │ ╭───╮ │ + │ Season Folder: │ ✔ │ │ + │ ╭───────────────────────────────╮ │ + │ │Standard │──────────────────────────────╮ │ + │ Qual│Daily │ ▼ │ │ + │ │Anime │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ Langu│ │ ▼ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ │ │ ▼ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ │ │ │ │ + │ │ │──────────────────────────────╯ │ + │ │ │──────────────────────────────╮ │ + │ ╰───────────────────────────────╯ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ + ││ Save ││ Cancel ││ + │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectSeriesType_SeriesDetails.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectSeriesType_SeriesDetails.snap new file mode 100644 index 0000000..8d22ec9 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__edit_series_ui__edit_series_ui_tests__tests__snapshot_tests__edit_series_EditSeriesSelectSeriesType_SeriesDetails.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/edit_series_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ │ + │Status: Continuing │ Blah blah blah │ │ + │Genres: cool, famil│ │ │ + │Rating: 84% │ │ │ + │Year: 2022 │ │ │ + │Runtime: 63 minutes│ │ │ + │Path: /nfs/tv/Test │ │ │ + │Quality Profile: Bl│ ╭───╮ │ │ + │Language Profile: E│ Monitored: │ ✔ │ │ │ + │Monitored: Yes │ ╰───╯ │ │ + │Size on Disk: 59.51│ ╭───╮ │ │ + │ │ Season Folder: │ ✔ │ │ │ + │ │ ╭───────────────────────────────╮ │ │ + │ │ │Standard │──────────────────────────────╮ │ │ + │╭ Series Details │ Qual│Daily │ ▼ │ │────────────────────╮│ + ││ Seasons │ History│ │Anime │──────────────────────────────╯ │ ││ + ││──────────────────│ │ │──────────────────────────────╮ │────────────────────││ + ││ Monitored Seaso│ Langu│ │ ▼ │ │ ││ + ││=> 🏷 Seaso│ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ │ │ ▼ │ │ ││ + ││ │ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ │ │ │ │ ││ + ││ │ │ │──────────────────────────────╯ │ ││ + ││ │ │ │──────────────────────────────╮ │ ││ + ││ │ ╰───────────────────────────────╯ │ │ ││ + ││ │ ╰─────────────────────────────────────────────────╯ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ ││ + ││ ││ Save ││ Cancel ││ ││ + ││ │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ ││ + ││ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_episode_details_tab.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeDetails_0.snap similarity index 100% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_episode_details_tab.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeDetails_0.snap diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_episode_history_tab.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeFile_2.snap similarity index 100% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_episode_history_tab.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeFile_2.snap diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeHistoryDetails_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeHistoryDetails_1.snap new file mode 100644 index 0000000..e8150f4 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeHistoryDetails_1.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────────────── Details ─────────────────────────╮ │ + │ │Source Title: │ │ + │ │ │ │ + │ │No additional data available │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ ╰────────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeHistory_1.snap new file mode 100644 index 0000000..3175a60 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_EpisodeHistory_1.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_manual_search_tab.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_ManualEpisodeSearch_3.snap similarity index 100% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_manual_search_tab.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__empty_episode_details_ManualEpisodeSearch_3.snap diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_0.snap new file mode 100644 index 0000000..bf73223 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_0.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │Some episode details: │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────────── Automatic Episode Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for the episode: Something cool │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_1.snap new file mode 100644 index 0000000..4cf2444 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_1.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────────── Automatic Episode Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for the episode: Something cool │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_2.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_2.snap new file mode 100644 index 0000000..43a03f9 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_2.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │File Details │ + │Some file details │ + │ │ + │ │ + │ │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │Audio Details │ + │Some audio details ╭─────────────── Automatic Episode Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for the episode: Something cool │ │ + │ │ │ │ + │ │ │ │ + │──────────────────────────────│ │───────────────────────────────│ + │Video Details │ │ │ + │Some video details │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_3.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_3.snap new file mode 100644 index 0000000..19969df --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_AutomaticallySearchEpisodePrompt_3.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source ▼ Age ⛔ Title Indexer Size Peers Language Quality │ + │=> torrent 1 days ⛔ Test Release kickass torrents 0.0 GB 2 / 1 English Bluray-1080p│ + │ usenet 1 days ⛔ Test Release DrunkenSlug 0.0 GB English Bluray-1080p│ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────────── Automatic Episode Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for the episode: Something cool │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeDetails_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeDetails_0.snap new file mode 100644 index 0000000..b579484 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeDetails_0.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │Some episode details: │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeFile_2.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeFile_2.snap new file mode 100644 index 0000000..5dc8e69 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeFile_2.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │File Details │ + │Some file details │ + │ │ + │ │ + │ │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │Audio Details │ + │Some audio details │ + │ │ + │ │ + │ │ + │ │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │Video Details │ + │Some video details │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeHistoryDetails_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeHistoryDetails_1.snap new file mode 100644 index 0000000..0ae4533 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeHistoryDetails_1.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────────────── Details ─────────────────────────╮ │ + │ │Source Title: Test source │ │ + │ │Indexer: │ │ + │ │Release Group: │ │ + │ │Series Match Type: │ │ + │ │NZB Info URL: │ │ + │ │Download Client Name: │ │ + │ ╰────────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeHistory_1.snap new file mode 100644 index 0000000..5dca4e2 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_EpisodeHistory_1.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearchConfirmPrompt_3.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearchConfirmPrompt_3.snap new file mode 100644 index 0000000..5822cba --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearchConfirmPrompt_3.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source ▼ Age ⛔ Title Indexer Size Peers Language Quality │ + │=> torrent 1 days ⛔ Test Release kickass torrents 0.0 GB 2 / 1 English Bluray-1080p│ + │ usenet 1 days ⛔ Test Release DrunkenSlug 0.0 GB English Bluray-1080p│ + │ │ + │ │ + │ │ + │ ╭───────────────── Download Rejected Release ──────────────────╮ │ + │ │ Do you really want to download the rejected release: Test │ │ + │ │ Release? │ │ + │ │ │ │ + │ │ │ │ + │ │Rejection reasons: │ │ + │ │• Unknown quality profile │ │ + │ │• Release is already mapped │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭──────────────────────────────╮╭──────────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰──────────────────────────────╯╰──────────────────────────────╯│ │ + │ ╰────────────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearchSortPrompt_3.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearchSortPrompt_3.snap new file mode 100644 index 0000000..2c17647 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearchSortPrompt_3.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Age ⛔ Title Indexer Size Peers Language Quality │ + │=> torrent 1 days ⛔ Test Release kickass torrents 0.0 GB 2 / 1 English Bluray-1080p│ + │ usenet 1 days ⛔ Test Release DrunkenSlug 0.0 GB English Bluray-1080p│ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────────────╮ │ + │ │Something │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ ╰──────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearch_3.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearch_3.snap new file mode 100644 index 0000000..cb7aac1 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ManualEpisodeSearch_3.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source ▼ Age ⛔ Title Indexer Size Peers Language Quality │ + │=> torrent 1 days ⛔ Test Release kickass torrents 0.0 GB 2 / 1 English Bluray-1080p│ + │ usenet 1 days ⛔ Test Release DrunkenSlug 0.0 GB English Bluray-1080p│ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_loading_state.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_loading_state.snap deleted file mode 100644 index f112e11..0000000 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__episode_details_ui_renders_loading_state.snap +++ /dev/null @@ -1,5 +0,0 @@ ---- -source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs -expression: output ---- - diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeDetails_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeDetails_0.snap new file mode 100644 index 0000000..a1074e1 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeDetails_0.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeFile_2.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeFile_2.snap new file mode 100644 index 0000000..a1074e1 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeFile_2.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeHistory_1.snap new file mode 100644 index 0000000..a1074e1 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_EpisodeHistory_1.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_ManualEpisodeSearch_3.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_ManualEpisodeSearch_3.snap new file mode 100644 index 0000000..a1074e1 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__episode_details_ui__episode_details_ui_tests__tests__snapshot_tests__loading_episode_details_ManualEpisodeSearch_3.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/episode_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Details │ History │ File │ Manual Search │ + │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_add_series_over_series.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_add_series_over_series.snap new file mode 100644 index 0000000..c5f433a --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_add_series_over_series.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + + + + ╭────────────────────────────────────────── Add Series - Test ──────────────────────────────────────────╮ + ╭──────│ New series blah blah blah │───────╮ + │someth│ │ │ + ╰──────│ │───────╯ + ╭──────│ │───────╮ + │ ✔ │ │ │ + │=> │ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Root Folder: │/nfs ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Monitor: │All Episodes ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Quality Profile: │Bluray-1080p ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Language Profile: │English ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Series Type: │Standard ▼ │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ ╭───╮ │ │ + │ │ Season Folder: │ ✔ │ │ │ + │ │ ╰───╯ │ │ + │ │ ╭─────────────────────────────────────────────────╮ │ │ + │ │ Tags: │alex │ │ │ + │ │ ╰─────────────────────────────────────────────────╯ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ │ + │ ││ Add ││ Cancel ││ │ + ╰──────│╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│───────╯ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_delete_episode_over_series.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_delete_episode_over_series.snap new file mode 100644 index 0000000..5d15d26 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_delete_episode_over_series.snap @@ -0,0 +1,38 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + + + + + + + + + + + + + + ╭───────────────────── Delete Series ─────────────────────╮ + │ Do you really want to delete the series: │ + │ Test? │ + │ │ + │ │ + │ ╭───╮ │ + │ Delete Series File: │ ✔ │ │ + │ ╰───╯ │ + │ ╭───╮ │ + │ Add List Exclusion: │ ✔ │ │ + │ ╰───╯ │ + │ │ + │ │ + │ │ + │╭────────────────────────────╮╭───────────────────────────╮│ + ││ Yes ││ No ││ + │╰────────────────────────────╯╰───────────────────────────╯│ + ╰───────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_edit_series_over_series.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_edit_series_over_series.snap new file mode 100644 index 0000000..7fe1a71 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_edit_series_over_series.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + + + + ╭───────────────────────────────────────────── Edit - Test ─────────────────────────────────────────────╮ + │ Blah blah blah │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───╮ │ + │ Monitored: │ ✔ │ │ + │ ╰───╯ │ + │ ╭───╮ │ + │ Season Folder: │ ✔ │ │ + │ ╰───╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Quality Profile: │Bluray-1080p ▼ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Language Profile: │English ▼ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Series Type: │Standard ▼ │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Path: │/nfs/tv │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ ╭─────────────────────────────────────────────────╮ │ + │ Tags: │alex │ │ + │ ╰─────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭───────────────────────────────────────────────────╮╭──────────────────────────────────────────────────╮│ + ││ Save ││ Cancel ││ + │╰───────────────────────────────────────────────────╯╰──────────────────────────────────────────────────╯│ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_empty_series.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_empty.snap similarity index 100% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_empty_series.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_empty.snap diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_episode_details_over_series.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_episode_details_over_series.snap new file mode 100644 index 0000000..a2da567 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_episode_details_over_series.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Titl╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ + │Over│ Episodes │ History │ Manual Search │ │ + │Netw│──────╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮─────│ │ + │Stat│ 🏷 │ Details │ History │ File │ Manual Search │file │ │ + │Genr│=> 🏷 │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│p │ │ + │Rati│ │Some episode details: │ │ │ + │Year│ │ │ │ │ + │Runt│ │ │ │ │ + │Path│ │ │ │ │ + │Qual│ │ │ │ │ + │Lang│ │ │ │ │ + │Moni│ │ │ │ │ + │Size│ │ │ │ │ + │ │ │ │ │ │ + │ │ │ │ │ │ + │ │ │ │ │ │ + │╭ S│ │ │ │─────╮│ + ││ Se│ │ │ │ ││ + ││───│ │ │ │─────││ + ││ │ │ │ │ ││ + ││=> │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ││ + ││ │ │ ││ + ││ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_loading_state.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_loading.snap similarity index 100% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_loading.snap diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_season_details_over_series.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_season_details_over_series.snap new file mode 100644 index 0000000..2d4535c --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_season_details_over_series.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Titl╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ + │Over│ Episodes │ History │ Manual Search │ │ + │Netw│───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ │ + │Stat│ 🏷 # Title Air Date Size on Disk Quality Profile │ │ + │Genr│=> 🏷 1 Something cool 2024-02-10 07:28:45 UTC 3.30 GB Bluray-1080p │ │ + │Rati│ │ │ + │Year│ │ │ + │Runt│ │ │ + │Path│ │ │ + │Qual│ │ │ + │Lang│ │ │ + │Moni│ │ │ + │Size│ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │╭ S│ │─────╮│ + ││ Se│ │ ││ + ││───│ │─────││ + ││ │ │ ││ + ││=> │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_series_details_over_series.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_series_details_over_series.snap new file mode 100644 index 0000000..81ab929 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_series_details_over_series.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Monitored Season Episode Count Size on Disk ││ + ││=> 🏷 Season title 10/10 34.19 GB ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_FilterSeries.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_FilterSeries.snap new file mode 100644 index 0000000..4b2598c --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_FilterSeries.snap @@ -0,0 +1,28 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + + + + + + + + + + + + + + + + + + + ╭───────────────── Filter ──────────────────╮ + │series filter │ + ╰─────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_FilterSeriesError.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_FilterSeriesError.snap new file mode 100644 index 0000000..9bef7e7 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_FilterSeriesError.snap @@ -0,0 +1,31 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + + + + + + + + + + + + + + + + + + + + + ╭─────────────── Error ───────────────╮ + │The given filter produced empty results│ + │ │ + ╰───────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SearchSeries.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SearchSeries.snap new file mode 100644 index 0000000..7d230a7 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SearchSeries.snap @@ -0,0 +1,28 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + + + + + + + + + + + + + + + + + + + ╭───────────────── Search ──────────────────╮ + │series search │ + ╰─────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SearchSeriesError.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SearchSeriesError.snap new file mode 100644 index 0000000..57eaf04 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SearchSeriesError.snap @@ -0,0 +1,31 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + + + + + + + + + + + + + + + + + + + + + ╭─────────────── Error ───────────────╮ + │ No items found matching search │ + │ │ + ╰───────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_with_series.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_Series.snap similarity index 54% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_with_series.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_Series.snap index b9edd92..95e1e51 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_with_series.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_Series.snap @@ -3,6 +3,5 @@ source: src/ui/sonarr_ui/library/library_ui_tests.rs expression: output --- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── - Title Year Network Status Rating Type Quality Profile Language Size Monitored Tags -=> Breaking Bad 2008 AMC Ended Standard HD-1080p English 0.00 GB 🏷 - The Wire 2002 HBO Continuin Standard Any English 0.00 GB 🏷 + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SeriesSortPrompt.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SeriesSortPrompt.snap new file mode 100644 index 0000000..166527f --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_SeriesSortPrompt.snap @@ -0,0 +1,42 @@ +--- +source: src/ui/sonarr_ui/library/library_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Title Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 + + + + + + + + + + + ╭───────────────────────────────╮ + │Something │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_update_all_series_prompt.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_UpdateAllSeriesPrompt.snap similarity index 94% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_update_all_series_prompt.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_UpdateAllSeriesPrompt.snap index 8453ef9..b43cea3 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__library_ui_renders_update_all_series_prompt.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__library_ui_tests__tests__snapshot_tests__sonarr_library_UpdateAllSeriesPrompt.snap @@ -3,8 +3,8 @@ source: src/ui/sonarr_ui/library/library_ui_tests.rs expression: output --- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── - - + Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags +=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_manual_search_tab.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_ManualSeasonSearch_2.snap similarity index 95% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_manual_search_tab.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_ManualSeasonSearch_2.snap index d1570e6..2d7f490 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_manual_search_tab.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_ManualSeasonSearch_2.snap @@ -6,13 +6,13 @@ expression: output - ╭ Season 0 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Episodes │ History │ Manual Search │ │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ - │ Source Age ⛔ Title Indexer Size Peers Language Quality │ - │=> 0 days 0.0 GB │ │ │ │ │ + │ Loading ... │ + │ │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_season_history_tab.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonDetails_0.snap similarity index 95% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_season_history_tab.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonDetails_0.snap index 83c8c02..26d5a94 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_season_history_tab.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonDetails_0.snap @@ -6,11 +6,11 @@ expression: output - ╭ Season 0 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Episodes │ History │ Manual Search │ │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ - │ Source Title Event Type Language Quality Date │ - │=> unknown 1970-01-01 00:00:00 UTC │ + │ │ + │ │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonHistoryDetails_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonHistoryDetails_1.snap new file mode 100644 index 0000000..b0bd2ac --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonHistoryDetails_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────────────────── Details ────────────────────────────╮ │ + │ │Source Title: │ │ + │ │ │ │ + │ │No additional data available │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ ╰───────────────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonHistory_1.snap new file mode 100644 index 0000000..26d5a94 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__empty_season_details_SeasonHistory_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_ManualSeasonSearch_2.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_ManualSeasonSearch_2.snap new file mode 100644 index 0000000..2d7f490 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_ManualSeasonSearch_2.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonDetails_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonDetails_0.snap new file mode 100644 index 0000000..2d7f490 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonDetails_0.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonHistoryDetails_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonHistoryDetails_1.snap new file mode 100644 index 0000000..7c519e8 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonHistoryDetails_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────────────────── Details ────────────────────────────╮ │ + │ │Source Title: │ │ + │ │ │ │ + │ │No additional data available │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ ╰───────────────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonHistory_1.snap new file mode 100644 index 0000000..2d7f490 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__loading_season_details_SeasonHistory_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_0.snap new file mode 100644 index 0000000..3ea342c --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_0.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ 🏷 # Title Air Date Size on Disk Quality Profile │ + │=> 🏷 1 Something cool 2024-02-10 07:28:45 UTC 3.30 GB Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────── Automatic Season Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for season packs for: Season title │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_1.snap new file mode 100644 index 0000000..a976fef --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title ▼ Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────── Automatic Season Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for season packs for: Season title │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_2.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_2.snap new file mode 100644 index 0000000..4dcfb7e --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_AutomaticallySearchSeasonPrompt_2.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source ▼ Age ⛔ Title Indexer Size Peers Language Quality │ + │=> torrent 1 days ⛔ Test Release kickass torrents 0.0 GB 2 / 1 English Bluray-1080p │ + │ usenet 1 days ⛔ Test Release DrunkenSlug 0.0 GB English Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────── Automatic Season Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for season packs for: Season title │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_DeleteEpisodeFilePrompt_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_DeleteEpisodeFilePrompt_0.snap new file mode 100644 index 0000000..cefc809 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_DeleteEpisodeFilePrompt_0.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ 🏷 # Title Air Date Size on Disk Quality Profile │ + │=> 🏷 1 Something cool 2024-02-10 07:28:45 UTC 3.30 GB Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────────── Delete Episode ─────────────────────╮ │ + │ │ Do you really want to delete this episode: │ │ + │ │ Something cool? │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_FilterSeasonHistoryError_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_FilterSeasonHistoryError_1.snap new file mode 100644 index 0000000..55e0a12 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_FilterSeasonHistoryError_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title ▼ Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────── Error ────────────╮ │ + │ │ The given filter produced empty│ │ + │ ╰────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_FilterSeasonHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_FilterSeasonHistory_1.snap new file mode 100644 index 0000000..25d8c76 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_FilterSeasonHistory_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title ▼ Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───────────── Filter ──────────────╮ │ + │ │season history filter │ │ + │ ╰─────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearchConfirmPrompt_2.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearchConfirmPrompt_2.snap new file mode 100644 index 0000000..b5d1814 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearchConfirmPrompt_2.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source ▼ Age ⛔ Title Indexer Size Peers Language Quality │ + │=> torrent 1 days ⛔ Test Release kickass torrents 0.0 GB 2 / 1 English Bluray-1080p │ + │ usenet 1 days ⛔ Test Release DrunkenSlug 0.0 GB English Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───────────────── Download Rejected Release ──────────────────╮ │ + │ │ Do you really want to download the rejected release: Test │ │ + │ │ Release? │ │ + │ │ │ │ + │ │ │ │ + │ │Rejection reasons: │ │ + │ │• Unknown quality profile │ │ + │ │• Release is already mapped │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭──────────────────────────────╮╭──────────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰──────────────────────────────╯╰──────────────────────────────╯│ │ + │ ╰────────────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearchSortPrompt_2.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearchSortPrompt_2.snap new file mode 100644 index 0000000..5892849 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearchSortPrompt_2.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Age ⛔ Title Indexer Size Peers Language Quality │ + │=> torrent 1 days ⛔ Test Release kickass torrents 0.0 GB 2 / 1 English Bluray-1080p │ + │ usenet 1 days ⛔ Test Release DrunkenSlug 0.0 GB English Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────────────────────╮ │ + │ │Something │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ ╰─────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearch_2.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearch_2.snap new file mode 100644 index 0000000..8f62f05 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_ManualSeasonSearch_2.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source ▼ Age ⛔ Title Indexer Size Peers Language Quality │ + │=> torrent 1 days ⛔ Test Release kickass torrents 0.0 GB 2 / 1 English Bluray-1080p │ + │ usenet 1 days ⛔ Test Release DrunkenSlug 0.0 GB English Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchEpisodesError_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchEpisodesError_0.snap new file mode 100644 index 0000000..7e035fb --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchEpisodesError_0.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ 🏷 # Title Air Date Size on Disk Quality Profile │ + │=> 🏷 1 Something cool 2024-02-10 07:28:45 UTC 3.30 GB Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────── Error ────────────╮ │ + │ │ No items found matching search │ │ + │ ╰────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchEpisodes_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchEpisodes_0.snap new file mode 100644 index 0000000..6c651db --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchEpisodes_0.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ 🏷 # Title Air Date Size on Disk Quality Profile │ + │=> 🏷 1 Something cool 2024-02-10 07:28:45 UTC 3.30 GB Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───────────── Search ──────────────╮ │ + │ │episode search │ │ + │ ╰─────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchSeasonHistoryError_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchSeasonHistoryError_1.snap new file mode 100644 index 0000000..029d6b0 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchSeasonHistoryError_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title ▼ Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────── Error ────────────╮ │ + │ │ No items found matching search │ │ + │ ╰────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchSeasonHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchSeasonHistory_1.snap new file mode 100644 index 0000000..4f189dd --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SearchSeasonHistory_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title ▼ Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭───────────── Search ──────────────╮ │ + │ │season history search │ │ + │ ╰─────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonDetails_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonDetails_0.snap new file mode 100644 index 0000000..65c3117 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonDetails_0.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ 🏷 # Title Air Date Size on Disk Quality Profile │ + │=> 🏷 1 Something cool 2024-02-10 07:28:45 UTC 3.30 GB Bluray-1080p │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistoryDetails_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistoryDetails_1.snap new file mode 100644 index 0000000..6fe8412 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistoryDetails_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title ▼ Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭──────────────────────────── Details ────────────────────────────╮ │ + │ │Source Title: Test source │ │ + │ │Indexer: │ │ + │ │Release Group: │ │ + │ │Series Match Type: │ │ + │ │NZB Info URL: │ │ + │ │Download Client Name: │ │ + │ ╰───────────────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistorySortPrompt_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistorySortPrompt_1.snap new file mode 100644 index 0000000..033ca8a --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistorySortPrompt_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭─────────────────────────╮ │ + │ │Something │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ ╰─────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistory_1.snap new file mode 100644 index 0000000..60cb3c2 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_renders_SeasonHistory_1.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ + │ Source Title ▼ Event Type Language Quality Date │ + │=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_episode_details_over_season_details.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_episode_details_over_season_details.snap new file mode 100644 index 0000000..f5f399a --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_episode_details_over_season_details.snap @@ -0,0 +1,50 @@ +--- +source: src/ui/sonarr_ui/library/season_details_ui_tests.rs +expression: output +--- + + + + + ╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Episodes │ History │ Manual Search │ + │──────╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮─────│ + │ 🏷 │ Details │ History │ File │ Manual Search │file │ + │=> 🏷 │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│p │ + │ │Some episode details: │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ + │ │ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_episodes_tab.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_episodes_tab.snap deleted file mode 100644 index 67b9605..0000000 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_episodes_tab.snap +++ /dev/null @@ -1,5 +0,0 @@ ---- -source: src/ui/sonarr_ui/library/season_details_ui_tests.rs -expression: output ---- - diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_loading_state.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_loading_state.snap deleted file mode 100644 index 67b9605..0000000 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__season_details_ui__season_details_ui_tests__tests__snapshot_tests__season_details_ui_renders_loading_state.snap +++ /dev/null @@ -1,5 +0,0 @@ ---- -source: src/ui/sonarr_ui/library/season_details_ui_tests.rs -expression: output ---- - diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_series_details.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesDetails.snap similarity index 90% rename from src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_series_details.snap rename to src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesDetails.snap index 0cf0b76..8d7f917 100644 --- a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_series_details.snap +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesDetails.snap @@ -5,20 +5,20 @@ expression: output - ╭ Test Series ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ - │Title: Test Series │ - │Overview: │ - │Network: │ + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ │Status: Continuing │ - │Genres: │ - │Rating: 0% │ - │Year: 0 │ - │Runtime: 0 minutes │ - │Path: │ - │Quality Profile: HD-1080p │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ │Language Profile: English │ - │Monitored: No │ - │ │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesHistory.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesHistory.snap new file mode 100644 index 0000000..8d7f917 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesHistory.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesHistoryDetails.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesHistoryDetails.snap new file mode 100644 index 0000000..f70e2fe --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__empty_series_details_SeriesHistoryDetails.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ╭─────────────────────────────── Details ───────────────────────────────╮ ││ + ││───────────────────────────────────│Source Title: │───────────────────────────────────││ + ││ │ │ ││ + ││ │No additional data available │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ ╰─────────────────────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__loading_series_details_SeriesDetails.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__loading_series_details_SeriesDetails.snap new file mode 100644 index 0000000..f7e287f --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__loading_series_details_SeriesDetails.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ ││ + ││ ││ + ││ Loading ... ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__loading_series_details_SeriesHistory.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__loading_series_details_SeriesHistory.snap new file mode 100644 index 0000000..f7e287f --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__loading_series_details_SeriesHistory.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ ││ + ││ ││ + ││ Loading ... ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_AutomaticallySearchSeriesPrompt_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_AutomaticallySearchSeriesPrompt_0.snap new file mode 100644 index 0000000..385ee3e --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_AutomaticallySearchSeriesPrompt_0.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB ╭──────────────── Automatic Series Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for all monitored episode(s) for the series: Test │ │ + │ │ │ │ + │╭ Series Details ───────────────────────│ │───────────────────────────────────────────╮│ + ││ Seasons │ History │ │ ││ + ││─────────────────────────────────────────│ │───────────────────────────────────────────││ + ││ Monitored Season │ │Size on Disk ││ + ││=> 🏷 Season title │ │34.19 GB ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭────────────────────────────╮╭───────────────────────────╮│ ││ + ││ ││ Yes ││ No ││ ││ + ││ │╰────────────────────────────╯╰───────────────────────────╯│ ││ + ││ ╰───────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_AutomaticallySearchSeriesPrompt_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_AutomaticallySearchSeriesPrompt_1.snap new file mode 100644 index 0000000..accf608 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_AutomaticallySearchSeriesPrompt_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB ╭──────────────── Automatic Series Search ────────────────╮ │ + │ │Do you want to trigger an automatic search of your indexers│ │ + │ │ for all monitored episode(s) for the series: Test │ │ + │ │ │ │ + │╭ Series Details ───────────────────────│ │───────────────────────────────────────────╮│ + ││ Seasons │ History │ │ ││ + ││─────────────────────────────────────────│ │───────────────────────────────────────────││ + ││ Source Title ▼ │ │ty Date ││ + ││=> Test source │ │y-1080p 2024-02-10 07:28:45 UTC ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭────────────────────────────╮╭───────────────────────────╮│ ││ + ││ ││ Yes ││ No ││ ││ + ││ │╰────────────────────────────╯╰───────────────────────────╯│ ││ + ││ ╰───────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_FilterSeriesHistoryError_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_FilterSeriesHistoryError_1.snap new file mode 100644 index 0000000..7e0ca69 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_FilterSeriesHistoryError_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Source Title ▼ Event Type Language Quality Date ││ + ││=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ╭──────────── Error ─────────────╮ ││ + ││ │ The given filter produced empty │ ││ + ││ ╰──────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_FilterSeriesHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_FilterSeriesHistory_1.snap new file mode 100644 index 0000000..3e37c14 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_FilterSeriesHistory_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Source Title ▼ Event Type Language Quality Date ││ + ││=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ╭────────────── Filter ───────────────╮ ││ + ││ │series history filter │ ││ + ││ ╰───────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeasonError_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeasonError_0.snap new file mode 100644 index 0000000..3bd7da7 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeasonError_0.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Monitored Season Episode Count Size on Disk ││ + ││=> 🏷 Season title 10/10 34.19 GB ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ╭──────────── Error ─────────────╮ ││ + ││ │ No items found matching search │ ││ + ││ ╰──────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeason_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeason_0.snap new file mode 100644 index 0000000..a594073 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeason_0.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Monitored Season Episode Count Size on Disk ││ + ││=> 🏷 Season title 10/10 34.19 GB ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ╭────────────── Search ───────────────╮ ││ + ││ │season search │ ││ + ││ ╰───────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeriesHistoryError_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeriesHistoryError_1.snap new file mode 100644 index 0000000..c213bf2 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeriesHistoryError_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Source Title ▼ Event Type Language Quality Date ││ + ││=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ╭──────────── Error ─────────────╮ ││ + ││ │ No items found matching search │ ││ + ││ ╰──────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeriesHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeriesHistory_1.snap new file mode 100644 index 0000000..afd0fa0 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SearchSeriesHistory_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Source Title ▼ Event Type Language Quality Date ││ + ││=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ╭────────────── Search ───────────────╮ ││ + ││ │series history search │ ││ + ││ ╰───────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesDetails_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesDetails_0.snap new file mode 100644 index 0000000..1f91c3a --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesDetails_0.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Monitored Season Episode Count Size on Disk ││ + ││=> 🏷 Season title 10/10 34.19 GB ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistoryDetails_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistoryDetails_1.snap new file mode 100644 index 0000000..756cf8f --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistoryDetails_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ╭─────────────────────────────── Details ───────────────────────────────╮ ││ + ││───────────────────────────────────│Source Title: Test source │───────────────────────────────────││ + ││ Source Title ▼ │Indexer: │ Date ││ + ││=> Test source │Release Group: │ 2024-02-10 07:28:45 UTC ││ + ││ │Series Match Type: │ ││ + ││ │NZB Info URL: │ ││ + ││ │Download Client Name: │ ││ + ││ │Age: 0 days │ ││ + ││ ╰─────────────────────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistorySortPrompt_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistorySortPrompt_1.snap new file mode 100644 index 0000000..4c982de --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistorySortPrompt_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Source Title Event Type Language Quality Date ││ + ││=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC ││ + ││ ││ + ││ ││ + ││ ││ + ││ ╭───────────────────────────╮ ││ + ││ │Something │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ ╰───────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistory_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistory_1.snap new file mode 100644 index 0000000..7633027 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_SeriesHistory_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB │ + │ │ + │ │ + │ │ + │╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ + ││ Seasons │ History ││ + ││─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────││ + ││ Source Title ▼ Event Type Language Quality Date ││ + ││=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_UpdateAndScanSeriesPrompt_0.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_UpdateAndScanSeriesPrompt_0.snap new file mode 100644 index 0000000..0596611 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_UpdateAndScanSeriesPrompt_0.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB ╭──────────────────── Update and Scan ────────────────────╮ │ + │ │ Do you want to trigger an update and disk scan for the │ │ + │ │ series: Test? │ │ + │ │ │ │ + │╭ Series Details ───────────────────────│ │───────────────────────────────────────────╮│ + ││ Seasons │ History │ │ ││ + ││─────────────────────────────────────────│ │───────────────────────────────────────────││ + ││ Monitored Season │ │Size on Disk ││ + ││=> 🏷 Season title │ │34.19 GB ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭────────────────────────────╮╭───────────────────────────╮│ ││ + ││ ││ Yes ││ No ││ ││ + ││ │╰────────────────────────────╯╰───────────────────────────╯│ ││ + ││ ╰───────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_UpdateAndScanSeriesPrompt_1.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_UpdateAndScanSeriesPrompt_1.snap new file mode 100644 index 0000000..2e1e2ee --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_UpdateAndScanSeriesPrompt_1.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Title: Test │ + │Overview: Blah blah blah │ + │Network: HBO │ + │Status: Continuing │ + │Genres: cool, family, fun │ + │Rating: 84% │ + │Year: 2022 │ + │Runtime: 63 minutes │ + │Path: /nfs/tv/Test │ + │Quality Profile: Bluray-1080p │ + │Language Profile: English │ + │Monitored: Yes │ + │Size on Disk: 59.51 GB ╭──────────────────── Update and Scan ────────────────────╮ │ + │ │ Do you want to trigger an update and disk scan for the │ │ + │ │ series: Test? │ │ + │ │ │ │ + │╭ Series Details ───────────────────────│ │───────────────────────────────────────────╮│ + ││ Seasons │ History │ │ ││ + ││─────────────────────────────────────────│ │───────────────────────────────────────────││ + ││ Source Title ▼ │ │ty Date ││ + ││=> Test source │ │y-1080p 2024-02-10 07:28:45 UTC ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │╭────────────────────────────╮╭───────────────────────────╮│ ││ + ││ ││ Yes ││ No ││ ││ + ││ │╰────────────────────────────╯╰───────────────────────────╯│ ││ + ││ ╰───────────────────────────────────────────────────────────╯ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + ││ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_episode_details_over_series_details.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_episode_details_over_series_details.snap new file mode 100644 index 0000000..32906b6 --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_episode_details_over_series_details.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Titl╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ + │Over│ Episodes │ History │ Manual Search │ │ + │Netw│──────╭ Episode Details ───────────────────────────────────────────────────────────────────────────────────────────────────────╮─────│ │ + │Stat│ 🏷 │ Details │ History │ File │ Manual Search │file │ │ + │Genr│=> 🏷 │──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│p │ │ + │Rati│ │Some episode details: │ │ │ + │Year│ │ │ │ │ + │Runt│ │ │ │ │ + │Path│ │ │ │ │ + │Qual│ │ │ │ │ + │Lang│ │ │ │ │ + │Moni│ │ │ │ │ + │Size│ │ │ │ │ + │ │ │ │ │ │ + │ │ │ │ │ │ + │ │ │ │ │ │ + │╭ S│ │ │ │─────╮│ + ││ Se│ │ │ │ ││ + ││───│ │ │ │─────││ + ││ │ │ │ │ ││ + ││=> │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ │ │ │ ││ + ││ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ││ + ││ │ │ ││ + ││ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_season_details_over_series_details.snap b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_season_details_over_series_details.snap new file mode 100644 index 0000000..677c48d --- /dev/null +++ b/src/ui/sonarr_ui/library/snapshots/managarr__ui__sonarr_ui__library__series_details_ui__series_details_ui_tests__tests__snapshot_tests__series_details_ui_renders_season_details_over_series_details.snap @@ -0,0 +1,52 @@ +--- +source: src/ui/sonarr_ui/library/series_details_ui_tests.rs +expression: output +--- + + + + ╭ Test ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │Titl╭ Season 1 Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ + │Over│ Episodes │ History │ Manual Search │ │ + │Netw│───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ │ + │Stat│ 🏷 # Title Air Date Size on Disk Quality Profile │ │ + │Genr│=> 🏷 1 Something cool 2024-02-10 07:28:45 UTC 3.30 GB Bluray-1080p │ │ + │Rati│ │ │ + │Year│ │ │ + │Runt│ │ │ + │Path│ │ │ + │Qual│ │ │ + │Lang│ │ │ + │Moni│ │ │ + │Size│ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │╭ S│ │─────╮│ + ││ Se│ │ ││ + ││───│ │─────││ + ││ │ │ ││ + ││=> │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ │ │ ││ + ││ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ││ + │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ + ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/mod.rs b/src/ui/sonarr_ui/mod.rs index 90cec31..bbe1979 100644 --- a/src/ui/sonarr_ui/mod.rs +++ b/src/ui/sonarr_ui/mod.rs @@ -1,7 +1,11 @@ use std::{cmp, iter}; +#[cfg(test)] +use crate::ui::ui_test_utils::test_utils::Utc; use blocklist::BlocklistUi; -use chrono::{Duration, Utc}; +use chrono::Duration; +#[cfg(not(test))] +use chrono::Utc; use downloads::DownloadsUi; use history::HistoryUi; use indexers::IndexersUi; diff --git a/src/ui/sonarr_ui/root_folders/root_folders_ui_tests.rs b/src/ui/sonarr_ui/root_folders/root_folders_ui_tests.rs index 6268ebd..e2a113d 100644 --- a/src/ui/sonarr_ui/root_folders/root_folders_ui_tests.rs +++ b/src/ui/sonarr_ui/root_folders/root_folders_ui_tests.rs @@ -3,10 +3,7 @@ mod tests { use strum::IntoEnumIterator; use crate::app::App; - use crate::models::HorizontallyScrollableText; use crate::models::servarr_data::sonarr::sonarr_data::{ActiveSonarrBlock, ROOT_FOLDERS_BLOCKS}; - use crate::models::servarr_models::RootFolder; - use crate::models::stateful_table::StatefulTable; use crate::ui::DrawUi; use crate::ui::sonarr_ui::root_folders::RootFoldersUi; use crate::ui::ui_test_utils::test_utils::render_to_string_with_app; @@ -24,11 +21,12 @@ mod tests { mod snapshot_tests { use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; #[test] - fn test_root_folders_ui_renders_loading_state() { + fn test_root_folders_ui_renders_loading() { let mut app = App::test_default(); app.is_loading = true; app.push_navigation_stack(ActiveSonarrBlock::RootFolders.into()); @@ -44,7 +42,6 @@ mod tests { fn test_root_folders_ui_renders_empty_root_folders() { let mut app = App::test_default(); app.push_navigation_stack(ActiveSonarrBlock::RootFolders.into()); - app.data.sonarr_data.root_folders = StatefulTable::default(); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { RootFoldersUi::draw(f, app, f.area()); @@ -53,45 +50,23 @@ mod tests { insta::assert_snapshot!(output); } - #[test] - fn test_root_folders_ui_renders_with_root_folders() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::RootFolders.into()); - app.data.sonarr_data.root_folders = StatefulTable::default(); - app.data.sonarr_data.root_folders.set_items(vec![ - RootFolder { - path: "/tv".to_owned(), - accessible: true, - free_space: 1024 * 1024 * 1024 * 100, - ..RootFolder::default() - }, - RootFolder { - path: "/media/tv".to_owned(), - accessible: true, - free_space: 1024 * 1024 * 1024 * 50, - ..RootFolder::default() - }, - ]); + #[rstest] + fn test_root_folders_ui_renders_root_folders_tab( + #[values( + ActiveSonarrBlock::RootFolders, + ActiveSonarrBlock::AddRootFolderPrompt, + ActiveSonarrBlock::DeleteRootFolderPrompt + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { RootFoldersUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); - } - - #[test] - fn test_root_folders_ui_renders_add_root_folder() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::AddRootFolderPrompt.into()); - app.data.sonarr_data.root_folders = StatefulTable::default(); - app.data.sonarr_data.edit_root_folder = Some(HorizontallyScrollableText::default()); - - let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { - RootFoldersUi::draw(f, app, f.area()); - }); - - insta::assert_snapshot!(output); + insta::assert_snapshot!(active_sonarr_block.to_string(), output); } } } diff --git a/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_add_root_folder.snap b/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__AddRootFolderPrompt.snap similarity index 90% rename from src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_add_root_folder.snap rename to src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__AddRootFolderPrompt.snap index 04ed9ac..89588c8 100644 --- a/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_add_root_folder.snap +++ b/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__AddRootFolderPrompt.snap @@ -3,8 +3,8 @@ source: src/ui/sonarr_ui/root_folders/root_folders_ui_tests.rs expression: output --- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── - - + Path Free Space Unmapped Folders +=> /nfs 204800.00 GB 0 @@ -26,6 +26,6 @@ expression: output ╭───────────── Add Root Folder ─────────────╮ - │ │ + │/nfs/tv │ ╰─────────────────────────────────────────────╯ cancel diff --git a/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__DeleteRootFolderPrompt.snap b/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__DeleteRootFolderPrompt.snap new file mode 100644 index 0000000..e3e2165 --- /dev/null +++ b/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__DeleteRootFolderPrompt.snap @@ -0,0 +1,38 @@ +--- +source: src/ui/sonarr_ui/root_folders/root_folders_ui_tests.rs +expression: output +--- +───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── + Path Free Space Unmapped Folders +=> /nfs 204800.00 GB 0 + + + + + + + + + + + + + + ╭────────────────── Delete Root Folder ───────────────────╮ + │ Do you really want to delete this root folder: │ + │ /nfs? │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │╭────────────────────────────╮╭───────────────────────────╮│ + ││ Yes ││ No ││ + │╰────────────────────────────╯╰───────────────────────────╯│ + ╰───────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_with_root_folders.snap b/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__RootFolders.snap similarity index 72% rename from src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_with_root_folders.snap rename to src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__RootFolders.snap index 7dbd5f6..2700bd5 100644 --- a/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_with_root_folders.snap +++ b/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__RootFolders.snap @@ -4,5 +4,4 @@ expression: output --- ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Path Free Space Unmapped Folders -=> /tv 100.00 GB 0 - /media/tv 50.00 GB 0 +=> /nfs 204800.00 GB 0 diff --git a/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_loading_state.snap b/src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_loading.snap similarity index 100% rename from src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/root_folders/snapshots/managarr__ui__sonarr_ui__root_folders__root_folders_ui_tests__tests__snapshot_tests__root_folders_ui_renders_loading.snap diff --git a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Blocklist.snap b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Blocklist.snap new file mode 100644 index 0000000..8954c9e --- /dev/null +++ b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Blocklist.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/sonarr_ui_tests.rs +expression: output +--- +╭ Series ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Library │ Downloads │ Blocklist │ History │ Root Folders │ Indexers │ System │ +│───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ +│ Series Title ▼ Source Title Language Quality Date │ +│=> Test Series Test Source Title English Bluray-1080p 2024-02-10 07:28:45 UTC │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_history_tab.snap b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Downloads.snap similarity index 96% rename from src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_history_tab.snap rename to src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Downloads.snap index 52d8201..06ca6ee 100644 --- a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_history_tab.snap +++ b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Downloads.snap @@ -5,8 +5,8 @@ expression: output ╭ Series ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Library │ Downloads │ Blocklist │ History │ Root Folders │ Indexers │ System │ │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ -│ │ -│ │ +│ Title Percent Complete Size Output Path Indexer Download Client │ +│=> Test Download Title 50% 3.30 GB /nfs/tv/Test show/season 1/ kickass torrents transmission │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_History.snap b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_History.snap new file mode 100644 index 0000000..537275c --- /dev/null +++ b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_History.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/sonarr_ui_tests.rs +expression: output +--- +╭ Series ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Library │ Downloads │ Blocklist │ History │ Root Folders │ Indexers │ System │ +│───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ +│ Source Title ▼ Event Type Language Quality Date │ +│=> Test source grabbed English Bluray-1080p 2024-02-10 07:28:45 UTC │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_library_tab.snap b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Indexers.snap similarity index 96% rename from src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_library_tab.snap rename to src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Indexers.snap index f8e5e47..6e26942 100644 --- a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_library_tab.snap +++ b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Indexers.snap @@ -5,8 +5,8 @@ expression: output ╭ Series ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Library │ Downloads │ Blocklist │ History │ Root Folders │ Indexers │ System │ │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ -│ Title Year Network Status Rating Type Quality Profile Language Size Monitored Tags │ -│=> Test Series 0 Continuin Standard Any English 0.00 GB │ +│ Indexer RSS Automatic Search Interactive Search Priority Tags │ +│=> Test Indexer Enabled Enabled Enabled 25 alex │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_downloads_tab.snap b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_RootFolders.snap similarity index 96% rename from src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_downloads_tab.snap rename to src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_RootFolders.snap index 52d8201..767cad4 100644 --- a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_ui_renders_downloads_tab.snap +++ b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_RootFolders.snap @@ -5,8 +5,8 @@ expression: output ╭ Series ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Library │ Downloads │ Blocklist │ History │ Root Folders │ Indexers │ System │ │───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ -│ │ -│ │ +│ Path Free Space Unmapped Folders │ +│=> /nfs 204800.00 GB 0 │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Series.snap b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Series.snap new file mode 100644 index 0000000..b364ada --- /dev/null +++ b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_Series.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/sonarr_ui_tests.rs +expression: output +--- +╭ Series ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Library │ Downloads │ Blocklist │ History │ Root Folders │ Indexers │ System │ +│───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────│ +│ Title ▼ Year Network Status Rating Type Quality Profile Language Size Monitored Tags │ +│=> Test 2022 HBO Continuin TV-MA Standard Bluray-1080p English 59.51 GB 🏷 │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_System.snap b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_System.snap new file mode 100644 index 0000000..c163cd3 --- /dev/null +++ b/src/ui/sonarr_ui/snapshots/managarr__ui__sonarr_ui__sonarr_ui_tests__tests__snapshot_tests__sonarr_tabs_System.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/sonarr_ui_tests.rs +expression: output +--- +╭ Series ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ Library │ Downloads │ Blocklist │ History │ Root Folders │ Indexers │ System │ +│╭ Tasks ───────────────────────────────────────────────────────────────────────╮╭ Queued Events ──────────────────────────────────────────────────────────────╮│ +││Name Interval Last Execution Next Execution ││Trigger Status Name Queued Started Duration ││ +││Backup 1 hour now 59 minutes ││manual completed Refresh Monitored 4 minutes ago 4 minutes a 00:03:03 ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +││ ││ ││ +│╰────────────────────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────────────────────────────────────────╯│ +│╭ Logs ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ +││2025-12-16 16:40:59 UTC|INFO|ImportListSyncService|No list items to process ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +││ ││ +│╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/sonarr_ui_tests.rs b/src/ui/sonarr_ui/sonarr_ui_tests.rs index 14c89f7..d52b62a 100644 --- a/src/ui/sonarr_ui/sonarr_ui_tests.rs +++ b/src/ui/sonarr_ui/sonarr_ui_tests.rs @@ -1,15 +1,10 @@ #[cfg(test)] mod tests { - use bimap::BiMap; use strum::IntoEnumIterator; use crate::{ app::App, - models::{ - servarr_data::sonarr::sonarr_data::ActiveSonarrBlock, - sonarr_models::{DownloadRecord, DownloadStatus, Series, SonarrHistoryItem}, - stateful_table::StatefulTable, - }, + models::servarr_data::sonarr::sonarr_data::ActiveSonarrBlock, ui::{DrawUi, sonarr_ui::SonarrUi, ui_test_utils::test_utils::render_to_string_with_app}, }; @@ -22,87 +17,31 @@ mod tests { mod snapshot_tests { use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; - #[test] - fn test_sonarr_ui_renders_downloads_tab() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::Series.into()); - app.data.sonarr_data.quality_profile_map = BiMap::from_iter(vec![(0, "Any".to_owned())]); - app.data.sonarr_data.language_profiles_map = - BiMap::from_iter(vec![(0, "English".to_owned())]); - app.data.sonarr_data.main_tabs.set_index(1); // Downloads tab - app.data.sonarr_data.downloads = StatefulTable::default(); - app.data.sonarr_data.downloads.set_items(vec![ - DownloadRecord { - id: 1, - title: "Test Series S01E01".to_owned(), - status: DownloadStatus::Downloading, - size: 1500000000.0, - sizeleft: 500000000.0, - ..DownloadRecord::default() - }, - DownloadRecord { - id: 2, - title: "Another Series S02E05".to_owned(), - status: DownloadStatus::Downloading, - size: 1200000000.0, - sizeleft: 400000000.0, - ..DownloadRecord::default() - }, - ]); + #[rstest] + #[case(ActiveSonarrBlock::Series, 0)] + #[case(ActiveSonarrBlock::Downloads, 1)] + #[case(ActiveSonarrBlock::Blocklist, 2)] + #[case(ActiveSonarrBlock::History, 3)] + #[case(ActiveSonarrBlock::RootFolders, 4)] + #[case(ActiveSonarrBlock::Indexers, 5)] + #[case(ActiveSonarrBlock::System, 6)] + fn test_sonarr_ui_renders_sonarr_tabs( + #[case] active_sonarr_block: ActiveSonarrBlock, + #[case] index: usize, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + app.data.sonarr_data.main_tabs.set_index(index); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { SonarrUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); - } - - #[test] - fn test_sonarr_ui_renders_history_tab() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::Series.into()); - app.data.sonarr_data.quality_profile_map = BiMap::from_iter(vec![(0, "Any".to_owned())]); - app.data.sonarr_data.language_profiles_map = - BiMap::from_iter(vec![(0, "English".to_owned())]); - app.data.sonarr_data.main_tabs.set_index(2); // History tab - app.data.sonarr_data.history = StatefulTable::default(); - app - .data - .sonarr_data - .history - .set_items(vec![SonarrHistoryItem::default()]); - - let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { - SonarrUi::draw(f, app, f.area()); - }); - - insta::assert_snapshot!(output); - } - - #[test] - fn test_sonarr_ui_renders_library_tab() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::Series.into()); - app.data.sonarr_data.quality_profile_map = BiMap::from_iter(vec![(0, "Any".to_owned())]); - app.data.sonarr_data.language_profiles_map = - BiMap::from_iter(vec![(0, "English".to_owned())]); - app.data.sonarr_data.main_tabs.set_index(0); // Library tab - app.data.sonarr_data.series = StatefulTable::default(); - app.data.sonarr_data.series.set_items(vec![Series { - id: 1, - title: "Test Series".into(), - quality_profile_id: 0, - ..Series::default() - }]); - - let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { - SonarrUi::draw(f, app, f.area()); - }); - - insta::assert_snapshot!(output); + insta::assert_snapshot!(format!("sonarr_tabs_{active_sonarr_block}"), output); } } } diff --git a/src/ui/sonarr_ui/system/mod.rs b/src/ui/sonarr_ui/system/mod.rs index 7876112..96d06ee 100644 --- a/src/ui/sonarr_ui/system/mod.rs +++ b/src/ui/sonarr_ui/system/mod.rs @@ -1,5 +1,8 @@ use std::ops::Sub; +#[cfg(test)] +use crate::ui::ui_test_utils::test_utils::Utc; +#[cfg(not(test))] use chrono::Utc; use ratatui::layout::Layout; use ratatui::style::Style; diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_renders_logs.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__empty_SystemLogs.snap similarity index 100% rename from src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_renders_logs.snap rename to src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__empty_SystemLogs.snap diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__empty_SystemQueuedEvents.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__empty_SystemQueuedEvents.snap new file mode 100644 index 0000000..1f76436 --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__empty_SystemQueuedEvents.snap @@ -0,0 +1,44 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + + + + + ╭ Queued Events ────────────────────────────────────────────────────────────────────────────────╮ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__empty_SystemTasks.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__empty_SystemTasks.snap new file mode 100644 index 0000000..8850c6d --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__empty_SystemTasks.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Tasks ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemLogs.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemLogs.snap new file mode 100644 index 0000000..2a54bbb --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemLogs.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Log Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemQueuedEvents.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemQueuedEvents.snap new file mode 100644 index 0000000..778cfdc --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemQueuedEvents.snap @@ -0,0 +1,44 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + + + + + ╭ Queued Events ────────────────────────────────────────────────────────────────────────────────╮ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_renders_loading_tasks.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemTasks.snap similarity index 100% rename from src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_renders_loading_tasks.snap rename to src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemTasks.snap diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemUpdates.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemUpdates.snap new file mode 100644 index 0000000..ed21afc --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__loading_SystemUpdates.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Updates ───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemLogs.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemLogs.snap new file mode 100644 index 0000000..37b4d25 --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemLogs.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Log Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │2025-12-16 16:40:59 UTC|INFO|ImportListSyncService|No list items to process │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemQueuedEvents.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemQueuedEvents.snap new file mode 100644 index 0000000..8f4fb2a --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemQueuedEvents.snap @@ -0,0 +1,44 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + + + + + ╭ Queued Events ────────────────────────────────────────────────────────────────────────────────╮ + │Trigger Status Name Queued Started Duration │ + │manual completed Refresh Monitored Downlo 4 minutes ago 4 minutes ago 00:03:03 │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemTaskStartConfirmPrompt.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemTaskStartConfirmPrompt.snap new file mode 100644 index 0000000..adc698a --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemTaskStartConfirmPrompt.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Tasks ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ Name Interval Last Execution Next Execution │ + │=> Backup 1 hour now 59 minutes │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ ╭────────────────────── Start Task ───────────────────────╮ │ + │ │ Do you want to manually start this task: Backup? │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │ │ │ + │ │╭────────────────────────────╮╭───────────────────────────╮│ │ + │ ││ Yes ││ No ││ │ + │ │╰────────────────────────────╯╰───────────────────────────╯│ │ + │ ╰───────────────────────────────────────────────────────────╯ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_renders_tasks.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemTasks.snap similarity index 95% rename from src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_renders_tasks.snap rename to src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemTasks.snap index 9a7d336..dfc226c 100644 --- a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_renders_tasks.snap +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemTasks.snap @@ -10,9 +10,9 @@ expression: output ╭ Tasks ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Name Interval Last Execution Next Execution │ - │=> Refresh Series 6 hours 2 hours ago 3 hours │ - │ Check for Updates 1 day 12 hours ago 11 hours │ - │ Housekeeping 1 day 1 day ago now │ + │=> Backup 1 hour now 59 minutes │ + │ │ + │ │ │ │ │ │ │ │ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemUpdates.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemUpdates.snap new file mode 100644 index 0000000..e893c41 --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__popup_SystemUpdates.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Updates ───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │The latest version of Sonarr is already installed │ + │ │ + │4.3.2.1 - 2023-04-15 02:02:53 UTC (Currently Installed) │ + │--------------------------------------------------------------------------------------------------------------------------│ + │New: │ + │ * Cool new thing │ + │Fixed: │ + │ * Some bugs killed │ + │ │ + │ │ + │3.2.1.0 - 2023-04-15 02:02:53 UTC (Previously Installed) │ + │--------------------------------------------------------------------------------------------------------------------------│ + │New: │ + │ * Cool new thing (old) │ + │ * Other cool new thing (old) │ + │ │ + │ │ + │2.1.0 - 2023-04-15 02:02:53 UTC │ + │--------------------------------------------------------------------------------------------------------------------------│ + │Fixed: │ + │ * Killed bug 1 │ + │ * Fixed bug 2 │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_updates_popup_loading_when_empty.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_updates_popup_loading_when_empty.snap new file mode 100644 index 0000000..ed21afc --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_details_ui__system_details_ui_tests__tests__snapshot_tests__system_details_ui_updates_popup_loading_when_empty.snap @@ -0,0 +1,48 @@ +--- +source: src/ui/sonarr_ui/system/system_details_ui_tests.rs +expression: output +--- + + + + + + + ╭ Updates ───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ + │ │ + │ │ + │ Loading ... │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + │ │ + ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemLogs.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemLogs.snap new file mode 100644 index 0000000..fc263ca --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemLogs.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Log Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │2025-12-16 16:40:59 UTC|INFO|ImportListSyncService|No list items to process │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +╰───────────────────│ │────────────────────╯ +╭ Logs ───────────│ │────────────────────╮ +│2025-12-16 16:40:59│ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemQueuedEvents.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemQueuedEvents.snap new file mode 100644 index 0000000..056e356 --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemQueuedEvents.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Queued Events ────────────────────────────────────────────────────────────────────────────────╮ │ +│ │Trigger Status Name Queued Started Duration │ │ +│ │manual completed Refresh Monitored Downlo 4 minutes ago 4 minutes ago 00:03:03 │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +╰────────────────────────────────│ │────────────────────────────────╯ +╭ Logs ────────────────────────│ │────────────────────────────────╮ +│2025-12-16 16:40:59 UTC|INFO|Imp│ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemTaskStartConfirmPrompt.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemTaskStartConfirmPrompt.snap new file mode 100644 index 0000000..2ef27cf --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemTaskStartConfirmPrompt.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Tasks ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Name Interval Last Execution Next Execution │ │ +│ │=> Backup 1 hour now 59 minutes │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ ╭────────────────────── Start Task ───────────────────────╮ │ │ +│ │ │ Do you want to manually start this task: Backup? │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +╰───────────────────│ │ │ │────────────────────╯ +╭ Logs ───────────│ │ │ │────────────────────╮ +│2025-12-16 16:40:59│ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │ │ │ │ +│ │ │╭────────────────────────────╮╭───────────────────────────╮│ │ │ +│ │ ││ Yes ││ No ││ │ │ +│ │ │╰────────────────────────────╯╰───────────────────────────╯│ │ │ +│ │ ╰───────────────────────────────────────────────────────────╯ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemTasks.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemTasks.snap new file mode 100644 index 0000000..443f812 --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemTasks.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Tasks ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │ Name Interval Last Execution Next Execution │ │ +│ │=> Backup 1 hour now 59 minutes │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +╰───────────────────│ │────────────────────╯ +╭ Logs ───────────│ │────────────────────╮ +│2025-12-16 16:40:59│ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemUpdates.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemUpdates.snap new file mode 100644 index 0000000..3e3fe6d --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__popups_over_system_ui_SystemUpdates.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ╭ Updates ───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ +│ │The latest version of Sonarr is already installed │ │ +│ │ │ │ +│ │4.3.2.1 - 2023-04-15 02:02:53 UTC (Currently Installed) │ │ +│ │--------------------------------------------------------------------------------------------------------------------------│ │ +│ │New: │ │ +│ │ * Cool new thing │ │ +│ │Fixed: │ │ +│ │ * Some bugs killed │ │ +│ │ │ │ +│ │ │ │ +│ │3.2.1.0 - 2023-04-15 02:02:53 UTC (Previously Installed) │ │ +│ │--------------------------------------------------------------------------------------------------------------------------│ │ +│ │New: │ │ +│ │ * Cool new thing (old) │ │ +│ │ * Other cool new thing (old) │ │ +│ │ │ │ +│ │ │ │ +╰───────────────────│2.1.0 - 2023-04-15 02:02:53 UTC │────────────────────╯ +╭ Logs ───────────│--------------------------------------------------------------------------------------------------------------------------│────────────────────╮ +│2025-12-16 16:40:59│Fixed: │ │ +│ │ * Killed bug 1 │ │ +│ │ * Fixed bug 2 │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ │ │ │ +│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_loading_state.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_logs_loading.snap similarity index 100% rename from src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_loading_state.snap rename to src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_logs_loading.snap diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab.snap new file mode 100644 index 0000000..5d8e5c1 --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│Name Interval Last Execution Next Execution ││Trigger Status Name Queued Started Duration │ +│Backup 1 hour now 59 minutes ││manual completed Refresh Monitored D 4 minutes ago 4 minutes a 00:03:03 │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰─────────────────────────────────────────────────────────────────────────────────╯╰────────────────────────────────────────────────────────────────────────────────╯ +╭ Logs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│2025-12-16 16:40:59 UTC|INFO|ImportListSyncService|No list items to process │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_menu.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab_empty.snap similarity index 100% rename from src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_menu.snap rename to src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab_empty.snap diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab_loading.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab_loading.snap new file mode 100644 index 0000000..c7ce3d6 --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab_loading.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│ ││ │ +│ ││ │ +│ Loading ... ││ Loading ... │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰─────────────────────────────────────────────────────────────────────────────────╯╰────────────────────────────────────────────────────────────────────────────────╯ +╭ Logs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│ │ +│ │ +│ Loading ... │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab_task_and_events_loading.snap b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab_task_and_events_loading.snap new file mode 100644 index 0000000..cbfcdc4 --- /dev/null +++ b/src/ui/sonarr_ui/system/snapshots/managarr__ui__sonarr_ui__system__system_ui_tests__tests__snapshot_tests__system_ui_renders_system_tab_task_and_events_loading.snap @@ -0,0 +1,54 @@ +--- +source: src/ui/sonarr_ui/system/system_ui_tests.rs +expression: output +--- +╭ Tasks ────────────────────────────────────────────────────────────────────────╮╭ Queued Events ───────────────────────────────────────────────────────────────╮ +│ ││ │ +│ ││ │ +│ Loading ... ││ Loading ... │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +│ ││ │ +╰─────────────────────────────────────────────────────────────────────────────────╯╰────────────────────────────────────────────────────────────────────────────────╯ +╭ Logs ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ +│2025-12-16 16:40:59 UTC|INFO|ImportListSyncService|No list items to process │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/src/ui/sonarr_ui/system/system_details_ui_tests.rs b/src/ui/sonarr_ui/system/system_details_ui_tests.rs index a30cabb..ec42b04 100644 --- a/src/ui/sonarr_ui/system/system_details_ui_tests.rs +++ b/src/ui/sonarr_ui/system/system_details_ui_tests.rs @@ -24,16 +24,58 @@ mod tests { mod snapshot_tests { use super::*; - use crate::models::sonarr_models::{SonarrTask, SonarrTaskName}; - use crate::models::stateful_table::StatefulTable; + use crate::models::ScrollableText; use crate::ui::ui_test_utils::test_utils::TerminalSize; - use chrono::{Duration, Utc}; + use rstest::rstest; - #[test] - fn test_system_details_ui_renders_loading_tasks() { + #[rstest] + fn test_system_details_ui_popups( + #[values( + ActiveSonarrBlock::SystemLogs, + ActiveSonarrBlock::SystemQueuedEvents, + ActiveSonarrBlock::SystemTasks, + ActiveSonarrBlock::SystemTaskStartConfirmPrompt, + ActiveSonarrBlock::SystemUpdates + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SystemDetailsUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(format!("popup_{active_sonarr_block}"), output); + } + + #[rstest] + fn test_system_details_ui_loading( + #[values( + ActiveSonarrBlock::SystemLogs, + ActiveSonarrBlock::SystemQueuedEvents, + ActiveSonarrBlock::SystemTasks, + ActiveSonarrBlock::SystemUpdates + )] + active_sonarr_block: ActiveSonarrBlock, + ) { let mut app = App::test_default(); app.is_loading = true; - app.push_navigation_stack(ActiveSonarrBlock::SystemTasks.into()); + app.push_navigation_stack(active_sonarr_block.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SystemDetailsUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(format!("loading_{active_sonarr_block}"), output); + } + + #[test] + fn test_system_details_ui_updates_popup_loading_when_empty() { + let mut app = App::test_default_fully_populated(); + app.is_loading = true; + app.push_navigation_stack(ActiveSonarrBlock::SystemUpdates.into()); + app.data.sonarr_data.updates = ScrollableText::with_string("".to_string()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { SystemDetailsUi::draw(f, app, f.area()); @@ -42,63 +84,23 @@ mod tests { insta::assert_snapshot!(output); } - #[test] - fn test_system_details_ui_renders_logs() { + #[rstest] + fn test_system_details_ui_popups_empty( + #[values( + ActiveSonarrBlock::SystemLogs, + ActiveSonarrBlock::SystemQueuedEvents, + ActiveSonarrBlock::SystemTasks + )] + active_sonarr_block: ActiveSonarrBlock, + ) { let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::SystemLogs.into()); - app.data.sonarr_data.logs.set_items(vec![ - "2023-01-01T12:00:00Z | Info | Test log message 1" - .to_owned() - .into(), - "2023-01-01T12:01:00Z | Warn | Test warning message" - .to_owned() - .into(), - ]); + app.push_navigation_stack(active_sonarr_block.into()); let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { SystemDetailsUi::draw(f, app, f.area()); }); - insta::assert_snapshot!(output); - } - - #[test] - fn test_system_details_ui_renders_tasks() { - let mut app = App::test_default(); - app.push_navigation_stack(ActiveSonarrBlock::SystemTasks.into()); - - let now = Utc::now(); - let mut tasks = StatefulTable::default(); - tasks.set_items(vec![ - SonarrTask { - name: "Refresh Series".to_owned(), - task_name: SonarrTaskName::RefreshSeries, - interval: 360, - last_execution: now - Duration::hours(2), - next_execution: now + Duration::hours(4), - }, - SonarrTask { - name: "Check for Updates".to_owned(), - task_name: SonarrTaskName::ApplicationUpdateCheck, - interval: 1440, - last_execution: now - Duration::hours(12), - next_execution: now + Duration::hours(12), - }, - SonarrTask { - name: "Housekeeping".to_owned(), - task_name: SonarrTaskName::Housekeeping, - interval: 1440, - last_execution: now - Duration::hours(24), - next_execution: now, - }, - ]); - app.data.sonarr_data.tasks = tasks; - - let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { - SystemDetailsUi::draw(f, app, f.area()); - }); - - insta::assert_snapshot!(output); + insta::assert_snapshot!(format!("empty_{active_sonarr_block}"), output); } } } diff --git a/src/ui/sonarr_ui/system/system_ui_tests.rs b/src/ui/sonarr_ui/system/system_ui_tests.rs index 8450d11..39b258c 100644 --- a/src/ui/sonarr_ui/system/system_ui_tests.rs +++ b/src/ui/sonarr_ui/system/system_ui_tests.rs @@ -26,12 +26,14 @@ mod tests { } mod snapshot_tests { + use crate::models::stateful_list::StatefulList; use crate::ui::ui_test_utils::test_utils::TerminalSize; + use rstest::rstest; use super::*; #[test] - fn test_system_ui_renders_loading_state() { + fn test_system_ui_renders_system_tab_loading() { let mut app = App::test_default(); app.is_loading = true; app.push_navigation_stack(ActiveSonarrBlock::System.into()); @@ -44,7 +46,46 @@ mod tests { } #[test] - fn test_system_ui_renders_system_menu() { + fn test_system_ui_renders_logs_loading() { + let mut app = App::test_default_fully_populated(); + app.is_loading = true; + app.push_navigation_stack(ActiveSonarrBlock::System.into()); + app.data.sonarr_data.logs = StatefulList::default(); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SystemUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_system_ui_renders_system_tab_task_and_events_loading() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::System.into()); + app.is_loading = true; + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SystemUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_system_ui_renders_system_tab() { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(ActiveSonarrBlock::System.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SystemUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!(output); + } + + #[test] + fn test_system_ui_renders_system_tab_empty() { let mut app = App::test_default(); app.push_navigation_stack(ActiveSonarrBlock::System.into()); @@ -54,5 +95,29 @@ mod tests { insta::assert_snapshot!(output); } + + #[rstest] + fn test_system_details_ui_renders_popups_over_system_ui( + #[values( + ActiveSonarrBlock::SystemLogs, + ActiveSonarrBlock::SystemQueuedEvents, + ActiveSonarrBlock::SystemTasks, + ActiveSonarrBlock::SystemTaskStartConfirmPrompt, + ActiveSonarrBlock::SystemUpdates + )] + active_sonarr_block: ActiveSonarrBlock, + ) { + let mut app = App::test_default_fully_populated(); + app.push_navigation_stack(active_sonarr_block.into()); + + let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| { + SystemUi::draw(f, app, f.area()); + }); + + insta::assert_snapshot!( + format!("popups_over_system_ui_{active_sonarr_block}"), + output + ); + } } }