Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test(network): skip response.body() navigation race test under tracing (#41644)
Simon Knott434bb845de74
diff --git a/tests/page/page-network-response.spec.ts b/tests/page/page-network-response.spec.tsindex 53f0ac96c1..a0282b9840 100644--- a/tests/page/page-network-response.spec.ts+++ b/tests/page/page-network-response.spec.ts@@ -451,8 +451,9 @@ it('Response.formData() should parse multipart/form-data in page context', asyncexpect(result.fileContent).toBe('hello');});-it('should give a readable error when response.body() races with navigation', async ({ page, server, browserName }) => {+it('should give a readable error when response.body() races with navigation', async ({ page, server, browserName, trace }) => {it.skip(browserName === 'firefox', 'Firefox keeps the response body available after navigating away, so it never throws');+ it.skip(trace === 'on', 'Tracing fetches response bodies eagerly, so the body is already cached before navigation');it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41512' });const [response] = await Promise.all([page.waitForResponse(server.PREFIX + '/title.html'),