fix(modeling): make sure lanes get ids assigned
This commit is contained in:
parent
4afefcb838
commit
e9a7bfa986
|
@ -18,6 +18,7 @@ BpmnFactory.prototype._needsId = function(element) {
|
||||||
element.$instanceOf('bpmn:MessageFlow') ||
|
element.$instanceOf('bpmn:MessageFlow') ||
|
||||||
element.$instanceOf('bpmn:Artifact') ||
|
element.$instanceOf('bpmn:Artifact') ||
|
||||||
element.$instanceOf('bpmn:Participant') ||
|
element.$instanceOf('bpmn:Participant') ||
|
||||||
|
element.$instanceOf('bpmn:Lane') ||
|
||||||
element.$instanceOf('bpmn:Process') ||
|
element.$instanceOf('bpmn:Process') ||
|
||||||
element.$instanceOf('bpmn:Collaboration') ||
|
element.$instanceOf('bpmn:Collaboration') ||
|
||||||
element.$instanceOf('bpmndi:BPMNShape') ||
|
element.$instanceOf('bpmndi:BPMNShape') ||
|
||||||
|
|
|
@ -34,6 +34,9 @@ describe('features/modeling - create lanes', function() {
|
||||||
var lane = laneShape.businessObject;
|
var lane = laneShape.businessObject;
|
||||||
|
|
||||||
// then
|
// then
|
||||||
|
// expect it to have an id
|
||||||
|
expect(lane.id).to.exist;
|
||||||
|
|
||||||
expect(laneShape).to.exist;
|
expect(laneShape).to.exist;
|
||||||
expect(lane).to.exist;
|
expect(lane).to.exist;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue