Skip to content

Commit

Permalink
test: verify all always-visible groups
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Dec 2, 2024
1 parent fe8490c commit 4ee3759
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<?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_08adx7k" targetNamespace="http://bpmn.io/schema/bpmn" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" exporter="Camunda Modeler" exporterVersion="4.12.0">
<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:zeebe="http://camunda.org/schema/zeebe/1.0" id="Definitions_08adx7k" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.29.0">
<bpmn:process id="Process_1" isExecutable="true">
<bpmn:task id="Task_1" zeebe:modelerTemplate="foo" />
<bpmn:task id="Task_2" zeebe:modelerTemplate="foo" zeebe:modelerTemplateVersion="1" />
<bpmn:task id="Task_1" zeebe:modelerTemplate="foo">
<bpmn:multiInstanceLoopCharacteristics />
</bpmn:task>
<bpmn:task id="Task_2" zeebe:modelerTemplate="foo" zeebe:modelerTemplateVersion="1">
<bpmn:multiInstanceLoopCharacteristics />
</bpmn:task>
<bpmn:task id="Task_3" />
<bpmn:task id="UnknownTemplateTask" zeebe:modelerTemplate="unknown" />
<bpmn:serviceTask id="ServiceTask" zeebe:modelerTemplate="default" />
<bpmn:task id="UnknownTemplateTask" zeebe:modelerTemplate="unknown">
<bpmn:multiInstanceLoopCharacteristics />
</bpmn:task>
<bpmn:serviceTask id="ServiceTask" zeebe:modelerTemplate="default">
<bpmn:multiInstanceLoopCharacteristics />
</bpmn:serviceTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
}));


it('should show only general, documentation, template group and execution listeners group when entriesVisible is unset',
it('should show only always-visible groups when entriesVisible is unset',
inject(async function(elementRegistry, selection) {

// given
Expand All @@ -222,13 +222,14 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
'general',
'documentation',
'ElementTemplates__Template',
'multiInstance',
'Zeebe__ExecutionListeners'
]);
})
);


it('should show only general, documentation, template group and execution listeners group when entriesVisible=false',
it('should show only always-visible groups when entriesVisible=false',
inject(async function(elementRegistry, selection) {

// given
Expand All @@ -244,13 +245,14 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
'general',
'documentation',
'ElementTemplates__Template',
'multiInstance',
'Zeebe__ExecutionListeners'
]);
})
);


it('should show only general, documentation, template group and execution listeners group when template is unknown',
it('should show only always-visible groups when template is unknown',
inject(async function(elementRegistry, selection) {

// given
Expand All @@ -266,13 +268,14 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
'general',
'documentation',
'ElementTemplates__Template',
'multiInstance',
'Zeebe__ExecutionListeners'
]);
})
);


it('should show all available groups when entriesVisible=true',
it('should show all groups when entriesVisible=true',
inject(async function(elementRegistry, selection) {

// given
Expand All @@ -287,10 +290,13 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
const groups = getGroupIds(container);

expect(groups).to.contain('general');
expect(groups).to.contain('ElementTemplates__Template');
expect(groups).to.contain('documentation');
expect(groups).to.contain('ElementTemplates__Template');
expect(groups).to.contain('Zeebe__ExecutionListeners');
expect(groups).to.contain('Zeebe__ExtensionProperties');
})
);

});


Expand Down

0 comments on commit 4ee3759

Please sign in to comment.