Adopt playwright breaking changes

This commit is contained in:
Daniel Imms
2020-02-15 05:18:46 -08:00
parent 4ae25e57a3
commit 4ebb61b580
12 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -214,8 +214,8 @@ describe('Mouse Tracking Tests', () => {
headless: process.argv.indexOf('--headless') !== -1,
args: [`--window-size=${width},${height}`, `--no-sandbox`]
});
page = (await browser.defaultContext().pages())[0];
await page.setViewport({ width, height });
page = await (await browser.newContext()).newPage();
await page.setViewportSize({ width, height });
});
after(async () => browser.close());