diff --git a/test/spec/Example.spec.js b/test/spec/Example.spec.js index 69222926..d1185a65 100644 --- a/test/spec/Example.spec.js +++ b/test/spec/Example.spec.js @@ -125,12 +125,15 @@ const ChangeEnginesModule = { eventBus.on([ 'import.done', + 'elements.changed' ], function() { const executionPlatformVersion = bpmnjs.getDefinitions().get('executionPlatformVersion'); - elementTemplates.setEngines({ - camunda: executionPlatformVersion - }); + if (elementTemplates.getEngines().camunda !== executionPlatformVersion) { + elementTemplates.setEngines({ + camunda: executionPlatformVersion + }); + } }); } ] };