Skip to content

Commit

Permalink
test(replace): corresponding non-interrupting entries
Browse files Browse the repository at this point in the history
  • Loading branch information
smbea authored and fake-join[bot] committed Jun 9, 2023
1 parent 9c5b88d commit 8e7a2b8
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 62 deletions.
136 changes: 74 additions & 62 deletions test/fixtures/bpmn/features/replace/01_replace.bpmn
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
<bpmn:startEvent id="StartEvent_3" isInterrupting="false">
<bpmn:messageEventDefinition />
</bpmn:startEvent>
<bpmn:startEvent id="StartEvent_6">
<bpmn:messageEventDefinition id="MessageEventDefinition_14m0uvi" />
</bpmn:startEvent>
</bpmn:subProcess>
<bpmn:startEvent id="StartEvent_4">
<bpmn:timerEventDefinition id="TimerEventDefinition_0la1q3n" />
Expand All @@ -72,48 +75,6 @@
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNEdge id="SequenceFlow_8_di" bpmnElement="SequenceFlow_8">
<di:waypoint x="834" y="208" />
<di:waypoint x="834" y="140" />
<bpmndi:BPMNLabel>
<dc:Bounds x="644.5" y="94" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_7_di" bpmnElement="SequenceFlow_7">
<di:waypoint x="400" y="180" />
<di:waypoint x="400" y="208" />
<bpmndi:BPMNLabel>
<dc:Bounds x="233" y="114" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_6_di" bpmnElement="SequenceFlow_6">
<di:waypoint x="571" y="308" />
<di:waypoint x="610" y="308" />
<bpmndi:BPMNLabel>
<dc:Bounds x="425.5" y="228" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_3_di" bpmnElement="SequenceFlow_3">
<di:waypoint x="671" y="122" />
<di:waypoint x="816" y="122" />
<bpmndi:BPMNLabel>
<dc:Bounds x="718" y="42" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_2_di" bpmnElement="SequenceFlow_2">
<di:waypoint x="494" y="122" />
<di:waypoint x="621" y="122" />
<bpmndi:BPMNLabel>
<dc:Bounds x="578" y="42" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1_di" bpmnElement="SequenceFlow_1">
<di:waypoint x="255" y="122" />
<di:waypoint x="394" y="122" />
<bpmndi:BPMNLabel>
<dc:Bounds x="239" y="42" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="219" y="104" width="36" height="36" />
<bpmndi:BPMNLabel>
Expand All @@ -135,29 +96,9 @@
<dc:Bounds x="669" y="70" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_03ri246_di" bpmnElement="StartEvent_4">
<dc:Bounds x="150" y="652" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_03dsy11_di" bpmnElement="StartEvent_5">
<dc:Bounds x="882" y="652" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="SubProcess_1_di" bpmnElement="SubProcess_1" isExpanded="true">
<dc:Bounds x="221" y="208" width="350" height="200" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_5_di" bpmnElement="SequenceFlow_5">
<di:waypoint x="438" y="307" />
<di:waypoint x="438" y="349" />
<bpmndi:BPMNLabel>
<dc:Bounds x="273" y="248" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_4_di" bpmnElement="SequenceFlow_4">
<di:waypoint x="290" y="267" />
<di:waypoint x="388" y="267" />
<bpmndi:BPMNLabel>
<dc:Bounds x="174" y="187" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="StartEvent_2_di" bpmnElement="StartEvent_2">
<dc:Bounds x="254" y="249" width="36" height="36" />
<bpmndi:BPMNLabel>
Expand All @@ -173,6 +114,20 @@
<dc:Bounds x="273" y="315" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_4_di" bpmnElement="SequenceFlow_4">
<di:waypoint x="290" y="267" />
<di:waypoint x="388" y="267" />
<bpmndi:BPMNLabel>
<dc:Bounds x="174" y="187" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_5_di" bpmnElement="SequenceFlow_5">
<di:waypoint x="438" y="307" />
<di:waypoint x="438" y="349" />
<bpmndi:BPMNLabel>
<dc:Bounds x="273" y="248" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Transaction_1_di" bpmnElement="Transaction_1" isExpanded="true">
<dc:Bounds x="610" y="208" width="350" height="200" />
</bpmndi:BPMNShape>
Expand All @@ -194,6 +149,15 @@
<dc:Bounds x="526" y="447" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0c3rmns_di" bpmnElement="StartEvent_6">
<dc:Bounds x="732" y="481" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_03ri246_di" bpmnElement="StartEvent_4">
<dc:Bounds x="150" y="652" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_03dsy11_di" bpmnElement="StartEvent_5">
<dc:Bounds x="882" y="652" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0cb78c0_di" bpmnElement="SubProcess_2" isExpanded="true">
<dc:Bounds x="221" y="590" width="350" height="200" />
</bpmndi:BPMNShape>
Expand All @@ -212,6 +176,54 @@
<dc:Bounds x="322" y="110" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1_di" bpmnElement="SequenceFlow_1">
<di:waypoint x="255" y="122" />
<di:waypoint x="394" y="122" />
<bpmndi:BPMNLabel>
<dc:Bounds x="239" y="42" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_2_di" bpmnElement="SequenceFlow_2">
<di:waypoint x="494" y="122" />
<di:waypoint x="621" y="122" />
<bpmndi:BPMNLabel>
<dc:Bounds x="578" y="42" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_3_di" bpmnElement="SequenceFlow_3">
<di:waypoint x="671" y="122" />
<di:waypoint x="816" y="122" />
<bpmndi:BPMNLabel>
<dc:Bounds x="718" y="42" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_6_di" bpmnElement="SequenceFlow_6">
<di:waypoint x="571" y="308" />
<di:waypoint x="610" y="308" />
<bpmndi:BPMNLabel>
<dc:Bounds x="425.5" y="228" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_7_di" bpmnElement="SequenceFlow_7">
<di:waypoint x="400" y="180" />
<di:waypoint x="400" y="208" />
<bpmndi:BPMNLabel>
<dc:Bounds x="233" y="114" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_8_di" bpmnElement="SequenceFlow_8">
<di:waypoint x="834" y="208" />
<di:waypoint x="834" y="140" />
<bpmndi:BPMNLabel>
<dc:Bounds x="644.5" y="94" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="SubProcessCollapsed" />
</bpmndi:BPMNDiagram>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="AdHocSubProcessCollapsed" />
</bpmndi:BPMNDiagram>
</bpmn:definitions>
16 changes: 16 additions & 0 deletions test/spec/features/popup-menu/ReplaceMenuProviderSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,22 @@ describe('features/popup-menu - replace menu provider', function() {
})
);


it('should show corresponding "non-interrupting" event',
inject(function(elementRegistry) {

// given
var messageStartEvent = elementRegistry.get('StartEvent_6');

// when
openPopup(messageStartEvent);

// then
expect(queryEntry('replace-with-message-start')).to.be.null;
expect(queryEntry('replace-with-non-interrupting-message-start')).exist;
})
);

});


Expand Down

0 comments on commit 8e7a2b8

Please sign in to comment.