diff --git a/test/elementhandle.spec.js b/test/elementhandle.spec.js index 2f356a52015..12d82c8a949 100644 --- a/test/elementhandle.spec.js +++ b/test/elementhandle.spec.js @@ -303,6 +303,11 @@ module.exports.addTests = function({testRunner, expect}) { const screenshotError = await elementHandle.screenshot().catch(error => error); expect(screenshotError.message).toBe('Node is either not visible or not an HTMLElement'); }); + xit('should not hang with zero width/height element', async({page, server}) => { + await page.setContent('
'); + const div = await page.$('div'); + await div.screenshot(); + }); }); describe('ElementHandle.$', function() {