(
content: string,
options: Partial<AnyChromiumLaunchConfiguration> = {},
)
| 580 | } |
| 581 | |
| 582 | async launchAndLoad( |
| 583 | content: string, |
| 584 | options: Partial<AnyChromiumLaunchConfiguration> = {}, |
| 585 | ): Promise<TestP> { |
| 586 | const url = 'data:text/html;base64,' + Buffer.from(content).toString('base64'); |
| 587 | const p = await this._launch(url, options); |
| 588 | await p.load(); |
| 589 | return p; |
| 590 | } |
| 591 | |
| 592 | public buildUrl(url: string) { |
| 593 | return utils.completeUrl('http://localhost:8001/', url) || url; |
no test coverage detected