test(cookies): enable cookies restoration test (#1075)

This commit is contained in:
JoelEinbinder 2017-10-17 23:32:33 -07:00 committed by Andrey Lushnikov
parent eee168a745
commit f67ae5711d

View File

@ -149,9 +149,7 @@ describe('Puppeteer', function() {
await browser2.close();
rm(userDataDir);
}));
// Headless has issues storing cookies
// @see https://crbug.com/775261
(headless ? xit : it)('userDataDir option should restore cookies', SX(async function() {
it('userDataDir option should restore cookies', SX(async function() {
const userDataDir = fs.mkdtempSync(path.join(__dirname, 'test-user-data-dir'));
const options = Object.assign({userDataDir}, defaultBrowserOptions);
const browser = await puppeteer.launch(options);