test(firefox): fix should close browser with beforeunload page (#1532)

This commit is contained in:
Yury Semikhatsky 2020-03-25 08:29:29 -07:00 committed by GitHub
parent aba670d719
commit 2d5b701662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ module.exports.describe = function({testRunner, expect, browserType, defaultBrow
await removeUserDataDir(userDataDir);
expect(cookie).toBe('foo=true');
});
it.fail(FFOX)('should close browser with beforeunload page', async({server}) => {
it('should close browser with beforeunload page', async({server}) => {
const userDataDir = await makeUserDataDir();
const browserContext = await browserType.launchPersistentContext(userDataDir, headfulOptions);
const page = await browserContext.newPage();