test: add failing test for creating two headful contexts (#1994)

This commit is contained in:
Yury Semikhatsky 2020-04-28 14:20:33 -07:00 committed by GitHub
parent b6d1cbf402
commit c7b2c87f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();