feat: add Part shape diagnostics

This commit is contained in:
2026-08-02 19:31:25 -04:00
parent 1bbee75761
commit 589b2eb0f6
3 changed files with 22 additions and 4 deletions

View File

@@ -787,6 +787,9 @@ test('Part workbench commands create primitive and boolean document objects', ()
const facade = createMockFacade()
facade.gui.workbench.setActive('Part')
assert.equal(facade.gui.command.getState('primitive').status, 'enabled')
assert.equal(facade.gui.command.getState('check-shape').status, 'enabled')
facade.gui.command.execute({ commandId: 'check-shape' })
assert.equal(facade.getState().diagnostics.at(-1)?.code, 'SHAPE_NOT_RECOMPUTED')
facade.gui.command.execute({ commandId: 'primitive' })
facade.task.apply()
assert.equal(facade.app.document.getObject('box')?.typeId, 'Part::Box')