Skip to content

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

test: skip test in electron Follow-up for #12371

Max Schmitt6438aed36c11
diff --git a/tests/page/page-request-intercept.spec.ts b/tests/page/page-request-intercept.spec.ts
index bf5db2dfa8..76442d831d 100644
--- a/tests/page/page-request-intercept.spec.ts
+++ b/tests/page/page-request-intercept.spec.ts
@@ -57,7 +57,8 @@ it('should fulfill intercepted response', async ({ page, server, isElectron, isA
expect(await page.evaluate(() => document.body.textContent)).toBe('Yo, page!');
});
-it('should fulfill response with empty body', async ({ page, server, isAndroid }) => {
+it('should fulfill response with empty body', async ({ page, server, isAndroid, browserName, browserMajorVersion }) => {
+ it.skip(browserName === 'chromium' && browserMajorVersion <= 91, 'Fails in Electron that uses old Chromium');
it.skip(isAndroid, 'The internal Android localhost (10.0.0.2) != the localhost on the host');
await page.route('**/*', async route => {
const response = await page.request.fetch(route.request());