mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: bump dependencies (#2559)
This patch bumps dependencies so that `npm audit` doesn't yell at us. Drive-by: fix browsercontext test to run nicely in parallel mode.
This commit is contained in:
@@ -63,14 +63,14 @@ module.exports.addTests = function({testRunner, expect, puppeteer}) {
|
||||
const events = [];
|
||||
context.on('targetcreated', target => events.push('CREATED: ' + target.url()));
|
||||
context.on('targetchanged', target => events.push('CHANGED: ' + target.url()));
|
||||
context.on('targetdestroyed', target => events.push('DESTRYOED: ' + target.url()));
|
||||
context.on('targetdestroyed', target => events.push('DESTROYED: ' + target.url()));
|
||||
const page = await context.newPage();
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.close();
|
||||
expect(events).toEqual([
|
||||
'CREATED: about:blank',
|
||||
'CHANGED: http://localhost:8907/empty.html',
|
||||
'DESTRYOED: http://localhost:8907/empty.html'
|
||||
`CHANGED: ${server.EMPTY_PAGE}`,
|
||||
`DESTROYED: ${server.EMPTY_PAGE}`
|
||||
]);
|
||||
await context.close();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user