test: Created snapshot tests for all Radarr UI modules
This commit is contained in:
@@ -21,6 +21,8 @@ mod tests {
|
||||
}
|
||||
|
||||
mod snapshot_tests {
|
||||
use crate::ui::ui_test_utils::test_utils::TerminalSize;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
@@ -51,7 +53,7 @@ mod tests {
|
||||
},
|
||||
]);
|
||||
|
||||
let output = render_to_string_with_app(120, 30, &mut app, |f, app| {
|
||||
let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| {
|
||||
SonarrUi::draw(f, app, f.area());
|
||||
});
|
||||
|
||||
@@ -73,7 +75,7 @@ mod tests {
|
||||
.history
|
||||
.set_items(vec![SonarrHistoryItem::default()]);
|
||||
|
||||
let output = render_to_string_with_app(120, 30, &mut app, |f, app| {
|
||||
let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| {
|
||||
SonarrUi::draw(f, app, f.area());
|
||||
});
|
||||
|
||||
@@ -96,7 +98,7 @@ mod tests {
|
||||
..Series::default()
|
||||
}]);
|
||||
|
||||
let output = render_to_string_with_app(120, 30, &mut app, |f, app| {
|
||||
let output = render_to_string_with_app(TerminalSize::Large, &mut app, |f, app| {
|
||||
SonarrUi::draw(f, app, f.area());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user