Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Yury Semikhatsky24d51cb2bb32
diff --git a/test/evaluation.spec.js b/test/evaluation.spec.js
index ddd6ef7730..4582391cf5 100644
--- a/test/evaluation.spec.js
+++ b/test/evaluation.spec.js
@@ -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');
- });
});