From 145e8680b16edf654219304398e1ba6ad44c8e93 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Sat, 13 Apr 2019 00:10:48 -0400 Subject: [PATCH] test: add failing test for clicking certain elements (#4282) References #4281 --- test/click.spec.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/click.spec.js b/test/click.spec.js index e462ebb3e67..31c3fd986ed 100644 --- a/test/click.spec.js +++ b/test/click.spec.js @@ -34,6 +34,19 @@ module.exports.addTests = function({testRunner, expect}) { await page.click('button'); expect(await page.evaluate(() => result)).toBe('Clicked'); }); + // @see https://github.com/GoogleChrome/puppeteer/issues/4281 + xit('should click on a span with an inline element inside', async({page, server}) => { + await page.setContent(` + + + `); + await page.click('span'); + expect(await page.evaluate(() => window.CLICKED)).toBe(42); + }); it('should click the button after navigation ', async({page, server}) => { await page.goto(server.PREFIX + '/input/button.html'); await page.click('button');