e2ed
Version:
E2E testing framework over Playwright
14 lines (13 loc) • 615 B
TypeScript
import type { RequestPredicate } from '../../types/internal';
type Options = Readonly<{
maxIntervalBetweenRequestsInMs?: number;
timeout?: number;
}>;
/**
* Waits for the complete of all requests that satisfy the request predicate.
* If the function runs longer than the specified timeout, it is rejected.
* If there are no new requests for more than `maxIntervalBetweenRequestsInMs` milliseconds,
* the function resolves successfully.
*/
export declare const waitForAllRequestsComplete: (predicate: RequestPredicate, { maxIntervalBetweenRequestsInMs, timeout }?: Options) => Promise<void>;
export {};