test(context): test that context.close() works for empty context (#1205)
This commit is contained in:
parent
8aa88d5021
commit
771793f418
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -109,6 +109,10 @@ module.exports.describe = function({testRunner, expect, playwright, CHROMIUM, FF
|
|||
expect(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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue