Delay Expected results of a Unit Test
I am trying to create a unit test for a flow that takes around 1 minute to complete. However, the test checks the results against the expected value within 1 second and I need to delay the checking of the expected results.
I have tried to add a wait activity in the "After rule execution" section of the test case (image wait1), but it looks like this wait activity runs after the expected results are checked.
I have also attempted to add a wait at the end of the flow (image wait2), but this wait does not affect the execution time regardless of how long I set the wait time.
I believe the subprocess is asynchronous, which is why the results are getting check instantly.
Is there a way I can add a delay before checking expected results in a unit test?