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
@@ -20,8 +20,8 @@ describe('SerializeAddon', () => {
headless: process.argv.indexOf('--headless') !== -1,
args: [`--window-size=${width},${height}`]
});
page = (await browser.defaultContext().pages())[0];
await page.setViewport({ width, height });
page = await (await browser.newContext()).newPage();
await page.setViewportSize({ width, height });
await page.goto(APP);
await openTerminal(page, { rows: 10, cols: 10, rendererType: 'dom' });
await page.evaluate(`