test(modeling): verify correct label adjustment

This commit is contained in:
Nico Rehwaldt 2018-07-11 13:10:18 +02:00
parent abbe54912f
commit 15596ef97c
1 changed files with 21 additions and 0 deletions

View File

@ -200,6 +200,27 @@ describe('modeling/behavior - AdaptiveLabelPositioningBehavior', function() {
});
describe('on source move / layout', function() {
it('should move label from BOTTOM to TOP', inject(
function(elementRegistry, modeling) {
// given
var source = elementRegistry.get('LabelTop'),
target = elementRegistry.get('LabelBottom_3');
// when
modeling.moveElements([ target ], { x: 20, y: -300 });
// then
expectLabelOrientation(source, 'bottom');
expectLabelOrientation(target, 'top');
}
));
});
describe('on waypoints update', function() {
it('should move label from RIGHT to TOP', inject(function(elementRegistry, modeling) {