Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(docs): APIRequest* variable names (#9621)
Yury Semikhatskyade2171c4b1d
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.tsindex f0e11d33ae..3d88592f89 100644--- a/packages/playwright-core/types/types.d.ts+++ b/packages/playwright-core/types/types.d.ts@@ -11604,7 +11604,7 @@ export interface APIRequest {newContext(options?: {/*** Methods like- * [aPIRequestContext.get(url[, options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-get)+ * [apiRequestContext.get(url[, options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-get)* take the base URL into consideration by using the [`URL()`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL)* constructor for building the corresponding URL. Examples:* - baseURL: `http://localhost:3000` and sending request to `/bar.html` results in `http://localhost:3000/bar.html`@@ -11663,11 +11663,11 @@ export interface APIRequest {* obtained via* [browserContext.storageState([options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-storage-state)* or- * [aPIRequestContext.storageState([options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-storage-state).+ * [apiRequestContext.storageState([options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-storage-state).* Either a path to the file with saved storage, or the value returned by one of* [browserContext.storageState([options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-storage-state)* or- * [aPIRequestContext.storageState([options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-storage-state)+ * [apiRequestContext.storageState([options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-storage-state)* methods.*/storageState?: string|{@@ -11758,7 +11758,7 @@ export interface APIRequestContext {/*** All responses returned by- * [aPIRequestContext.get(url[, options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-get)+ * [apiRequestContext.get(url[, options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-get)* and similar methods are stored in the memory, so that you can later call* [apiResponse.body()](https://playwright.dev/docs/api/class-apiresponse#api-response-body). This method discards all* stored responses, and makes [apiResponse.body()](https://playwright.dev/docs/api/class-apiresponse#api-response-body)@@ -12170,7 +12170,7 @@ export interface APIRequestContext {/*** [ApiResponse] class represents responses returned by- * [aPIRequestContext.get(url[, options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-get)+ * [apiRequestContext.get(url[, options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-get)* and similar methods.*/export interface ApiResponse {diff --git a/utils/doclint/documentation.js b/utils/doclint/documentation.jsindex d32e313d7b..d636970aa4 100644--- a/utils/doclint/documentation.js+++ b/utils/doclint/documentation.js@@ -167,7 +167,7 @@ Documentation.Class = class {this.extends = extendsName;this.comment = '';this.index();- const match = name.match(/(JS|CDP|[A-Z])(.*)/);+ const match = name.match(/(API|JS|CDP|[A-Z])(.*)/);this.varName = match[1].toLowerCase() + match[2];}