test(rules): verify groups and text annotations can be connected

Related to #1327
This commit is contained in:
Niklas Kiefer 2020-06-03 14:36:49 +02:00 committed by fake-join[bot]
parent b7ad57e348
commit c7dcd6c77b
2 changed files with 29 additions and 0 deletions

View File

@ -23,8 +23,12 @@
<bpmn2:dataStoreReference id="DataStoreReference" name="" dataStoreRef="DataStore_1"/>
<bpmn2:subProcess id="CollapsedSubProcess"/>
<bpmn2:textAnnotation id="TextAnnotation"/>
<bpmn2:group id="Group" categoryValueRef="CategoryValue" />
</bpmn2:process>
<bpmn2:dataStore id="DataStore_1" name="Data Store 1"/>
<bpmn2:category id="Category">
<bpmn2:categoryValue id="CategoryValue" />
</bpmn2:category>
<bpmndi:BPMNDiagram id="_BPMNDiagram_2">
<bpmndi:BPMNPlane id="_BPMNPlane_2" bpmnElement="Process">
<bpmndi:BPMNShape id="_BPMNShape_Task_8" bpmnElement="Task">
@ -87,6 +91,9 @@
<bpmndi:BPMNShape id="CollapsedSubProcess_di" bpmnElement="CollapsedSubProcess">
<dc:Bounds x="756" y="358" width="100" height="80"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Group_di" bpmnElement="Group">
<dc:Bounds x="770" y="90" width="210" height="120" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>

View File

@ -423,6 +423,28 @@ describe('features/modeling/rules - BpmnRules', function() {
}));
it('connect Group -> TextAnnotation', inject(function() {
expectCanConnect('Group', 'TextAnnotation', {
sequenceFlow: false,
messageFlow: false,
association: true,
dataAssociation: false
});
}));
it('connect TextAnnotation -> Group', inject(function() {
expectCanConnect('TextAnnotation', 'Group', {
sequenceFlow: false,
messageFlow: false,
association: true,
dataAssociation: false
});
}));
it('connect StartEvent_None -> DataStoreReference', inject(function() {
expectCanConnect('StartEvent_None', 'DataStoreReference', {