docs: fix serviceWorkers formatting (#14845)

This commit is contained in:
Ross Wollman 2022-06-13 15:18:24 -07:00 committed by GitHub
parent 88664c39c9
commit 61536098be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 28 deletions

View File

@ -644,10 +644,10 @@ See [Locator] to learn more about the strict mode.
## context-option-service-worker-policy
- `serviceWorkers` <[ServiceWorkerPolicy]<"allow"|"block">>
* `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered by sites.
* `"block"`: Playwright will block all registration of Service Workers.
Whether to allow sites to register Service workers. Defaults to `'allow'`.
* `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* `'block'`: Playwright will block all registration of Service Workers.
Defaults to `"allow"`.
## select-options-values
* langs: java, js, csharp

View File

@ -10372,11 +10372,9 @@ export interface BrowserType<Unused = {}> {
};
/**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
* by sites.
* - `"block"`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `'block'`: Playwright will block all registration of Service Workers.
*/
serviceWorkers?: "allow"|"block";
@ -11537,11 +11535,9 @@ export interface AndroidDevice {
};
/**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
* by sites.
* - `"block"`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `'block'`: Playwright will block all registration of Service Workers.
*/
serviceWorkers?: "allow"|"block";
@ -13079,11 +13075,9 @@ export interface Browser extends EventEmitter {
};
/**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
* by sites.
* - `"block"`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `'block'`: Playwright will block all registration of Service Workers.
*/
serviceWorkers?: "allow"|"block";
@ -15599,11 +15593,9 @@ export interface BrowserContextOptions {
};
/**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
* by sites.
* - `"block"`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `'block'`: Playwright will block all registration of Service Workers.
*/
serviceWorkers?: "allow"|"block";

View File

@ -2800,11 +2800,9 @@ export interface PlaywrightTestOptions {
*/
navigationTimeout: number | undefined;
/**
* - `"allow"`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered
* by sites.
* - `"block"`: Playwright will block all registration of Service Workers.
*
* Defaults to `"allow"`.
* Whether to allow sites to register Service workers. Defaults to `'allow'`.
* - `'allow'`: [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) can be registered.
* - `'block'`: Playwright will block all registration of Service Workers.
*/
serviceWorkers: ServiceWorkerPolicy | undefined;
}