Skip to content

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

1.3 KB
Raw Blame
[
  {"note": "Issue #33: quitting with unsaved changes asks \"Save changes to <name>?\"; Cancel stays open."},
  {"call": "engine.execute", "params": {"command": "solid.box", "params": {"length": 20, "width": 10, "height": 5}}},
  {"call": "ui.window", "params": {"action": "close"}},
  {"expect": {"shown": "Don't Save", "quitting": true, "quit_requested": false}},
  {"widget": "Cancel"},
  {"expect": {"not_shown": "Don't Save", "quitting": false, "quit_requested": false, "bodies": 1}},
  {"note": "The File menu's Quit asks the same; Esc answers Cancel."},
  {"call": "app.quit"},
  {"expect": {"shown": "Don't Save", "quit_requested": false}},
  {"key": "Escape"},
  {"expect": {"not_shown": "Don't Save", "quitting": false, "quit_requested": false}},
  {"note": "Left and Right pick a button as laid out (Don't Save, Cancel, Save from the left; Save first, stopping at the ends) and Enter gives it."},
  {"call": "app.quit"},
  {"key": "ArrowLeft"},
  {"key": "ArrowLeft"},
  {"key": "ArrowLeft"},
  {"key": "ArrowRight"},
  {"key": "Enter"},
  {"expect": {"not_shown": "Don't Save", "quitting": false, "quit_requested": false, "bodies": 1}},
  {"call": "app.quit"},
  {"key": "ArrowLeft"},
  {"key": "ArrowLeft"},
  {"key": "ArrowRight"},
  {"key": "ArrowLeft"},
  {"key": "Enter"},
  {"expect": {"quit_requested": true}}
]