From b9bfbca1590b06e83948f3a1ab4096c25c12b047 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 12 Jul 2022 16:30:45 -0400 Subject: [PATCH] So saying tagAlias: lowercase is very bad idea. --- app/spiffworkflow/moddle/spiffworkflow.json | 3 -- test/spec/ScriptsPropsSpec.js | 9 ++++ test/spec/bpmn/diagram.bpmn | 54 +++++++++++---------- 3 files changed, 38 insertions(+), 28 deletions(-) diff --git a/app/spiffworkflow/moddle/spiffworkflow.json b/app/spiffworkflow/moddle/spiffworkflow.json index 0e5fc3a..096ae67 100644 --- a/app/spiffworkflow/moddle/spiffworkflow.json +++ b/app/spiffworkflow/moddle/spiffworkflow.json @@ -2,9 +2,6 @@ "name": "SpiffWorkflow", "uri": "http://spiffworkflow.org/bpmn/schema/1.0/core", "prefix": "spiffworkflow", - "xml": { - "tagAlias": "lowerCase" - }, "associations": [], "types": [ { diff --git a/test/spec/ScriptsPropsSpec.js b/test/spec/ScriptsPropsSpec.js index c566765..9f85edd 100644 --- a/test/spec/ScriptsPropsSpec.js +++ b/test/spec/ScriptsPropsSpec.js @@ -54,4 +54,13 @@ describe('Properties Panel Script Tasks', function() { expect(scriptInput.value).to.equal('x = 100'); }); + it('should parse the bpmn:script tag when you open an existing file', async function() { + + // IF - a script tag is selected, and you change the script in the properties panel + const scriptTask = await expectSelected('task_confirm'); + let entry = findEntry('pythonScript_spiffworkflow:preScript', PROPERTIES_PANEL_CONTAINER); + const scriptInput = domQuery('textarea', entry); + expect(scriptInput.value).to.equal('x=1'); + }); + }); diff --git a/test/spec/bpmn/diagram.bpmn b/test/spec/bpmn/diagram.bpmn index 4e32586..95aa75f 100644 --- a/test/spec/bpmn/diagram.bpmn +++ b/test/spec/bpmn/diagram.bpmn @@ -1,5 +1,5 @@ - + @@ -21,7 +21,7 @@ - + @@ -40,8 +40,12 @@ - - + + + + x=1 + y=2 + Flow_0q4oys2 Flow_132laxn @@ -57,18 +61,10 @@ - - - - - - - - - - - - + + + + @@ -81,13 +77,12 @@ - - - - + + + @@ -101,18 +96,27 @@ + + + + - - - + + + + + - - + + + + +