Functions
delay()
delay(
delayInSeconds):Promise<void>
Defined in: utils/delay.ts:18
Pauses execution for a specified duration.
Useful in E2E and integration tests when you need to wait for async operations to complete before making assertions.
Parameters
delayInSeconds
number
The number of seconds to wait
Returns
Promise<void>
A promise that resolves after the specified delay
Example
// Wait 5 seconds for an async process to complete
await triggerAsyncWorkflow();
await delay(5);
const result = await checkResult();