fix(tui): fit confirmation popups to content
This commit is contained in:
1 parent
992f15b082
commit
6527b24081
6 files changed
+31
-3
No files matched your search
@@ -138,3 +138,11 @@ fn new_instance_renders_confirm_step() {
|
||||
.unwrap();
|
||||
insta::assert_snapshot!(terminal.backend());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn new_instance_confirmation_area_fits_its_summary() {
|
||||
let _serial = TEST_LOCK.lock().unwrap_or_else(|e| e.into_inner());
|
||||
reset_wizard_state(WizardStep::Confirm);
|
||||
|
||||
assert_eq!(popup_rect(Rect::new(0, 0, 100, 30)).height, 6);
|
||||
}
|
||||
Reference in new issue
Block a user