test: Created snapshot tests for all Radarr UI modules

This commit is contained in:
2025-12-15 20:17:09 -07:00
parent 7084ca1be2
commit 316ed64315
273 changed files with 8859 additions and 2031 deletions
+7 -6
View File
@@ -1,6 +1,9 @@
use std::{cmp, iter};
use chrono::{Duration, Utc};
#[cfg(test)]
use crate::ui::ui_test_utils::test_utils::Utc;
#[cfg(not(test))]
use chrono::Utc;
use chrono::{Duration};
use ratatui::Frame;
use ratatui::layout::{Constraint, Layout, Rect};
use ratatui::prelude::Stylize;
@@ -34,6 +37,8 @@ mod collections;
mod downloads;
mod indexers;
mod library;
#[cfg(test)]
mod radarr_ui_tests;
mod root_folders;
mod system;
@@ -248,7 +253,3 @@ fn draw_radarr_logo(f: &mut Frame<'_>, area: Rect) {
.centered();
f.render_widget(logo, area);
}
#[cfg(test)]
#[path = "radarr_ui_tests.rs"]
mod radarr_ui_tests;