2022-08-04 20:38:40 +00:00
|
|
|
import TestContainer from 'mocha-test-container-support';
|
2022-08-05 18:57:30 +00:00
|
|
|
import { bootstrapPropertiesPanel, findGroupEntry } from './helpers';
|
2022-08-04 20:38:40 +00:00
|
|
|
import { BpmnPropertiesPanelModule, BpmnPropertiesProviderModule } from 'bpmn-js-properties-panel';
|
|
|
|
import spiffModdleExtension from '../../app/spiffworkflow/moddle/spiffworkflow.json';
|
|
|
|
import messages from '../../app/spiffworkflow/messages';
|
|
|
|
|
|
|
|
|
|
|
|
describe('Messages should work', function() {
|
|
|
|
let xml = require('./bpmn/collaboration.bpmn').default;
|
|
|
|
let container;
|
|
|
|
|
|
|
|
beforeEach(function() {
|
|
|
|
container = TestContainer.get(this);
|
|
|
|
});
|
|
|
|
|
|
|
|
beforeEach(bootstrapPropertiesPanel(xml, {
|
|
|
|
container,
|
|
|
|
debounceInput: false,
|
|
|
|
additionalModules: [
|
|
|
|
messages,
|
|
|
|
BpmnPropertiesPanelModule,
|
|
|
|
BpmnPropertiesProviderModule,
|
|
|
|
],
|
|
|
|
moddleExtensions: {
|
|
|
|
spiffworkflow: spiffModdleExtension
|
|
|
|
},
|
|
|
|
}));
|
|
|
|
|
|
|
|
it('should allow you to see the collaborations section', async function() {
|
|
|
|
|
|
|
|
// THEN - a select Data Object section should appear in the properties panel
|
2022-08-05 18:57:30 +00:00
|
|
|
let entry = findGroupEntry('correlation_keys', container);
|
2022-08-04 20:38:40 +00:00
|
|
|
expect(entry).to.exist;
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|