Skip to content

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

test: mark new test as failing on macos (#42141)

Yury Semikhatsky4b8f821f2938
diff --git a/tests/page/page-network-response.spec.ts b/tests/page/page-network-response.spec.ts
index 5364fd1089..8074ec53c0 100644
--- a/tests/page/page-network-response.spec.ts
+++ b/tests/page/page-network-response.spec.ts
@@ -354,8 +354,10 @@ it('should return body for prefetch script', async ({ page, server, browserName
expect(body.toString()).toBe('// Scripts will be pre-fetched');
});
-it('should return body for image with evicted body', async ({ page, server }) => {
- it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42002' });
+it('should return body for image with evicted body', {
+ annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/42002' },
+}, async ({ page, server, isMac, browserName }) => {
+ it.fixme(isMac && browserName === 'webkit', 'WebKit on Mac evicts the body and returns empty buffer');
const imageBase64 = 'R0lGODlhAQABAAAAACw='; // truncated 1x1 gif, Chromium evicts its body
server.setRoute('/pixel.gif', (req, res) => {
res.setHeader('content-type', 'image/gif');