Files
OneCAD/crates/ui-egui/tests/scenarios/acceptance_sensor_enclosure.json
T
bherbruckandClaude Opus 5.5 296683229d Rename SolveCraft to SolidCraft everywhere, with compatibility shims (#389)
* WIP deep rename (not for push)

* WIP2

* WIP3

* WIP4 wxs fix

* rustfmt

* Rename the remaining identifiers in merged crash-report code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjGw4gA5ZvKrU8MQP6sBgT

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 17:17:01 -04:00

210 lines
3.0 KiB
JSON

[
{
"note": "Acceptance (#27): the sensor enclosure built from examples/acceptance/sensor_enclosure.json, then edited: the USB cut-out moved, the height changed, features suppressed and back, saved and reopened, exported to STEP and read back."
},
{
"script": "examples/acceptance/sensor_enclosure.json"
},
{
"call": "ui.view",
"params": {
"view": "home"
}
},
{
"expect": {
"bodies": 2,
"errors": 0,
"body_volume": {
"body": "Case",
"volume": 25401.7
}
}
},
{
"expect": {
"body_volume": {
"body": "Lid",
"volume": 19629.7
}
}
},
{
"call": "engine.execute",
"params": {
"command": "parameters.change",
"params": {
"name": "usb_offset",
"expression": "15 mm"
}
}
},
{
"expect": {
"errors": 0,
"bodies": 2,
"body_volume": {
"body": "Case",
"volume": 25401.7
}
}
},
{
"call": "engine.execute",
"params": {
"command": "timeline.suppress",
"params": {
"feature": "SnapFit1",
"suppressed": true
}
}
},
{
"expect": {
"errors": 0,
"body_volume": {
"body": "Case",
"volume": 25340.5
}
}
},
{
"call": "engine.execute",
"params": {
"command": "timeline.suppress",
"params": {
"feature": "SnapFit1",
"suppressed": false
}
}
},
{
"expect": {
"errors": 0,
"body_volume": {
"body": "Case",
"volume": 25401.7
}
}
},
{
"call": "engine.execute",
"params": {
"command": "parameters.change",
"params": {
"name": "wall",
"expression": "2.4 mm"
}
}
},
{
"expect": {
"errors": 0,
"bodies": 2
}
},
{
"call": "engine.execute",
"params": {
"command": "parameters.change",
"params": {
"name": "height",
"expression": "30 mm"
}
}
},
{
"expect": {
"errors": 0,
"bodies": 2
}
},
{
"call": "engine.execute",
"params": {
"command": "parameters.change",
"params": {
"name": "height",
"expression": "25 mm"
}
}
},
{
"expect": {
"errors": 0,
"bodies": 2
}
},
{
"call": "engine.execute",
"params": {
"command": "parameters.change",
"params": {
"name": "wall",
"expression": "2 mm"
}
}
},
{
"expect": {
"errors": 0,
"bodies": 2
}
},
{
"call": "engine.execute",
"params": {
"command": "file.save_as",
"params": {
"path": "$DIR/enclosure.solidcraft"
}
}
},
{
"call": "engine.execute",
"params": {
"command": "doc.open",
"params": {
"path": "$DIR/enclosure.solidcraft"
}
}
},
{
"expect": {
"errors": 0,
"bodies": 2,
"body_volume": {
"body": "Case",
"volume": 25401.7
}
}
},
{
"call": "engine.execute",
"params": {
"command": "file.export",
"params": {
"path": "$DIR/enclosure.step"
}
}
},
{
"call": "engine.execute",
"params": {
"command": "doc.open",
"params": {
"path": "$DIR/enclosure.step"
}
}
},
{
"expect": {
"bodies": 2,
"body_volume": {
"body": "Case",
"volume": 25401.7
}
}
}
]