UI scenarios, batch 3: plastic enclosure (shell, boss, lip, snap fit), appearance then STEP and 3MF export with the colour, start page sample edited, saved and reopened, two design tabs with their own undo, the S toolbox and V visibility, 3D sketch lines snapped to the model then a pipe along them, canvas inserted and calibrated, section analysis with a joint driven. Harness: until (waits for background work), make_image, widget near a label, checks for files' text, start page, open designs, design name, hidden bodies, canvas width and section. Fixes: Enter in the S command search runs the first match (it read the focus after taking it back); Sketch Palette toggles are checkboxes with their labels (click the text to toggle); a dialog test no longer panics dropping unpainted textures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
bherbruckandClaude Opus 5.5 committed 2026-10-08 11:04:35 +00:00
1 parent 4c3a5d9853
commit 829c4a2811
13 files changed
+1148 -76

No files matched your search

+9 -1
View File
@@ -34,5 +34,13 @@ scenarios!(
s09_step_roundtrip_hole,
s10_parameters_drive_model,
s11_sketch_constraints,
s12_pattern_bodies
s12_pattern_bodies,
s13_plastic_enclosure,
s14_appearance_export,
s15_start_page_sample_save_reopen,
s16_tabs_separate_undo,
s17_toolbox_and_visibility,
s18_3d_sketch_pipe,
s19_canvas_calibrate,
s20_section_with_joint_drive
);
@@ -0,0 +1,187 @@
[
{
"call": "ui.set",
"params": {
"tab": "PLASTIC"
}
},
{
"start": "SketchCreate"
},
{
"click": {
"plane": "XY"
}
},
{
"start": "ShapeRectangleTwoPoint"
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
60,
40
]
}
},
{
"key": "Escape"
},
{
"start": "SketchStop"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "Extrude"
},
{
"text": "30"
},
{
"key": "Enter"
},
{
"expect": {
"bodies": 1,
"volume": 72000
}
},
{
"start": "FusionShellBodyCommand"
},
{
"click": {
"world": [
30,
20,
30
]
}
},
{
"text": "2"
},
{
"key": "Enter"
},
{
"expect": {
"bodies": 1,
"errors": 0,
"dialog": null,
"volume": [
15552,
0.0001
]
}
},
{
"shot": "s13_shell"
},
{
"call": "ui.view",
"params": {
"view": "top"
}
},
{
"start": "FusionBossCommand"
},
{
"click": {
"world": [
30,
28,
2
]
}
},
{
"key": "Enter"
},
{
"expect": {
"errors": 0,
"dialog": null,
"volume": [
15764.04,
0.0001
]
}
},
{
"shot": "s13_boss"
},
{
"start": "FusionLipCommand"
},
{
"click": {
"world": [
1,
20,
30
]
}
},
{
"key": "Enter"
},
{
"expect": {
"errors": 0,
"dialog": null,
"volume": [
16334.04,
0.0001
]
}
},
{
"shot": "s13_lip"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "FusionSnapFitCommand"
},
{
"click": {
"world": [
58,
20,
15
]
}
},
{
"key": "Enter"
},
{
"expect": {
"errors": 0,
"dialog": null,
"bodies": 1
}
},
{
"shot": "s13_snapfit"
}
]
@@ -0,0 +1,111 @@
[
{
"start": "SketchCreate"
},
{
"click": {
"plane": "XY"
}
},
{
"start": "ShapeRectangleTwoPoint"
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
30,
20
]
}
},
{
"key": "Escape"
},
{
"start": "SketchStop"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "Extrude"
},
{
"text": "10"
},
{
"key": "Enter"
},
{
"click": {
"world": [
15,
10,
10
]
}
},
{
"key": "A"
},
{
"expect": {
"dialog": "Appearance"
}
},
{
"shot": "s14_appearance"
},
{
"widget": "OK"
},
{
"expect": {
"dialog": null,
"errors": 0
}
},
{
"click": [
127,
16
]
},
{
"widget": "Export STEP\u2026"
},
{
"expect": {
"file": "Untitled.step",
"file_contains": {
"file": "Untitled.step",
"text": "COLOUR_RGB('',0.7686"
}
}
},
{
"click": [
127,
16
]
},
{
"widget": "Export 3MF\u2026"
},
{
"expect": {
"file": "Untitled.3mf"
}
}
]
@@ -0,0 +1,24 @@
[
{"click": [248, 17]},
{"expect": {"home": true}},
{"call": "ui.home", "params": {"sample": 0}},
{"until": {"home": false}},
{"expect": {"errors": 0, "bodies": 1, "name": "Sample Plate", "param": {"width": 80}}},
{"shot": "s15_sample"},
{"start": "ChangeParameterCommand"},
{"widget": "8 mm"},
{"key": "A", "cmd": true},
{"text": "10 mm"},
{"key": "Enter"},
{"widget": "Close window"},
{"expect": {"param": {"thickness": 10}, "errors": 0}},
{"key": "S", "cmd": true},
{"expect": {"file": "Sample Plate.solvecraft"}},
{"key": "N", "cmd": true},
{"expect": {"bodies": 0}},
{"choose_file": "Sample Plate.solvecraft"},
{"key": "O", "cmd": true},
{"debug": 1},
{"expect": {"bodies": 1, "errors": 0, "param": {"thickness": 10}}},
{"shot": "s15_reopened"}
]
@@ -0,0 +1,39 @@
[
{"start": "SketchCreate"},
{"click": {"plane": "XY"}},
{"start": "ShapeRectangleTwoPoint"},
{"click": {"sketch": [0, 0]}},
{"click": {"sketch": [30, 20]}},
{"key": "Escape"},
{"start": "SketchStop"},
{"start": "Extrude"},
{"text": "10"},
{"key": "Enter"},
{"expect": {"bodies": 1, "volume": 6000, "documents": 1}},
{"key": "N", "cmd": true},
{"expect": {"bodies": 0, "documents": 2, "features": 0}},
{"start": "SketchCreate"},
{"click": {"plane": "XY"}},
{"start": "CircleCenterRadius"},
{"click": {"sketch": [0, 0]}},
{"click": {"sketch": [10, 0]}},
{"key": "Escape"},
{"start": "SketchStop"},
{"start": "Extrude"},
{"text": "5"},
{"key": "Enter"},
{"expect": {"bodies": 1, "volume": [1570.8, 1e-3]}},
{"key": "Z", "cmd": true},
{"expect": {"bodies": 0}},
{"call": "ui.documents", "params": {"action": "switch", "index": 0}},
{"expect": {"bodies": 1, "volume": 6000}},
{"key": "Z", "cmd": true},
{"expect": {"bodies": 0}},
{"key": "Y", "cmd": true},
{"expect": {"bodies": 1, "volume": 6000}},
{"call": "ui.documents", "params": {"action": "switch", "index": 1}},
{"expect": {"bodies": 0}},
{"key": "Y", "cmd": true},
{"expect": {"bodies": 1, "volume": [1570.8, 1e-3]}},
{"shot": "s16_second_tab"}
]
@@ -0,0 +1,114 @@
[
{
"key": "S"
},
{
"text": "Create Sketch"
},
{
"key": "Enter"
},
{
"click": {
"plane": "XY"
}
},
{
"expect": {
"sketching": true
}
},
{
"start": "ShapeRectangleTwoPoint"
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
30,
20
]
}
},
{
"key": "Escape"
},
{
"key": "S"
},
{
"text": "Finish Sketch"
},
{
"key": "Enter"
},
{
"expect": {
"sketching": false
}
},
{
"key": "S"
},
{
"text": "Extrude"
},
{
"key": "Enter"
},
{
"text": "10"
},
{
"key": "Enter"
},
{
"expect": {
"bodies": 1,
"volume": 6000
}
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"click": {
"world": [
15,
10,
10
]
}
},
{
"key": "V"
},
{
"expect": {
"hidden": [
"Body1"
]
}
},
{
"shot": "s17_hidden"
},
{
"key": "V"
},
{
"expect": {
"hidden": []
}
}
]
@@ -0,0 +1,168 @@
[
{
"start": "SketchCreate"
},
{
"click": {
"plane": "XY"
}
},
{
"start": "ShapeRectangleTwoPoint"
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
30,
20
]
}
},
{
"key": "Escape"
},
{
"start": "SketchStop"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "Extrude"
},
{
"text": "15"
},
{
"key": "Enter"
},
{
"start": "SketchCreate"
},
{
"click": {
"world": [
15,
0,
7
]
}
},
{
"expect": {
"sketching": true
}
},
{
"widget": "3D Sketch"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "DrawPolyline"
},
{
"click": {
"world": [
30,
0,
15
]
}
},
{
"click": {
"world": [
30,
20,
15
]
}
},
{
"click": {
"world": [
0,
20,
15
]
}
},
{
"key": "Escape"
},
{
"key": "Escape"
},
{
"shot": "s18_3d_lines"
},
{
"expect": {
"query": {
"command": "sketch.inspect",
"path": [
"wires",
1,
"id"
],
"value": "w2"
}
}
},
{
"start": "SketchStop"
},
{
"start": "PrimitivePipe"
},
{
"click": {
"world": [
30,
10,
15
]
}
},
{
"click": {
"world": [
15,
20,
15
]
}
},
{
"text": "3"
},
{
"key": "Enter"
},
{
"expect": {
"bodies": 2,
"errors": 0,
"dialog": null
}
},
{
"shot": "s18_pipe"
}
]
@@ -0,0 +1,72 @@
[
{
"make_image": "pic.png"
},
{
"choose_file": "pic.png"
},
{
"start": "FusionAddCanvasCommand"
},
{
"click": {
"plane": "XY"
}
},
{
"key": "Escape"
},
{
"expect": {
"canvas_width": [
100,
0.5
]
}
},
{
"call": "ui.menu",
"params": {
"x": 100,
"y": 260,
"target": {
"type": "canvas",
"id": 1
}
}
},
{
"call": "ui.menuPick",
"params": {
"item": "Calibrate"
}
},
{
"widget": "100.0 mm",
"near": "Distance"
},
{
"key": "A",
"cmd": true
},
{
"text": "50"
},
{
"key": "Enter"
},
{
"widget": "Calibrate"
},
{
"expect": {
"canvas_width": [
50,
0.01
]
}
},
{
"shot": "s19_canvas"
}
]
@@ -0,0 +1,249 @@
[
{
"start": "FusionCreateNewComponentCommand"
},
{
"key": "Enter"
},
{
"start": "SketchCreate"
},
{
"click": {
"plane": "XY"
}
},
{
"start": "ShapeRectangleTwoPoint"
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
20,
20
]
}
},
{
"key": "Escape"
},
{
"start": "SketchStop"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "Extrude"
},
{
"text": "10"
},
{
"key": "Enter"
},
{
"call": "ui.menu",
"params": {
"x": 100,
"y": 170,
"target": {
"type": "component",
"id": 0
}
}
},
{
"call": "ui.menuPick",
"params": {
"item": "Activate"
}
},
{
"start": "FusionCreateNewComponentCommand"
},
{
"key": "Enter"
},
{
"start": "SketchCreate"
},
{
"click": {
"plane": "XZ"
}
},
{
"start": "ShapeRectangleTwoPoint"
},
{
"click": {
"sketch": [
30,
0
]
}
},
{
"click": {
"sketch": [
50,
10
]
}
},
{
"key": "Escape"
},
{
"start": "SketchStop"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "Extrude"
},
{
"click": {
"world": [
40,
0,
5
]
}
},
{
"text": "20"
},
{
"key": "Enter"
},
{
"expect": {
"bodies": 2,
"errors": 0
}
},
{
"start": "JointAssembleCmdNew"
},
{
"click": {
"world": [
10,
10,
10
]
}
},
{
"click": {
"world": [
40,
0,
5
]
}
},
{
"widget": "Rigid"
},
{
"widget": "Revolute"
},
{
"widget": "OK"
},
{
"expect": {
"dialog": null,
"errors": 0,
"query": {
"command": "joint.list",
"path": [
"joints",
0,
"type"
],
"value": "revolute"
}
}
},
{
"start": "FusionHalfSectionViewCommand"
},
{
"click": {
"plane": "XZ"
}
},
{
"debug": 1
},
{
"key": "Enter"
},
{
"expect": {
"section": true,
"dialog": null
}
},
{
"shot": "s20_section"
},
{
"start": "FusionMoveJointsCommand"
},
{
"widget": "0 deg"
},
{
"key": "A",
"cmd": true
},
{
"text": "90"
},
{
"key": "Enter"
},
{
"expect": {
"query": {
"command": "joint.list",
"path": [
"joints",
0,
"values",
0,
"value"
],
"value": 90
}
}
},
{
"expect": {
"section": true
}
},
{
"shot": "s20_section_driven"
}
]