Kind: Function
Source: atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts
Intercept and mock API responses
Signature
tsasync function mockAPIResponse(page: Page, urlPattern: string | RegExp, response: {
status?: number;
body?: unknown;
headers?: Record<string, string>;
}): Promise<void>
Parameters
| Name | Type |
|---|---|
page | Page |
urlPattern | `string |
response | `{ |
status?: number; body?: unknown; headers?: Record<string, string>;
}` |
Returns: Promise<void>
Was this page helpful?