update dependencies and generate typings (#44)

This commit is contained in:
yz-yu
2019-01-21 19:54:21 +08:00
committed by GitHub
parent 3daedfa284
commit 128deca040
11 changed files with 278 additions and 11 deletions

View File

@@ -118,11 +118,7 @@ describe('record integration tests', () => {
it('can record node mutations', async () => {
const page: puppeteer.Page = await this.browser.newPage();
await page.goto('about:blank');
// FIXME: use setContent directly when @types/puppeteer update
const setContent = async (html: string, options: any) => {
return page.setContent.call(page, html, options);
};
await setContent(getHtml.call(this, 'select2.html'), {
await page.setContent(getHtml.call(this, 'select2.html'), {
waitUntil: 'networkidle0',
});