test: disable flaky test on win firefox (#2332)

This commit is contained in:
Dmitry Gozman 2020-05-21 15:06:19 -07:00 committed by GitHub
parent 505d94ab1a
commit 2f993018ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);