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 non-utf8 body test on older chromium channels (#41926)

microsoft-playwright-automation[bot]a8a2d5409509
diff --git a/tests/page/page-network-response.spec.ts b/tests/page/page-network-response.spec.ts
index 8289109bf3..2a8b86c5f8 100644
--- a/tests/page/page-network-response.spec.ts
+++ b/tests/page/page-network-response.spec.ts
@@ -151,8 +151,9 @@ it('should return body with compression', async ({ page, server, asset }) => {
it('should return non-utf8 body even when content-type says utf8', {
annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/40510' },
-}, async ({ page, server, browserName }) => {
+}, async ({ page, server, browserName, browserMajorVersion }) => {
it.fixme(browserName === 'webkit', 'webkit encodes the response body');
+ it.fixme(browserName === 'chromium' && browserMajorVersion < 151, 'older chromium re-encodes the non-utf8 response body and lacks Response.bytes()');
// Binary data with bytes that are invalid UTF-8.
const bytes = [0x80, 0x81, 0x82, 0xFF, 0xFE, 0x00, 0x01, 0x02];