Adopt playwright breaking changes
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user