add inline option which can bypass the inline stylesheet

This commit is contained in:
Yanzhen Yu
2019-05-12 16:04:14 +08:00
parent 78c8c11e6b
commit 724b67f166
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);