diff --git a/test/headful.spec.ts b/test/headful.spec.ts index 23bc4f86a76ed..88237c0d2dad4 100644 --- a/test/headful.spec.ts +++ b/test/headful.spec.ts @@ -22,7 +22,7 @@ import expect from 'expect'; import { getTestState, describeChromeOnly, - itFailsWindowsUntilDate, + itFailsWindows, } from './mocha-utils'; import rimraf from 'rimraf'; @@ -91,15 +91,10 @@ describeChromeOnly('headful tests', function () { expect(pages).toEqual(['about:blank']); await browser.close(); }); - itFailsWindowsUntilDate( - /* We have deferred fixing this test on Windows in favour of - * getting all other Windows tests running on CI. Putting this - * date in to force us to come back and debug properly in the - * future. - */ - new Date('2020-07-01'), + itFailsWindows( 'headless should be able to read cookies written by headful', async () => { + /* Needs investigation into why but this fails consistently on Windows CI. */ const { server, puppeteer } = getTestState(); const userDataDir = await mkdtempAsync(TMP_FOLDER); diff --git a/test/launcher.spec.ts b/test/launcher.spec.ts index 8be7e79ff55a2..e7be5106314bc 100644 --- a/test/launcher.spec.ts +++ b/test/launcher.spec.ts @@ -472,7 +472,7 @@ describe('Launcher specs', function () { * properly with help from the Mozilla folks. */ itFailsWindowsUntilDate( - new Date('2020-07-01'), + new Date('2020-07-30'), 'should be able to launch Firefox', async () => { const { puppeteer } = getTestState(); diff --git a/test/mocha-utils.ts b/test/mocha-utils.ts index 9bab15fc56851..517172738c8f7 100644 --- a/test/mocha-utils.ts +++ b/test/mocha-utils.ts @@ -170,6 +170,13 @@ export const itFailsWindowsUntilDate = ( return it(description, body); }; +export const itFailsWindows = (description: string, body: Mocha.Func) => { + if (os.platform() === 'win32') { + return xit(description, body); + } + return it(description, body); +}; + export const describeFailsFirefox = ( description: string, body: (this: Mocha.Suite) => void