const actionReflectionLogic = (action) => { switch (action?.toLowerCase()) { case "show": return "show"; case "hide": return "hide"; default: return "toggle"; } } const noActivationLogic = (action) => { return "none"; } function makeElementWithType(element,type) { return (test) => { const el = Object.assign(document.createElement(element),{type}); document.body.appendChild(el); test.add_cleanup(() => el.remove()); return el; }; } const supportedButtonTypes = ['button','reset','submit',''].map(type => { return { name: `