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
@@ -25,8 +25,8 @@ describe('InputHandler Integration Tests', function(): void {
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 });
await page.goto(APP);
await openTerminal(page);
});