diff --git a/tests/page/page-request-intercept.spec.ts b/tests/page/page-request-intercept.spec.ts index 024919c898..e87d99a87a 100644 --- a/tests/page/page-request-intercept.spec.ts +++ b/tests/page/page-request-intercept.spec.ts @@ -281,3 +281,39 @@ it('should fulfill popup main request using alias', async ({ page, server, isEle ]); await expect(popup.locator('body')).toHaveText('hello'); }); + +it('request.postData is not null when fetching FormData with a Blob', { + annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/24077' } +}, async ({ server, page, browserName, isElectron }) => { + it.fixme(isElectron, 'error: Browser context management is not supported.'); + it.fixme(browserName === 'webkit', 'The body is empty in WebKit when intercepting'); + await page.goto(server.EMPTY_PAGE); + await page.setContent(` + +
+ +`); + let resolvePostData; + const postDataPromise = new Promise