Skip to content

Commit

Permalink
test: add failing test for bad request interception (#4108)
Browse files Browse the repository at this point in the history
References #3973
  • Loading branch information
aslushnikov committed Mar 5, 2019
1 parent 02859c3 commit c68df32
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/network.spec.js
Expand Up @@ -412,6 +412,18 @@ module.exports.addTests = function({testRunner, expect, CHROME}) {
page.waitForNavigation()
]);
});
// @see https://github.com/GoogleChrome/puppeteer/issues/3973
xit('should work when header manipulation headers with redirect', async({page, server}) => {
server.setRedirect('/rrredirect', '/empty.html');
await page.setRequestInterception(true);
page.on('request', request => {
const headers = Object.assign({}, request.headers(), {
foo: 'bar'
});
request.continue({ headers });
});
await page.goto(server.PREFIX + '/rrredirect');
});
it('should contain referer header', async({page, server}) => {
await page.setRequestInterception(true);
const requests = [];
Expand Down

0 comments on commit c68df32

Please sign in to comment.