Skip to content

Commit

Permalink
chore: implement mixins in protocol.yml (#5932)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Mar 24, 2021
1 parent 7678112 commit 2cf4caa
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 212 deletions.
16 changes: 8 additions & 8 deletions src/protocol/channels.ts
Expand Up @@ -236,8 +236,8 @@ export type BrowserTypeLaunchParams = {
password?: string,
},
downloadsPath?: string,
firefoxUserPrefs?: any,
chromiumSandbox?: boolean,
firefoxUserPrefs?: any,
slowMo?: number,
};
export type BrowserTypeLaunchOptions = {
Expand All @@ -260,17 +260,15 @@ export type BrowserTypeLaunchOptions = {
password?: string,
},
downloadsPath?: string,
firefoxUserPrefs?: any,
chromiumSandbox?: boolean,
firefoxUserPrefs?: any,
slowMo?: number,
};
export type BrowserTypeLaunchResult = {
browser: BrowserChannel,
};
export type BrowserTypeLaunchPersistentContextParams = {
channel?: 'chrome' | 'chrome-beta' | 'chrome-dev' | 'chrome-canary' | 'msedge' | 'msedge-beta' | 'msedge-dev' | 'msedge-canary',
userDataDir: string,
sdkLanguage: string,
executablePath?: string,
args?: string[],
ignoreAllDefaultArgs?: boolean,
Expand All @@ -290,7 +288,7 @@ export type BrowserTypeLaunchPersistentContextParams = {
},
downloadsPath?: string,
chromiumSandbox?: boolean,
slowMo?: number,
sdkLanguage: string,
noDefaultViewport?: boolean,
viewport?: {
width: number,
Expand All @@ -317,7 +315,7 @@ export type BrowserTypeLaunchPersistentContextParams = {
deviceScaleFactor?: number,
isMobile?: boolean,
hasTouch?: boolean,
colorScheme?: 'light' | 'dark' | 'no-preference',
colorScheme?: 'dark' | 'light' | 'no-preference',
acceptDownloads?: boolean,
_traceDir?: string,
_debugName?: string,
Expand All @@ -332,6 +330,8 @@ export type BrowserTypeLaunchPersistentContextParams = {
omitContent?: boolean,
path: string,
},
userDataDir: string,
slowMo?: number,
};
export type BrowserTypeLaunchPersistentContextOptions = {
channel?: 'chrome' | 'chrome-beta' | 'chrome-dev' | 'chrome-canary' | 'msedge' | 'msedge-beta' | 'msedge-dev' | 'msedge-canary',
Expand All @@ -354,7 +354,6 @@ export type BrowserTypeLaunchPersistentContextOptions = {
},
downloadsPath?: string,
chromiumSandbox?: boolean,
slowMo?: number,
noDefaultViewport?: boolean,
viewport?: {
width: number,
Expand All @@ -381,7 +380,7 @@ export type BrowserTypeLaunchPersistentContextOptions = {
deviceScaleFactor?: number,
isMobile?: boolean,
hasTouch?: boolean,
colorScheme?: 'light' | 'dark' | 'no-preference',
colorScheme?: 'dark' | 'light' | 'no-preference',
acceptDownloads?: boolean,
_traceDir?: string,
_debugName?: string,
Expand All @@ -396,6 +395,7 @@ export type BrowserTypeLaunchPersistentContextOptions = {
omitContent?: boolean,
path: string,
},
slowMo?: number,
};
export type BrowserTypeLaunchPersistentContextResult = {
context: BrowserContextChannel,
Expand Down

0 comments on commit 2cf4caa

Please sign in to comment.