Repair mounted Scenario fixtures for qualified owners and inspector tabs

This commit is contained in:
2026-09-23 06:12:13 -07:00
parent f82e29d6b8
commit e34ba27e26
2 changed files with 37 additions and 3 deletions
@@ -54,7 +54,11 @@ async fn saved_details_opens_real_editable_inspector_and_returns_to_same_view()
open_details(&mut app);
mounted.settle(&mut app).await;
let before = mounted.geometry(&app);
assert!(before.scrolls.contains_key(&widget::Id::new("inspector")));
assert_eq!(
app.inspector_tab,
crate::navigation::InspectorTab::Connections
);
assert!(!before.scrolls.contains_key(&widget::Id::new("inspector")));
let (details, offset) = before.scrolls[&widget::Id::new("scenario-details")];
let button = before.bounds("scenario-properties").center() - offset;
assert!(
@@ -84,7 +88,7 @@ async fn saved_details_opens_real_editable_inspector_and_returns_to_same_view()
assert_eq!(
stored_camera(&app),
camera,
"restoring panels retains camera intent"
"opening Properties retains camera intent"
);
assert!(Arc::ptr_eq(&original, &app.document.snapshot()));
assert_eq!(app.document.bundle(), &bundle);
@@ -251,7 +255,11 @@ async fn details_opens_current_saved_view_properties_after_following_diagram_pic
let snapshot = app.document.snapshot();
let bundle = app.document.bundle().clone();
let before = mounted.geometry(&app);
assert!(before.scrolls.contains_key(&widget::Id::new("inspector")));
assert_eq!(
app.inspector_tab,
crate::navigation::InspectorTab::Connections
);
assert!(!before.scrolls.contains_key(&widget::Id::new("inspector")));
let (details, offset) = before.scrolls[&widget::Id::new("scenario-details")];
let point = before.bounds("scenario-properties").center() - offset;
assert!(details.contains(point));