UNPKG

e2ed

Version:

E2E testing framework over Playwright

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