test(modeling): correct test cases
Ensure the test cases are not affected by accidential automatic label adjumstment (TM).
This commit is contained in:
parent
82a37e7253
commit
abbe54912f
|
@ -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
|
||||
});
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue