UNPKG

e2ed

Version:

E2E testing framework over Playwright

13 lines (12 loc) 724 B
import type { Request, RequestPredicate, RequestWithUtcTimeInMs, Trigger } from '../../types/internal'; type Action = (<SomeRequest extends Request>(predicate: RequestPredicate<SomeRequest>, trigger: Trigger | undefined, options?: Options) => Promise<RequestWithUtcTimeInMs<SomeRequest>>) & (<SomeRequest extends Request>(predicate: RequestPredicate<SomeRequest>, options?: Options) => Promise<RequestWithUtcTimeInMs<SomeRequest>>); type Options = Readonly<{ skipLogs?: boolean; timeout?: number; }>; /** * Waits for some request (from browser) filtered by the request predicate. * If the function runs longer than the specified timeout, it is rejected. */ export declare const waitForRequest: Action; export {};