mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(firefox): support target.opener() and page.on('popup') (#3966)
This commit is contained in:
@@ -102,7 +102,7 @@ module.exports.addTests = function({testRunner, expect, headless, Errors, Device
|
||||
});
|
||||
});
|
||||
|
||||
describe_fails_ffox('Page.Events.Popup', function() {
|
||||
describe('Page.Events.Popup', function() {
|
||||
it('should work', async({page}) => {
|
||||
const [popup] = await Promise.all([
|
||||
new Promise(x => page.once('popup', x)),
|
||||
|
||||
@@ -132,7 +132,7 @@ module.exports.addTests = function({testRunner, expect, puppeteer, Errors}) {
|
||||
// Cleanup.
|
||||
await newPage.close();
|
||||
});
|
||||
it_fails_ffox('should have an opener', async({page, server, context}) => {
|
||||
it('should have an opener', async({page, server, context}) => {
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
const [createdTarget] = await Promise.all([
|
||||
new Promise(fulfill => context.once('targetcreated', target => fulfill(target))),
|
||||
|
||||
Reference in New Issue
Block a user