chore(types): add channel to launchServer (#6256)

This commit is contained in:
Max Schmitt 2021-04-21 21:23:08 +02:00 committed by GitHub
parent 6bdc67ac6a
commit 7053ac9097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 2 deletions

View file

@ -295,7 +295,7 @@ Whether to run browser in headless mode. More details for
### option: BrowserType.launchPersistentContext.channel
- `channel` <[BrowserChannel]<"chrome"|"chrome-beta"|"chrome-dev"|"chrome-canary"|"msedge"|"msedge-beta"|"msedge-dev"|"msedge-canary">>
Browser distribution channel.
Browser distribution channel. Read more about using [Google Chrome and Microsoft Edge](./browsers.md#google-chrome--microsoft-edge).
### option: BrowserType.launchPersistentContext.executablePath
- `executablePath` <[path]>
@ -399,6 +399,11 @@ Whether to run browser in headless mode. More details for
Port to use for the web socket. Defaults to 0 that picks any available port.
### option: BrowserType.launchServer.channel
- `channel` <[BrowserChannel]<"chrome"|"chrome-beta"|"chrome-dev"|"chrome-canary"|"msedge"|"msedge-beta"|"msedge-dev"|"msedge-canary">>
Browser distribution channel. Read more about using [Google Chrome and Microsoft Edge](./browsers.md#google-chrome--microsoft-edge).
### option: BrowserType.launchServer.executablePath
- `executablePath` <[path]>

View file

@ -75,6 +75,7 @@ export type ConnectOptions = {
logger?: Logger,
};
export type LaunchServerOptions = {
channel?: channels.BrowserTypeLaunchOptions['channel'],
executablePath?: string,
args?: string[],
ignoreDefaultArgs?: boolean | string[],

9
types/types.d.ts vendored
View file

@ -6711,7 +6711,8 @@ export interface BrowserType<Unused = {}> {
bypassCSP?: boolean;
/**
* Browser distribution channel.
* Browser distribution channel. Read more about using
* [Google Chrome and Microsoft Edge](https://playwright.dev/docs/browsers#google-chrome--microsoft-edge).
*/
channel?: "chrome"|"chrome-beta"|"chrome-dev"|"chrome-canary"|"msedge"|"msedge-beta"|"msedge-dev"|"msedge-canary";
@ -7039,6 +7040,12 @@ export interface BrowserType<Unused = {}> {
*/
args?: Array<string>;
/**
* Browser distribution channel. Read more about using
* [Google Chrome and Microsoft Edge](https://playwright.dev/docs/browsers#google-chrome--microsoft-edge).
*/
channel?: "chrome"|"chrome-beta"|"chrome-dev"|"chrome-canary"|"msedge"|"msedge-beta"|"msedge-dev"|"msedge-canary";
/**
* Enable Chromium sandboxing. Defaults to `true`.
*/