test: add failing test for context menus that prevent browser close (#2811)

References #2700
This commit is contained in:
Andrey Lushnikov 2020-07-02 00:45:02 -07:00 committed by GitHub
parent 5484217c9f
commit f9f3aeb0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,6 +79,13 @@ describe('Headful', function() {
await page.click('button'); await page.click('button');
await browser.close(); 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}) => { it('should(not) block third party cookies', async({browserType, defaultBrowserOptions, server}) => {
const browser = await browserType.launch({...defaultBrowserOptions, headless: false }); const browser = await browserType.launch({...defaultBrowserOptions, headless: false });
const page = await browser.newPage(); const page = await browser.newPage();