(options: PlaywrightProviderOptions = {})
| 92 | } |
| 93 | |
| 94 | export function playwright(options: PlaywrightProviderOptions = {}): BrowserProviderOption<PlaywrightProviderOptions> { |
| 95 | return defineBrowserProvider({ |
| 96 | name: 'playwright', |
| 97 | supportedBrowser: playwrightBrowsers, |
| 98 | options, |
| 99 | providerFactory(project) { |
| 100 | return new PlaywrightBrowserProvider(project, options) |
| 101 | }, |
| 102 | }) |
| 103 | } |
| 104 | |
| 105 | export class PlaywrightBrowserProvider implements BrowserProvider { |
| 106 | public name = 'playwright' as const |