Skip to content

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

test(network): remove flaky cached IMG waitForResponse test (#39713)

Yury Semikhatskye50a59ca1c2a
diff --git a/tests/page/page-wait-for-response.spec.ts b/tests/page/page-wait-for-response.spec.ts
index c6e0bd3296..e673492560 100644
--- a/tests/page/page-wait-for-response.spec.ts
+++ b/tests/page/page-wait-for-response.spec.ts
@@ -116,17 +116,3 @@ it('should work with no timeout', async ({ page, server }) => {
]);
expect(response.url()).toBe(server.PREFIX + '/digits/2.png');
});
-
-it('should work with re-rendered cached IMG elements', async ({ page, server, browserName, isBidi }) => {
- it.fixme(browserName === 'webkit');
- it.fixme(browserName === 'firefox' && !isBidi);
- await page.goto(server.EMPTY_PAGE);
- await page.setContent(`<img src="pptr.png">`);
- await page.$eval('img', img => img.remove());
- const [response] = await Promise.all([
- page.waitForRequest(/pptr/),
- page.waitForResponse(/pptr/),
- page.setContent(`<img src="pptr.png">`)
- ]);
- expect(response.url()).toBe(server.PREFIX + '/pptr.png');
-});