2022-06-08 16:31:17 -04:00
|
|
|
import {
|
|
|
|
query as domQuery,
|
|
|
|
queryAll as domQueryAll
|
|
|
|
} from 'min-dom';
|
2022-06-30 14:05:57 -04:00
|
|
|
import { bootstrapPropertiesPanel, CONTAINER } from './helpers';
|
2022-06-30 14:02:38 -04:00
|
|
|
import inputOutput from '../../app/spiffworkflow/InputOutput';
|
|
|
|
import { BpmnPropertiesPanelModule, BpmnPropertiesProviderModule } from 'bpmn-js-properties-panel';
|
2022-06-08 16:31:17 -04:00
|
|
|
|
|
|
|
describe('BPMN Input / Output', function() {
|
|
|
|
|
2022-07-11 11:00:19 -04:00
|
|
|
let xml = require('./bpmn/diagram.bpmn').default;
|
2022-06-30 14:02:38 -04:00
|
|
|
|
|
|
|
beforeEach(bootstrapPropertiesPanel(xml, {
|
|
|
|
debounceInput: false,
|
|
|
|
additionalModules: [
|
|
|
|
inputOutput,
|
|
|
|
BpmnPropertiesPanelModule,
|
|
|
|
BpmnPropertiesProviderModule,
|
2022-06-30 14:05:57 -04:00
|
|
|
]
|
2022-06-30 14:02:38 -04:00
|
|
|
}));
|
2022-06-08 16:31:17 -04:00
|
|
|
|
|
|
|
it('should have a data input and data output in the properties panel', function() {
|
2022-06-30 14:02:38 -04:00
|
|
|
var paletteElement = domQuery('.djs-palette', CONTAINER);
|
|
|
|
var entries = domQueryAll('.entry', paletteElement);
|
|
|
|
expect(entries[11].title).to.equals('Create DataInput');
|
|
|
|
expect(entries[12].title).to.equals('Create DataOutput');
|
2022-06-08 16:31:17 -04:00
|
|
|
});
|
2022-06-30 14:02:38 -04:00
|
|
|
|
2022-06-08 16:31:17 -04:00
|
|
|
});
|