Skip to content

Commit da2f283

Browse files
committed
test: properly test escalation is displayed
1 parent 0e0de58 commit da2f283

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/spec/provider/bpmn/EscalationProps.spec.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('provider/bpmn - EscalationProps', function() {
7878
elementRegistry.get('EscalationIntermediateEvent_1')
7979
];
8080

81-
escalationElements.forEach(async (element) => {
81+
for (const element of escalationElements) {
8282

8383
// when
8484
await act(() => {
@@ -87,9 +87,14 @@ describe('provider/bpmn - EscalationProps', function() {
8787

8888
// then
8989
const select = domQuery('select[name=escalationRef]', container);
90-
expect(select.value).to.eql(getEscalation(element).get('id'));
91-
});
90+
const escalation = getEscalation(element);
91+
92+
expect(select).to.exist;
9293

94+
if (escalation) {
95+
expect(select.value).to.eql(escalation.get('id'));
96+
}
97+
}
9398
}));
9499

95100

0 commit comments

Comments
 (0)