diff --git a/crates/ui-egui/src/dialogs_thread.rs b/crates/ui-egui/src/dialogs_thread.rs index 516210998..b3cf41493 100644 --- a/crates/ui-egui/src/dialogs_thread.rs +++ b/crates/ui-egui/src/dialogs_thread.rs @@ -1087,7 +1087,9 @@ mod contribution_tests { *designation = Some("1/4-20 UNC".into()); *modeled = true; let reopened = Session::new(Document::from_json(&app.session.doc.to_json()).unwrap()); - assert!(reopened.model.results.last().unwrap().error.as_ref().unwrap().contains("ISO metric")); + // The thread is metric (the M8 it was made as): a unified designation is not one of its. + let error = reopened.model.results.last().unwrap().error.clone().unwrap(); + assert!(error.contains("unknown metric thread `1/4-20 UNC`"), "{error}"); } #[test] diff --git a/crates/ui-egui/src/preselect_tests.rs b/crates/ui-egui/src/preselect_tests.rs index bf880da4c..0fdcdcecc 100644 --- a/crates/ui-egui/src/preselect_tests.rs +++ b/crates/ui-egui/src/preselect_tests.rs @@ -799,8 +799,8 @@ fn press_pull_then_curved_face_offsets_it() { crate::viewport::dialog_pick(&mut app, &hit, Sel::Face { body: "Body1".into(), index: wall, point: p }); let d = app.dialog.clone().unwrap(); assert!(matches!(d.kind, Kind::OffsetFaces { .. })); - // Both halves of the hole's wall. - assert_eq!(d.inputs[0].items.len(), 2); + // The hole's whole wall: one face, closed on its seam. + assert_eq!(d.inputs[0].items.len(), 1); let mut app = app_with(script); app.start("solid.press_pull");