diff --git a/test/click.spec.js b/test/click.spec.js index b9a9f5da0f9..f32ca97bf94 100644 --- a/test/click.spec.js +++ b/test/click.spec.js @@ -27,6 +27,15 @@ module.exports.addTests = function({testRunner, expect, puppeteer}) { await page.click('button'); expect(await page.evaluate(() => result)).toBe('Clicked'); }); + it('should click svg', async({page, server}) => { + await page.setContent(` + + + + `); + await page.click('circle'); + expect(await page.evaluate(() => window.__CLICKED)).toBe(42); + }); it_fails_ffox('should click the button if window.Node is removed', async({page, server}) => { await page.goto(server.PREFIX + '/input/button.html'); await page.evaluate(() => delete window.Node);