test: verify drill down into legacy sub-processes
This commit is contained in:
parent
3c34158fd5
commit
6f96334264
|
@ -0,0 +1,51 @@
|
|||
<?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" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0763oqv" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.8.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
|
||||
<bpmn:process id="Process" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEvent_1" />
|
||||
<bpmn:subProcess id="SubProcess">
|
||||
<bpmn:startEvent id="Event_0lrpy3a">
|
||||
<bpmn:outgoing>Flow_0obnxbt</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:sequenceFlow id="Flow_0obnxbt" sourceRef="Event_0lrpy3a" targetRef="NestedSubProcess" />
|
||||
<bpmn:endEvent id="Event_1ic2bhx">
|
||||
<bpmn:incoming>Flow_1d6ajf7</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:subProcess id="NestedSubProcess">
|
||||
<bpmn:incoming>Flow_0obnxbt</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_1d6ajf7</bpmn:outgoing>
|
||||
<bpmn:startEvent id="subprocess_startEvent" />
|
||||
</bpmn:subProcess>
|
||||
<bpmn:sequenceFlow id="Flow_1d6ajf7" sourceRef="NestedSubProcess" targetRef="Event_1ic2bhx" />
|
||||
</bpmn:subProcess>
|
||||
</bpmn:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process">
|
||||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||||
<dc:Bounds x="179" y="159" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="SubProcess_di" bpmnElement="SubProcess">
|
||||
<dc:Bounds x="250" y="130" width="100" height="80" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="Flow_1d6ajf7_di" bpmnElement="Flow_1d6ajf7">
|
||||
<di:waypoint x="740" y="240" />
|
||||
<di:waypoint x="782" y="240" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="Flow_0obnxbt_di" bpmnElement="Flow_0obnxbt">
|
||||
<di:waypoint x="308" y="240" />
|
||||
<di:waypoint x="350" y="240" />
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNShape id="Event_0lrpy3a_di" bpmnElement="Event_0lrpy3a">
|
||||
<dc:Bounds x="272" y="222" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="NestedSubProcess_di" bpmnElement="NestedSubProcess">
|
||||
<dc:Bounds x="350" y="120" width="390" height="240" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="subprocess_startEvent_di" bpmnElement="subprocess_startEvent">
|
||||
<dc:Bounds x="410" y="222" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="Event_1ic2bhx_di" bpmnElement="Event_1ic2bhx">
|
||||
<dc:Bounds x="782" y="222" width="36" height="36" />
|
||||
</bpmndi:BPMNShape>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
|
@ -710,8 +710,7 @@ describe('Modeler', function() {
|
|||
|
||||
describe('drill down', function() {
|
||||
|
||||
it('should allow drill down into collapsed sub-process', function() {
|
||||
var xml = require('../fixtures/bpmn/collapsed-sub-process.bpmn');
|
||||
function verifyDrilldown(xml) {
|
||||
|
||||
return createModeler(xml).then(function() {
|
||||
var drilldown = container.querySelector('.bjs-drilldown');
|
||||
|
@ -729,6 +728,19 @@ describe('Modeler', function() {
|
|||
expect(breadcrumbs.classList.contains('djs-element-hidden')).to.be.false;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
it('should allow drill down into collapsed sub-process', function() {
|
||||
var xml = require('../fixtures/bpmn/collapsed-sub-process.bpmn');
|
||||
|
||||
return verifyDrilldown(xml);
|
||||
});
|
||||
|
||||
|
||||
it('should allow drill down into legacy collapsed sub-process', function() {
|
||||
var xml = require('../fixtures/bpmn/collapsed-sub-process-legacy.bpmn');
|
||||
|
||||
return verifyDrilldown(xml);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -372,9 +372,7 @@ describe('Viewer', function() {
|
|||
|
||||
describe('drill down', function() {
|
||||
|
||||
it('should allow drill down into collapsed sub-process', function() {
|
||||
|
||||
var xml = require('../fixtures/bpmn/collapsed-sub-process.bpmn');
|
||||
function verifyDrilldown(xml) {
|
||||
|
||||
return createViewer(container, Viewer, xml).then(function() {
|
||||
var drilldown = container.querySelector('.bjs-drilldown');
|
||||
|
@ -392,6 +390,19 @@ describe('Viewer', function() {
|
|||
expect(breadcrumbs.classList.contains('djs-element-hidden')).to.be.false;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
it('should allow drill down into collapsed sub-process', function() {
|
||||
var xml = require('../fixtures/bpmn/collapsed-sub-process.bpmn');
|
||||
|
||||
return verifyDrilldown(xml);
|
||||
});
|
||||
|
||||
|
||||
it('should allow drill down into legacy collapsed sub-process', function() {
|
||||
var xml = require('../fixtures/bpmn/collapsed-sub-process-legacy.bpmn');
|
||||
|
||||
return verifyDrilldown(xml);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue