diff --git a/test/headful.spec.js b/test/headful.spec.js index 1116447106cca..7e3248d05e41b 100644 --- a/test/headful.spec.js +++ b/test/headful.spec.js @@ -57,6 +57,20 @@ describe('Headful', function() { await browserContext.close(); await removeUserDataDir(userDataDir); }); + it.fail(CHROMIUM)('should not crash when creating second context', async ({browserType, defaultBrowserOptions, server}) => { + const browser = await browserType.launch({...defaultBrowserOptions, headless: false }); + { + const browserContext = await browser.newContext(); + const page = await browserContext.newPage(); + await browserContext.close(); + } + { + const browserContext = await browser.newContext(); + const page = await browserContext.newPage(); + await browserContext.close(); + } + await browser.close(); + }); it.fail(CHROMIUM)('should click background tab', async({browserType, defaultBrowserOptions, server}) => { const browser = await browserType.launch({...defaultBrowserOptions, headless: false }); const page = await browser.newPage();