Merge pull request #56 from sartography/enhancements/condition-expression

Improve condition expression : !replace textField by textAreaField
This commit is contained in:
Ayoub Ait Lachgar 2023-12-05 09:08:25 +01:00 committed by GitHub
commit bfbfb01065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
import { is } from 'bpmn-js/lib/util/ModelUtil';
import {
isTextFieldEntryEdited,
TextFieldEntry,
TextAreaEntry
} from '@bpmn-io/properties-panel';
import { useService } from 'bpmn-js-properties-panel';
@ -107,7 +106,7 @@ function ConditionExpressionTextField(props) {
}
};
return TextFieldEntry({
return TextAreaEntry({
element,
id: `the-id`,
label,

View File

@ -32,7 +32,7 @@ describe('BPMN Condition', function() {
const conditions = findGroupEntry('conditions', PROPERTIES_PANEL_CONTAINER);
expect(conditions).to.exist;
const textInput = domQuery('input', conditions);
const textInput = domQuery('textarea', conditions);
expect(textInput.value).to.equal('cancel_task_2');
changeInput(textInput, 'True');
});