From 8b9c3a797c89b91e0e7cd267585fd4a4ab92d0ca Mon Sep 17 00:00:00 2001 From: Skaiir Date: Sat, 7 Dec 2024 09:37:45 +0100 Subject: [PATCH] fix: simulate non-zeebe usertask creation in forms behavior specs Related to https://github.com/camunda/camunda-modeler/issues/4648 --- test/camunda-cloud/FormsBehaviorSpec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/camunda-cloud/FormsBehaviorSpec.js b/test/camunda-cloud/FormsBehaviorSpec.js index 4c1b83c..e453ea8 100644 --- a/test/camunda-cloud/FormsBehaviorSpec.js +++ b/test/camunda-cloud/FormsBehaviorSpec.js @@ -191,7 +191,7 @@ describe('camunda-cloud/features/modeling - FormsBehavior', function() { }); // when - modeling.createShape(element, { x: 100, y: 100 }, rootElement); + modeling.createShape(element, { x: 100, y: 100 }, rootElement, { createElementsBehavior: false }); // then expect(getUserTaskForm(element)).not.to.exist; @@ -230,7 +230,7 @@ describe('camunda-cloud/features/modeling - FormsBehavior', function() { }); // when - modeling.createShape(element, { x: 100, y: 100 }, rootElement); + modeling.createShape(element, { x: 100, y: 100 }, rootElement, { createElementsBehavior: false }); // then expect(getUserTaskForm(element)).not.to.exist; @@ -269,7 +269,7 @@ describe('camunda-cloud/features/modeling - FormsBehavior', function() { }); // when - modeling.createShape(element, { x: 100, y: 100 }, rootElement); + modeling.createShape(element, { x: 100, y: 100 }, rootElement, { createElementsBehavior: false }); // then expect(getUserTaskForm(element)).to.exist; @@ -310,7 +310,7 @@ describe('camunda-cloud/features/modeling - FormsBehavior', function() { }); // when - modeling.createShape(element, { x: 100, y: 100 }, rootElement); + modeling.createShape(element, { x: 100, y: 100 }, rootElement, { createElementsBehavior: false }); }));