(
url: string,
options: Partial<AnyChromiumLaunchConfiguration> = {},
)
| 422 | } |
| 423 | |
| 424 | async _launch( |
| 425 | url: string, |
| 426 | options: Partial<AnyChromiumLaunchConfiguration> = {}, |
| 427 | ): Promise<TestP> { |
| 428 | await this.initialize; |
| 429 | this._launchUrl = url; |
| 430 | |
| 431 | const tmpLogPath = getLogFileForTest(this._testTitlePath); |
| 432 | this._root.dap.launch({ |
| 433 | ...chromeLaunchConfigDefaults, |
| 434 | url, |
| 435 | runtimeArgs: this._args, |
| 436 | webRoot: this._webRoot, |
| 437 | rootPath: this._workspaceRoot, |
| 438 | skipNavigateForTest: true, |
| 439 | trace: { logFile: tmpLogPath }, |
| 440 | runtimeExecutable: playwright.chromium.executablePath(), |
| 441 | outFiles: [`${this._workspaceRoot}/**/*.js`, '!**/node_modules/**'], |
| 442 | __workspaceFolder: this._workspaceRoot, |
| 443 | cleanUp: 'wholeBrowser', // We want the tests to clean up chrome afterwards |
| 444 | ...options, |
| 445 | } as AnyChromiumLaunchConfiguration); |
| 446 | |
| 447 | const result = await new Promise(f => (this._launchCallback = f)); |
| 448 | return result as TestP; |
| 449 | } |
| 450 | |
| 451 | async runScript( |
| 452 | filename: string, |
no test coverage detected