diff --git a/web/app/cad/debugPlugin.js b/web/app/cad/debugPlugin.js index d91e97cf..8946021b 100644 --- a/web/app/cad/debugPlugin.js +++ b/web/app/cad/debugPlugin.js @@ -222,7 +222,7 @@ const DebugMenuConfig = { cssIcons: ['bug'], info: 'set of debug actions', actions: ['DebugPrintAllSolids', 'DebugPrintFace', 'DebugFaceId', 'DebugFaceSketch', - 'DebugSetSketcherIntegerPrecision', 'DebugGenerateTest', 'DebugOpenBrepDebugger'] + 'DebugSetSketcherIntegerPrecision', 'DebugOpenLastTest', 'DebugGenerateTest', 'DebugOpenBrepDebugger'] }; const DebugActions = [ @@ -322,6 +322,17 @@ const DebugActions = [ window.location.href = url; } }, + { + id: 'DebugOpenLastTest', + appearance: { + cssIcons: ['gear'], + label: 'open last test', + info: 'open test project with the data generated by the latest executed unit test', + }, + invoke: ({bus, services: {project, storage, sketcher, cadRegistry}}) => { + window.location.href = '/index.html?$$$__test__$$$'; + } + }, { id: 'DebugGenerateTest', appearance: {