pipe viewer-1: fixes for viewer (2 tests)

This commit is contained in:
Dylan M. Taylor
2026-11-20 09:26:23 -05:00
parent 0127e7b47e
commit 3d512efe25
+7 -4
View File
@@ -1579,11 +1579,14 @@ fn optimizer_audits_space_usage() {
h.run_steps(2);
h.get_by_label("Audit space usage…").click();
h.run_steps(3);
h.get_by_label("Space Audit");
assert!(crate::support::step_until(&mut h, |h| h.query_by_label("Content Streams").is_some()), "the measure finished");
h.get_by_label("Total");
h.get_by_role_and_label(egui::accesskit::Role::Dialog, "Space Audit");
assert!(
crate::support::step_until(&mut h, |h| h.query_by_role_and_label(egui::accesskit::Role::ListItem, "Content Streams").is_some()),
"the measure finished"
);
h.get_by_role_and_label(egui::accesskit::Role::ListItem, "Total");
assert_eq!(h.state().dialogs.open_dialogs().len(), 2, "the audit is open over the optimizer");
h.get_all_by_label("OK").last().expect("the audit's OK").click();
h.get_by_role_and_label(egui::accesskit::Role::Dialog, "Space Audit").get_by_label("OK").click();
h.run_steps(2);
assert_eq!(h.state().dialogs.open_dialogs().len(), 1, "back to the optimizer");
}