Merge pull request #56 from sartography/enhancements/condition-expression
Improve condition expression : !replace textField by textAreaField
This commit is contained in:
commit
bfbfb01065
|
@ -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,
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue