Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
domQuery = require('min-dom').query,
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('lib/provider/bpmn'),
getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
function getEntry(container, entryId) {
return domQuery('div[data-entry="' + entryId + '"]', container);
}
function getNameField(container) {
var selector = 'div[name=name]';
return domQuery(selector, getEntry(container, 'name'));
}
function getTextBoxRows(field) {
var innerText = field.innerText || '';
var lines = innerText.split(/\r?\n/g);
var rows = lines.length;
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
domQuery = require('min-dom').query,
domClasses = require('min-dom').classes,
forEach = require('lodash/forEach'),
is = require('bpmn-js/lib/util/ModelUtil').is,
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('lib/provider/camunda'),
camundaModdlePackage = require('camunda-bpmn-moddle/resources/camunda'),
getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
describe('taskListeners-properties', function() {
var diagramXML = require('./TaskListenerPropertyTest.bpmn');
var testModules = [
coreModule, selectionModule, modelingModule,
propertiesPanelModule,
propertiesProviderModule
];
var container;
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
domQuery = require('min-dom').query,
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('lib/provider/camunda'),
camundaModdlePackage = require('camunda-bpmn-moddle/resources/camunda'),
getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
describe('script-properties', function() {
var diagramXML = require('./ScriptProperties.bpmn');
var testModules = [
coreModule, selectionModule, modelingModule,
propertiesPanelModule,
propertiesProviderModule
];
var container;
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
domQuery = require('min-dom').query,
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('lib/provider/bpmn'),
getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
describe('link-properties', function() {
var diagramXML = require('./LinkEvent.bpmn');
var testModules = [
coreModule, selectionModule, modelingModule,
propertiesPanelModule,
propertiesProviderModule
];
var container;
beforeEach(function() {
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('lib/provider/camunda'),
camundaModdlePackage = require('camunda-bpmn-moddle/resources/camunda');
var ModelUtil = require('bpmn-js/lib/util/ModelUtil'),
is = ModelUtil.is,
getBusinessObject = ModelUtil.getBusinessObject;
var extensionElementsHelper = require('lib/helper/ExtensionElementsHelper');
var domQuery = require('min-dom').query,
domQueryAll = require('min-dom').queryAll;
// MODEL HELPER
function getElements(bo, type, prop) {
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
propertiesProviderModule = require('lib/provider/camunda'),
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
coreModule = require('bpmn-js/lib/core').default;
var getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject,
getExtensionElements = require('lib/helper/ExtensionElementsHelper').getExtensionElements;
var camundaModdlePackage = require('camunda-bpmn-moddle/resources/camunda');
var domQuery = require('min-dom').query,
domClasses = require('min-dom').classes;
var getValues = function(shape) {
return getExtensionElements(getBusinessObject(shape), 'camunda:FormData')[0].fields[0].values;
};
describe('form-data-enum', function() {
'use strict';
var TestHelper = require('../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject, sinon */
var propertiesPanelModule = require('lib'),
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('./properties');
var domQuery = require('min-dom').query,
domAttr = require('min-dom').attr;
describe('properties-panel', function() {
var diagramXML = require('./test.bpmn');
var testModules = [
coreModule, selectionModule, modelingModule,
propertiesPanelModule,
propertiesProviderModule
];
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
domQuery = require('min-dom').query,
domClasses = require('min-dom').classes,
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('lib/provider/bpmn'),
getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
describe('process-participant-properties', function() {
var diagramXML = require('./ProcessParticipant.bpmn');
var testModules = [
coreModule, selectionModule, modelingModule,
propertiesPanelModule,
propertiesProviderModule
];
var container;
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
domQuery = require('min-dom').query,
domClasses = require('min-dom').classes,
forEach = require('lodash/forEach'),
is = require('bpmn-js/lib/util/ModelUtil').is,
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('lib/provider/camunda'),
camundaModdlePackage = require('camunda-bpmn-moddle/resources/camunda'),
getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject;
describe('listener-properties', function() {
var diagramXML = require('./ExecutionListenerPropertyTest.bpmn');
var testModules = [
coreModule, selectionModule, modelingModule,
propertiesPanelModule,
propertiesProviderModule
];
var container;
'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
domQuery = require('min-dom').query,
domClasses = require('min-dom').classes,
coreModule = require('bpmn-js/lib/core').default,
selectionModule = require('diagram-js/lib/features/selection').default,
modelingModule = require('bpmn-js/lib/features/modeling').default,
propertiesProviderModule = require('lib/provider/camunda'),
camundaModdlePackage = require('camunda-bpmn-moddle/resources/camunda'),
getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject,
is = require('bpmn-js/lib/util/ModelUtil').is;
var extensionElementsHelper = require('lib/helper/ExtensionElementsHelper');
describe('fieldInjection-properties', function() {
var diagramXML = require('./FieldInjection.bpmn');
var testModules = [
coreModule, selectionModule, modelingModule,
propertiesPanelModule,
propertiesProviderModule