mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
test: add failing test for context menus that prevent browser close (#2811)
References #2700
This commit is contained in:
parent
5484217c9f
commit
f9f3aeb0fe
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user