fix(replace-menu-provider): fix property name
* fix property name in order to ensure correct behavior * adjust unit tests in order to ensure correct assertions closes #571
This commit is contained in:
parent
7ad344cfc5
commit
4714a7279d
|
@ -104,9 +104,10 @@ ReplaceMenuProvider.prototype.getEntries = function(element) {
|
||||||
var target = entry.target;
|
var target = entry.target;
|
||||||
|
|
||||||
// hide cancel end events outside transactions
|
// hide cancel end events outside transactions
|
||||||
if (target.eventDefinition == 'bpmn:CancelEventDefinition' && !is(businessObject.$parent, 'bpmn:Transaction')) {
|
if (target.eventDefinitionType == 'bpmn:CancelEventDefinition' && !is(businessObject.$parent, 'bpmn:Transaction')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return differentType(entry);
|
return differentType(entry);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -761,7 +761,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
// then
|
// then
|
||||||
expect(queryEntry(popupMenu, 'replace-with-none-end')).to.be.null;
|
expect(queryEntry(popupMenu, 'replace-with-none-end')).to.be.null;
|
||||||
|
|
||||||
expect(getEntries(popupMenu)).to.have.length(9);
|
expect(getEntries(popupMenu)).to.have.length(8);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -799,7 +799,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
openPopup(endEvent);
|
openPopup(endEvent);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(getEntries(popupMenu)).to.have.length(9);
|
expect(getEntries(popupMenu)).to.have.length(8);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue