Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: add failing test for creating two headful contexts (#1994)
Yury Semikhatskyc7b2c87f7272
diff --git a/test/headful.spec.js b/test/headful.spec.jsindex 1116447106..7e3248d05e 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();