From 5bcee4ae6c48ba46fcf8c3311a5bd6066e8ad194 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 1 Jul 2020 23:15:02 -0700 Subject: [PATCH] test: add failing test for context menus that prevent browser close References #2700 --- test/headful.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/headful.spec.js b/test/headful.spec.js index b3b07d4b3b9b6..f698d2d685aa7 100644 --- a/test/headful.spec.js +++ b/test/headful.spec.js @@ -79,6 +79,13 @@ describe('Headful', function() { await page.click('button'); await browser.close(); }); + it.fail(WEBKIT || CHROMIUM)('should close browser after context menu was triggered', async({browserType, defaultBrowserOptions, server}) => { + const browser = await browserType.launch({...defaultBrowserOptions, headless: false }); + const page = await browser.newPage(); + await page.goto(server.PREFIX + '/grid.html'); + await page.click('body', {button: 'right'}); + await browser.close(); + }); it('should(not) block third party cookies', async({browserType, defaultBrowserOptions, server}) => { const browser = await browserType.launch({...defaultBrowserOptions, headless: false }); const page = await browser.newPage();