From f67ae5711d88f5c50be48326c5cfe4145c95e88a Mon Sep 17 00:00:00 2001 From: JoelEinbinder Date: Tue, 17 Oct 2017 23:32:33 -0700 Subject: [PATCH] test(cookies): enable cookies restoration test (#1075) --- test/test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index c626c548..7fbca221 100644 --- a/test/test.js +++ b/test/test.js @@ -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);