add inline option which can bypass the inline stylesheet

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 68b97e40a2
commit c4da047b9f
4 changed files with 23 additions and 10 deletions

View File

@@ -104,7 +104,9 @@ describe('integration tests', function(this: ISuite) {
// tslint:disable-next-line: no-console
page.on('console', msg => console.log(msg.text()));
await page.goto(`http://localhost:3030/html`);
await page.setContent(html.src);
await page.setContent(html.src, {
waitUntil: 'load',
});
const rebuildHtml = (await page.evaluate(`${this.code}
const x = new XMLSerializer();
const [snap] = rrweb.snapshot(document);