From 7f817669b91cc763ad70847b3fcd7c74504b4d26 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 12 Dec 2024 17:12:31 +0100 Subject: [PATCH] test: make example work (again) --- test/spec/Example.spec.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 + }); + } }); } ] };