/**
* Workflow Editor HTML — Logic Tests
* Tests the JavaScript logic extracted from workflow-editor.html
* without requiring a browser DOM.
*/
const fs = require('fs');
const path = require('path');
// Extract JS from the HTML file
const html = fs.readFileSync(path.join(__dirname, '../ui/workflow-editor.html'), 'utf8');
const scriptMatch = html.match(/