mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: drop Node.js v6 support (#5045)
Node.js v6 was end-of-life'd in April, 2019, with AWS Lambda prohibiting updaets to the Node.js v6 runtime since June 30, 2019. This makes it quite safe for us to remove the Node 6 support from the repository.
This commit is contained in:
@@ -233,9 +233,10 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, p
|
||||
const browser = await puppeteer.launch(options);
|
||||
const pages = await browser.pages();
|
||||
expect(pages.length).toBe(1);
|
||||
if (pages[0].url() !== server.EMPTY_PAGE)
|
||||
await pages[0].waitForNavigation();
|
||||
expect(pages[0].url()).toBe(server.EMPTY_PAGE);
|
||||
const page = pages[0];
|
||||
if (page.url() !== server.EMPTY_PAGE)
|
||||
await page.waitForNavigation();
|
||||
expect(page.url()).toBe(server.EMPTY_PAGE);
|
||||
await browser.close();
|
||||
});
|
||||
it('should set the default viewport', async() => {
|
||||
|
||||
Reference in New Issue
Block a user