chore(playwright): browser name is strictly typed (#26046)

This commit is contained in:
Sean Perkins
2022-09-29 21:56:46 -04:00
committed by GitHub
parent 294dc66294
commit f404d512a1

View File

@@ -96,7 +96,9 @@ export interface E2EPage extends Page {
_e2eEvents: Map<number, any>;
}
export type BrowserNameOrCallback = string | ((browserName: string) => boolean);
type BrowserName = 'chromium' | 'firefox' | 'webkit';
export type BrowserNameOrCallback = BrowserName | ((browserName: BrowserName) => boolean);
export interface E2ESkip {
rtl: (reason?: string) => void;