mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
test: add failing test for creating two headful contexts (#1994)
This commit is contained in:
parent
b6d1cbf402
commit
c7b2c87f72
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user