Skip to content

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

Scenario: set the history sketches layout through ui.prefs (#8961)

bherbruckcd12d9d8e7dd
diff --git a/crates/ui-egui/tests/scenarios/history_sketches_under_feature.json b/crates/ui-egui/tests/scenarios/history_sketches_under_feature.json
index c5f286df6a..ad3df2b15a 100644
--- a/crates/ui-egui/tests/scenarios/history_sketches_under_feature.json
+++ b/crates/ui-egui/tests/scenarios/history_sketches_under_feature.json
@@ -19,9 +19,7 @@
{"note": "In order (the default): every sketch is a row of its own and nothing folds."},
{"expect": {"prefs": {"history_sketches": "in_order"}, "shown_handles": ["timeline:Sketch1", "timeline:Extrude1", "timeline:Sketch2", "timeline:Cut1", "timeline:Sketch3", "timeline:Boss1", "timeline:Hole1"], "hidden_handles": ["timeline-sketches-fold:Extrude1", "timeline-sketches-fold:Boss1"]}},
{"note": "Preferences › Interface › Sketches: Under their feature. Each sketch folds under its feature; the folds start closed."},
- {"call": "ui.prefs", "params": {"open": "Interface"}},
- {"widget": "Under their feature"},
- {"widget": "OK"},
+ {"call": "ui.prefs", "params": {"history_sketches": "under_feature"}},
{"expect": {"prefs": {"dialog": null, "history_sketches": "under_feature"}, "shown_handles": ["timeline:Extrude1", "timeline-sketches-fold:Extrude1", "timeline:Cut1", "timeline-sketches-fold:Cut1", "timeline:Boss1", "timeline-sketches-fold:Boss1", "timeline:Hole1", "timeline-sketches-fold:Hole1"], "hidden_handles": ["timeline:Sketch1", "timeline:Sketch2", "timeline:Sketch3"]}},
{"note": "Sketch3 is listed under Boss1, its first feature; Hole1 shows a row that selects the same sketch."},
{"click": {"handle": "timeline-sketches-fold:Boss1"}},