test: ensure that connectionDi exists

This commit is contained in:
Martin Stamm 2021-08-26 10:01:59 +02:00 committed by Nico Rehwaldt
parent 597c417dce
commit 5d30d576dc
1 changed files with 11 additions and 0 deletions

View File

@ -143,6 +143,8 @@ describe('features/modeling - append shape', function() {
}),
connectionDi = getDi(elementRegistry.get(connection.id));
// assume
expect(connectionDi).to.exist;
// when
commandStack.undo();
@ -176,6 +178,9 @@ describe('features/modeling - append shape', function() {
}),
connectionDi = getDi(elementRegistry.get(connection.id));
// assume
expect(connectionDi).to.exist;
// when
commandStack.undo();
@ -211,6 +216,9 @@ describe('features/modeling - append shape', function() {
}),
connectionDi = getDi(elementRegistry.get(connection.id));
// assume
expect(connectionDi).to.exist;
// when
commandStack.undo();
@ -272,6 +280,9 @@ describe('features/modeling - append shape', function() {
}),
connectionDi = getDi(elementRegistry.get(connection.id));
// assume
expect(connectionDi).to.exist;
// when
commandStack.undo();
commandStack.redo();