Skip to content

Commit

Permalink
test: add failing test for creating two headful contexts (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Apr 28, 2020
1 parent b6d1cbf commit c7b2c87
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/headful.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c7b2c87

Please sign in to comment.