Skip to content

Commit

Permalink
fix: move template group right below documentation group
Browse files Browse the repository at this point in the history
  • Loading branch information
misiekhardcore committed Nov 29, 2024
1 parent cee21a0 commit fe8490c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class ElementTemplatesPropertiesProvider {
};

// (1) Add templates group
addGroupsAfter(ALWAYS_DISPLAYED_GROUPS, groups, [ templatesGroup ]);
addGroupsAfter('documentation', groups, [ templatesGroup ]);

let elementTemplate = this._elementTemplates.get(element);

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

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


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

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


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

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

0 comments on commit fe8490c

Please sign in to comment.