Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add execution listeners for Zeebe #96

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const LOWER_PRIORITY = 300;
const ALWAYS_DISPLAYED_GROUPS = [
'general',
'documentation',
'multiInstance'
'multiInstance',
'Zeebe__ExecutionListeners'
];


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ import {
inject
} from '../../../TestHelper';

import { BpmnPropertiesPanelModule as BpmnPropertiesPanel } from 'bpmn-js-properties-panel';
import {
BpmnPropertiesPanelModule as BpmnPropertiesPanel,
BpmnPropertiesProviderModule as BpmnPropertiesProvider,
ZeebePropertiesProviderModule as ZeebePropertiesProvider
} from 'bpmn-js-properties-panel';
import elementTemplatesModule from 'src/cloud-element-templates';
import { BpmnPropertiesProviderModule as BpmnPropertiesProvider } from 'bpmn-js-properties-panel';

import diagramXML from './ElementTemplatesPropertiesProvider.bpmn';
import templates from './ElementTemplatesPropertiesProvider.json';
Expand Down Expand Up @@ -54,6 +57,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
BpmnPropertiesPanel,
coreModule,
BpmnPropertiesProvider,
ZeebePropertiesProvider,
elementTemplatesModule,
modelingModule
],
Expand Down Expand Up @@ -190,6 +194,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
BpmnPropertiesPanel,
coreModule,
BpmnPropertiesProvider,
ZeebePropertiesProvider,
elementTemplatesModule,
modelingModule
],
Expand All @@ -201,7 +206,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
}));


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

// given
Expand All @@ -216,13 +221,14 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
expectOnlyGroups(container, [
'general',
'documentation',
'Zeebe__ExecutionListeners',
'ElementTemplates__Template'
]);
})
);


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

// given
Expand All @@ -237,13 +243,14 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
expectOnlyGroups(container, [
'general',
'documentation',
'Zeebe__ExecutionListeners',
'ElementTemplates__Template'
]);
})
);


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

// given
Expand All @@ -258,6 +265,7 @@ describe('provider/cloud-element-templates - ElementTemplatesPropertiesProvider'
expectOnlyGroups(container, [
'general',
'documentation',
'Zeebe__ExecutionListeners',
'ElementTemplates__Template'
]);
})
Expand Down