Tests: restore the data validation dialog test the rebase dropped (#1822)

This commit is contained in:
alosslessdev
2026-10-25 17:45:30 -05:00
parent a5b1415c9e
commit 18f11876e3
+10
View File
@@ -3800,6 +3800,16 @@ mod tests {
assert!(gridcraft_engine::cmd::data::check_validation(&doc.wb, 0, at, "4").is_some());
}
#[test]
fn data_validation_without_a_rule_opens_on_a_blank_list() {
let mut session = gridcraft_engine::Session::default();
session.new_workbook();
let mut app = SheetApp::new(session, Default::default());
let d = Dialog::open(&mut app, "dataValidation", json!({})).unwrap();
assert_eq!(d.values["type"], "list");
assert!(d.values.get("formula1").is_none());
}
#[test]
fn formula_rule_picks_references_and_keeps_the_opening_range() {
let mut session = gridcraft_engine::Session::default();