feat(modeling): don't select start-event inside newly created sub-process
The canonical modeling operation shall not be drill down, but continue to model.
This commit is contained in:
parent
9f483adb42
commit
b47b37310f
|
@ -88,7 +88,7 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
|
||||||
|
|
||||||
create.start(event, [ subProcess, startEvent ], {
|
create.start(event, [ subProcess, startEvent ], {
|
||||||
hints: {
|
hints: {
|
||||||
autoSelect: [ startEvent ]
|
autoSelect: [ subProcess ]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ describe('features/palette', function() {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
it('should select start event', inject(function(canvas, dragging, selection) {
|
it('should select sub-process', inject(function(canvas, dragging, selection) {
|
||||||
|
|
||||||
// given
|
// given
|
||||||
var rootElement = canvas.getRootElement(),
|
var rootElement = canvas.getRootElement(),
|
||||||
|
@ -82,8 +82,10 @@ describe('features/palette', function() {
|
||||||
dragging.end();
|
dragging.end();
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(selection.get()).to.have.length(1);
|
var selected = selection.get();
|
||||||
expect(is(selection.get()[0], 'bpmn:StartEvent')).to.be.true;
|
|
||||||
|
expect(selected).to.have.length(1);
|
||||||
|
expect(is(selected[0], 'bpmn:SubProcess')).to.be.true;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue