Skip to content

Commit

Permalink
integration tests: update model-complete-semantic.bpmn + add new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouffard committed Oct 23, 2024
1 parent 0af6d66 commit 38a81e1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/fixtures/bpmn/model-complete-semantic.bpmn
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

<!-- Groups -->
<semantic:group id="Group_0_in_collaboration" categoryValueRef="CategoryValue_0" />

<!-- Text Annotations and Associations -->
<semantic:textAnnotation id="text_annotation_in_collaboration_1" text="Text Annotation in collaboration" />
<semantic:association id="association_in_collaboration_1" sourceRef="participant_3_id" targetRef="text_annotation_in_collaboration_1" />
</semantic:collaboration>

<!-- Event Definition -->
Expand Down Expand Up @@ -1933,6 +1937,9 @@
<dc:Bounds x="1030" y="1210" width="102" height="23" />
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape_text_annotation_in_collaboration_1" bpmnElement="text_annotation_in_collaboration_1">
<dc:Bounds x="2300" y="300" width="200" height="25" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape_Group_0_in_collaboration" bpmnElement="Group_0_in_collaboration">
<dc:Bounds x="3190" y="80" width="600" height="400" />
<bpmndi:BPMNLabel/>
Expand Down Expand Up @@ -2001,6 +2008,8 @@
<di:waypoint x="1069" y="1106" />
<di:waypoint x="1080" y="1210" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="edge_association_in_collaboration_1" bpmnElement="association_in_collaboration_1">
</bpmndi:BPMNEdge>

<!-- 2nd process -->
<bpmndi:BPMNShape id="shape_participant_2_id" bpmnElement="participant_2_id" isHorizontal="true">
Expand Down
11 changes: 11 additions & 0 deletions test/integration/mxGraph.model.bpmn.elements.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,13 @@ describe('mxGraph model - BPMN elements', () => {
align: 'left',
});
});
it('text annotations in collaboration', () => {
expect('text_annotation_in_collaboration_1').toBeTextAnnotation({
label: 'Text Annotation in collaboration',
parentId: getDefaultParentId(),
align: 'left',
});
});

it('groups', () => {
expect('Group_0_in_collaboration').toBeGroup({
Expand Down Expand Up @@ -1515,6 +1522,10 @@ describe('mxGraph model - BPMN elements', () => {
it('associations', () => {
expect('association_id').toBeAssociationFlow({ parentId: 'participant_1_id', verticalAlign: 'bottom' });
});

it('associations in collaboration', () => {
expect('association_in_collaboration_1').toBeAssociationFlow({ parentId: getDefaultParentId(), verticalAlign: 'bottom' });
});
});

it('Diagram with a not displayed pool (without shape) with elements', () => {
Expand Down

0 comments on commit 38a81e1

Please sign in to comment.