Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: only test request interception for Chrome & FF
Pavel5274f2bd3cfe
diff --git a/test/playwright.spec.js b/test/playwright.spec.jsindex ee1ff51f78..53cb1a0874 100644--- a/test/playwright.spec.js+++ b/test/playwright.spec.js@@ -147,7 +147,6 @@ module.exports.addTests = ({testRunner, product, playwrightPath}) => {require('./network.spec.js').addTests(testOptions);require('./page.spec.js').addTests(testOptions);require('./queryselector.spec.js').addTests(testOptions);- require('./requestinterception.spec.js').addTests(testOptions);require('./screenshot.spec.js').addTests(testOptions);require('./waittask.spec.js').addTests(testOptions);@@ -162,6 +161,11 @@ module.exports.addTests = ({testRunner, product, playwrightPath}) => {require('./chromium/session.spec.js').addTests(testOptions);require('./chromium/workers.spec.js').addTests(testOptions);}++ if (CHROME || FFOX) {+ require('./requestinterception.spec.js').addTests(testOptions);+ }+});// Browser-level tests that are given a browser.diff --git a/test/requestinterception.spec.js b/test/requestinterception.spec.jsindex 6232820ce3..0faaff9931 100644--- a/test/requestinterception.spec.js+++ b/test/requestinterception.spec.js@@ -23,7 +23,7 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {const {it, fit, xit} = testRunner;const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;- describe.skip(WEBKIT)('Interception.enable', function() {+ describe('Interception.enable', function() {it('should intercept', async({page, server}) => {await page.interception.enable();page.on('request', request => {@@ -275,7 +275,7 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {return e.message;}});- if (CHROME || WEBKIT)+ if (CHROME)expect(result).toContain('Failed to fetch');elseexpect(result).toContain('NetworkError');