test(modeling): correct test cases

Ensure the test cases are not affected by accidential
automatic label adjumstment (TM).
This commit is contained in:
Nico Rehwaldt 2018-07-11 13:09:40 +02:00
parent 82a37e7253
commit abbe54912f
1 changed files with 5 additions and 5 deletions

View File

@ -195,7 +195,7 @@ describe('features/modeling - move shape', function() {
});
describe('label suport', function() {
describe('label support', function() {
it('should move label with shape', inject(function(elementRegistry, modeling) {
@ -210,12 +210,12 @@ describe('features/modeling - move shape', function() {
};
// when
modeling.moveElements([ startEventElement ], { x: 40, y: -80 });
modeling.moveElements([ startEventElement ], { x: 40, y: 80 });
// then
expect(label).to.have.position({
x: labelPosition.x + 40,
y: labelPosition.y - 80
y: labelPosition.y + 80
});
}));
@ -305,7 +305,7 @@ describe('features/modeling - move shape', function() {
y: label.y
};
modeling.moveElements([ startEventElement ], { x: 40, y: -80 });
modeling.moveElements([ startEventElement ], { x: 40, y: 80 });
commandStack.undo();
// when
@ -314,7 +314,7 @@ describe('features/modeling - move shape', function() {
// then
expect(label).to.have.position({
x: labelPosition.x + 40,
y: labelPosition.y - 80
y: labelPosition.y + 80
});
}));