examples folder contains a few bpmn files and tests, by default all works fine, all tests successfully passed, but when I set flag Asynchronous Before for Start event for any bpmn - all asserts start failing.
What is the right way to write tests when bpmn start event executed in async fashion?
If you’ve added an async on an element of the process it commits the current state. Normally the job executor would then pickup the tread itself from there and continue the process but in a testing scenario the job executor is turned off to ensure the test has full control of how the process moves.
What this means for you is that any time there’s an async you need to find the Job that is waiting and complete it.
This is simplified in the testing framework - all you should need is this