waitForAsync
abstract fun <T> waitForAsync(condition: () -> ERROR CLASS: Symbol not found for Promise<T>, options: TestContextWaitForOptions = definedExternally): ERROR CLASS: Symbol not found for Promise<T>(source)
This method polls a condition
function until that function either returns successfully or the operation times out.
Since
v22.14.0
Parameters
condition
An assertion function that is invoked periodically until it completes successfully or the defined polling timeout elapses. Successful completion is defined as not throwing or rejecting. This function does not accept any arguments, and is allowed to return any value.
options
An optional configuration object for the polling operation.