diff --git a/docs/src/test-api-testing-js.md b/docs/src/test-api-testing-js.md index 09011d9508..6764b35d9a 100644 --- a/docs/src/test-api-testing-js.md +++ b/docs/src/test-api-testing-js.md @@ -394,7 +394,7 @@ There are two types of [APIRequestContext]: * associated with a [BrowserContext] * isolated instance, created via [`method: APIRequest.newContext`] -The main difference is that [APIRequestConxtext] accessible via [`property: BrowserContext.request`] and +The main difference is that [APIRequestContext] accessible via [`property: BrowserContext.request`] and [`property: Page.request`] will populate request's `Cookie` header from the browser context and will automatically update browser cookies if [APIResponse] has `Set-Cookie` header: @@ -456,4 +456,4 @@ test('global context request has isolated cookie storage', async ({ page, contex await page.goto('https://www.github.com/'); await request.dispose(); }); -``` \ No newline at end of file +```