chore(space-tool): add tests for participant without lanes
This commit is contained in:
parent
6388312fb5
commit
b4eff93580
|
@ -70,7 +70,7 @@ describe('features/modeling - space tool behavior', function() {
|
|||
beforeEach(bootstrapModeler(diagramXML, { modules: testModules }));
|
||||
|
||||
|
||||
it('should ensure participant minimum dimensions', inject(
|
||||
it('should ensure participant minimum width', inject(
|
||||
function(dragging, elementRegistry, spaceTool) {
|
||||
|
||||
// given
|
||||
|
@ -79,7 +79,7 @@ describe('features/modeling - space tool behavior', function() {
|
|||
// when
|
||||
spaceTool.activateMakeSpace(canvasEvent({ x: 300, y: 0 }));
|
||||
|
||||
dragging.move(canvasEvent({ x: 0, y: 0 }));
|
||||
dragging.move(canvasEvent({ x: -200, y: 0 }));
|
||||
|
||||
dragging.end();
|
||||
|
||||
|
@ -89,7 +89,26 @@ describe('features/modeling - space tool behavior', function() {
|
|||
);
|
||||
|
||||
|
||||
it('should ensure lane minimum dimensions', inject(
|
||||
it('should ensure participant minimum height', inject(
|
||||
function(dragging, elementRegistry, spaceTool) {
|
||||
|
||||
// given
|
||||
var participant = elementRegistry.get('Participant_1');
|
||||
|
||||
// when
|
||||
spaceTool.activateMakeSpace(canvasEvent({ x: 0, y: 100 }));
|
||||
|
||||
dragging.move(canvasEvent({ x: 0, y: -400 }));
|
||||
|
||||
dragging.end();
|
||||
|
||||
// then
|
||||
expect(participant.height).to.equal(PARTICIPANT_MIN_DIMENSIONS.height);
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
it('should ensure lane minimum height', inject(
|
||||
function(dragging, elementRegistry, spaceTool) {
|
||||
|
||||
// given
|
||||
|
@ -108,7 +127,7 @@ describe('features/modeling - space tool behavior', function() {
|
|||
);
|
||||
|
||||
|
||||
it('should ensure nested lane minimum dimensions', inject(
|
||||
it('should ensure nested lane minimum height', inject(
|
||||
function(dragging, elementRegistry, spaceTool) {
|
||||
|
||||
// given
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="Definitions_0mdr1un" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.0">
|
||||
<bpmn:collaboration id="Collaboration_1">
|
||||
<bpmn:participant id="Participant_1" processRef="Process_1" />
|
||||
<bpmn:participant id="Participant_1" name="Participant_1" processRef="Process_1" />
|
||||
<bpmn:participant id="Participant_2" name="Participant_2" processRef="Process_2" />
|
||||
<bpmn:participant id="Participant_3" name="Participant_3" processRef="Process_3" />
|
||||
</bpmn:collaboration>
|
||||
|
|
Loading…
Reference in New Issue