From 1826b6835264b46c64a0c5cc925e917d130d0c5b Mon Sep 17 00:00:00 2001 From: Skaiir Date: Wed, 11 Dec 2024 13:11:17 +0100 Subject: [PATCH] feat: update terminology to "camunda user task" Related to #4749 --- lib/utils/error-messages.js | 6 +++--- test/spec/utils/error-messages.spec.js | 8 ++++---- test/spec/utils/properties-panel.spec.js | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/utils/error-messages.js b/lib/utils/error-messages.js index be4e595..8c47c87 100644 --- a/lib/utils/error-messages.js +++ b/lib/utils/error-messages.js @@ -313,7 +313,7 @@ function getExtensionElementNotAllowedErrorMessage(report, executionPlatform, ex } if (is(extensionElement, 'zeebe:UserTask')) { - return getSupportedMessage('A with ', executionPlatform, executionPlatformVersion, allowedVersion); + return getSupportedMessage('A with ', executionPlatform, executionPlatformVersion, allowedVersion); } if (is(node, 'bpmn:ScriptTask') && is(extensionElement, 'zeebe:Script')) { @@ -390,7 +390,7 @@ function getExtensionElementRequiredErrorMessage(report, executionPlatform, exec } if (requiredExtensionElement === 'zeebe:UserTask') { - return `${ getIndefiniteArticle(typeString) } <${ typeString }> with is deprecated on ${ getExecutionPlatformLabel(executionPlatform, executionPlatformVersion) }. Consider migrating to .`; + return `${ getIndefiniteArticle(typeString) } <${ typeString }> with is deprecated on ${ getExecutionPlatformLabel(executionPlatform, executionPlatformVersion) }. Consider migrating to .`; } return message; @@ -570,7 +570,7 @@ function getPropertyRequiredErrorMessage(report, executionPlatform, executionPla return `${ getIndefiniteArticle(typeString) } <${ typeString }> with
must have a defined `; } - // Zeebe User Task + // Camunda User Task if (is(node, 'zeebe:FormDefinition') && isZeebeUserTask(parentNode)) { if (isEmptyString(node.get('externalReference'))) { return `${ getIndefiniteArticle(typeString) } <${ typeString }> with must have a defined `; diff --git a/test/spec/utils/error-messages.spec.js b/test/spec/utils/error-messages.spec.js index 4f9d83b..1a775aa 100644 --- a/test/spec/utils/error-messages.spec.js +++ b/test/spec/utils/error-messages.spec.js @@ -369,7 +369,7 @@ describe('utils/error-messages', function() { const errorMessage = getErrorMessage(report, 'Camunda Cloud', executionPlatformVersion); // then - expect(errorMessage).to.equal('A with is only supported by Camunda 8.5 or newer'); + expect(errorMessage).to.equal('A with is only supported by Camunda 8.5 or newer'); }); @@ -701,7 +701,7 @@ describe('utils/error-messages', function() { const errorMessage = getErrorMessage(report, 'Camunda Cloud', executionPlatformVersion); // then - expect(errorMessage).to.equal('A User Task with is deprecated on Camunda 8.6. Consider migrating to .'); + expect(errorMessage).to.equal('A User Task with is deprecated on Camunda 8.6. Consider migrating to .'); }); }); @@ -1395,7 +1395,7 @@ describe('utils/error-messages', function() { }); - it('should adjust (Zeebe User Task) (form ID) (Camunda 8.5 and newer)', async function() { + it('should adjust (Camunda User Task) (form ID) (Camunda 8.5 and newer)', async function() { // given const node = createElement('bpmn:UserTask', { @@ -1459,7 +1459,7 @@ describe('utils/error-messages', function() { }); - it('should adjust (Zeebe User Task) (external reference) (Camunda 8.5 and newer)', async function() { + it('should adjust (Camunda User Task) (external reference) (Camunda 8.5 and newer)', async function() { // given const node = createElement('bpmn:UserTask', { diff --git a/test/spec/utils/properties-panel.spec.js b/test/spec/utils/properties-panel.spec.js index 76f8faa..36ac875 100644 --- a/test/spec/utils/properties-panel.spec.js +++ b/test/spec/utils/properties-panel.spec.js @@ -900,7 +900,7 @@ describe('utils/properties-panel', function() { }); - it('user-task-form (Zeebe User Task) - Form ID (Camunda 8.5 and newer)', async function() { + it('user-task-form (Camunda User Task) - Form ID (Camunda 8.5 and newer)', async function() { // given const node = createElement('bpmn:UserTask', { @@ -928,7 +928,7 @@ describe('utils/properties-panel', function() { }); - it('user-task-form (Zeebe User Task) - External reference (Camunda 8.5 and newer)', async function() { + it('user-task-form (Camunda User Task) - External reference (Camunda 8.5 and newer)', async function() { // given const node = createElement('bpmn:UserTask', {