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(context): test that context.close() works for empty context (#1205)
Yury Semikhatsky771793f4184a
diff --git a/package.json b/package.jsonindex 90a9c652f3..3fa1992597 100644--- a/package.json+++ b/package.json@@ -10,7 +10,7 @@"playwright": {"chromium_revision": "745253","firefox_revision": "1032",- "webkit_revision": "1164"+ "webkit_revision": "1166"},"scripts": {"ctest": "cross-env BROWSER=chromium node test/test.js",diff --git a/test/browsercontext.spec.js b/test/browsercontext.spec.jsindex 43ea2999e8..1d6eb330ea 100644--- a/test/browsercontext.spec.js+++ b/test/browsercontext.spec.js@@ -109,6 +109,10 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, FFexpect(await page.evaluate('window.innerHeight')).toBe(789);await context.close();});+ it('close() should work for empty context', async({ browser }) => {+ const context = await browser.newContext();+ await context.close();+ });});describe('BrowserContext({userAgent})', function() {