From 6438aed36c113d467f80b47d7895f489d44c330c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Sat, 26 Feb 2022 00:17:37 +0100 Subject: [PATCH] test: skip test in electron Follow-up for #12371 --- tests/page/page-request-intercept.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());