Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

Scenario s41: a value typed after picking an edge goes into Fillet's heads-up radius (as Extrude and Hole)

bherbruck7a46436158e9
diff --git a/crates/ui-egui/tests/scenarios.rs b/crates/ui-egui/tests/scenarios.rs
index fb4b84d6cd..f19144c3f6 100644
--- a/crates/ui-egui/tests/scenarios.rs
+++ b/crates/ui-egui/tests/scenarios.rs
@@ -55,7 +55,8 @@ scenarios!(
s35_construction_mode,
s36_sketch_palette_visible,
s32_cut_in_active_component,
- s30_pattern_a_hole
+ s30_pattern_a_hole,
+ s41_type_value_after_picking
);
/// Scenarios written ahead of their fixes or features (the user's open bugs): run with
diff --git a/crates/ui-egui/tests/scenarios/s41_type_value_after_picking.json b/crates/ui-egui/tests/scenarios/s41_type_value_after_picking.json
new file mode 100644
index 0000000000..2cb4862e7d
--- /dev/null
+++ b/crates/ui-egui/tests/scenarios/s41_type_value_after_picking.json
@@ -0,0 +1,14 @@
+[
+ {"note": "Like Fusion, typing a number after picking the geometry goes into the dialog's heads-up value: Fillet after picking an edge, as Hole after picking a face and Extrude after opening do today."},
+ {"start": "SketchCreate"}, {"click": {"plane": "XY"}},
+ {"start": "ShapeRectangleTwoPoint"}, {"click": {"sketch": [0, 0]}}, {"click": {"sketch": [60, 40]}}, {"key": "Escape"},
+ {"start": "SketchStop"},
+ {"call": "ui.view", "params": {"view": "home"}},
+ {"start": "Extrude"}, {"text": "15"}, {"key": "Enter"},
+ {"expect": {"volume": 36000}},
+ {"start": "FusionFilletEdgesCommand"},
+ {"click": {"world": [30, 0, 15]}},
+ {"text": "3"},
+ {"key": "Enter"},
+ {"expect": {"dialog": null, "volume": 35884.13}}
+]