diff --git a/test/network.spec.js b/test/network.spec.js index 1a6c1f09f11..a856a9c9ae2 100644 --- a/test/network.spec.js +++ b/test/network.spec.js @@ -251,6 +251,21 @@ module.exports.addTests = function({testRunner, expect}) { const response = await page.goto(server.EMPTY_PAGE); expect(response.ok()).toBe(true); }); + xit('should work when POST is redirected with 302', async({page, server}) => { + server.setRedirect('/rredirect', '/empty.html'); + await page.goto(server.EMPTY_PAGE); + await page.setRequestInterception(true); + page.on('request', request => request.continue()); + await page.setContent(` +
+ `); + await Promise.all([ + page.$eval('form', form => form.submit()), + page.waitForNavigation() + ]); + }); it('should contain referer header', async({page, server}) => { await page.setRequestInterception(true); const requests = [];