mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: delete "Node.constructor.name in utility context" (#1788)
This commit is contained in:
parent
9d05038a82
commit
24d51cb2bb
@ -440,13 +440,4 @@ describe('Frame.evaluate', function() {
|
|||||||
const error = await page.evaluate(body => body.innerHTML, bodyHandle).catch(e => e);
|
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');
|
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');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user