test: delete "Node.constructor.name in utility context" (#1788)

This commit is contained in:
Yury Semikhatsky 2020-04-14 15:36:11 -07:00 committed by GitHub
parent 9d05038a82
commit 24d51cb2bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -440,13 +440,4 @@ describe('Frame.evaluate', function() {
const error = await page.evaluate(body => body.innerHTML, bodyHandle).catch(e => e);
expect(error.message).toContain('Unable to adopt element handle from a different document');
});
it.fail(FFOX)('should return non-empty Node.constructor.name in utility context', async({page,server}) => {
await page.goto(server.EMPTY_PAGE);
await utils.attachFrame(page, 'frame1', server.EMPTY_PAGE);
const frame = page.frames()[1];
const context = await frame._utilityContext();
const elementHandle = await context.evaluateHandleInternal(() => window.top.document.querySelector('#frame1'));
const constructorName = await context.evaluateInternal(node => node.constructor.name, elementHandle);
expect(constructorName).toBe('HTMLIFrameElement');
});
});