Skip to content

waitForAPIRequest

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts

Wait for API request to complete

Signature

ts
async function waitForAPIRequest(page: Page, urlPattern: string | RegExp): Promise<{ request: Request; response: Response | null }>

Parameters

NameType
pagePage
urlPattern`string

Returns: Promise<{ request: Request; response: Response | null }>

Was this page helpful?

Download as PDF