e2ed
Version:
E2E testing framework over Playwright
15 lines (14 loc) • 649 B
TypeScript
import type { RequestPredicate } from '../../types/internal';
type Options = Readonly<{
maxIntervalBetweenRequestsInMs?: number;
skipLogs?: boolean;
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, skipLogs, timeout }?: Options) => Promise<void>;
export {};