Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: disable flaky CSP test on Firefox (#2374)

Dmitry Gozman11d53ad529bb
diff --git a/test/page.spec.js b/test/page.spec.js
index 2eb0dd2eec..93823978a5 100644
--- a/test/page.spec.js
+++ b/test/page.spec.js
@@ -739,7 +739,7 @@ describe('Page.addScriptTag', function() {
expect(await page.evaluate(() => __injected)).toBe(35);
});
- it.fail(FFOX && WIN)('should throw when added with content to the CSP page', async({page, server}) => {
+ it.fail(FFOX)('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;