From 2f993018ea58cc0111f076c20a114791bdbb9ee9 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 21 May 2020 15:06:19 -0700 Subject: [PATCH] test: disable flaky test on win firefox (#2332) --- test/page.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/page.spec.js b/test/page.spec.js index 43d53f26c7..2eb0dd2eec 100644 --- a/test/page.spec.js +++ b/test/page.spec.js @@ -739,8 +739,8 @@ describe('Page.addScriptTag', function() { expect(await page.evaluate(() => __injected)).toBe(35); }); - // Firefox fires onload for blocked script before it issues the CSP console error. - it('should throw when added with content to the CSP page', async({page, server}) => { + it.fail(FFOX && WIN)('should throw when added with content to the CSP page', async({page, server}) => { + // Firefox fires onload for blocked script before it issues the CSP console error. await page.goto(server.PREFIX + '/csp.html'); let error = null; await page.addScriptTag({ content: 'window.__injected = 35;' }).catch(e => error = e);