test: add failing test for bad request interception (#4108)
References #3973
This commit is contained in:
parent
02859c3c6d
commit
c68df320f8
@ -412,6 +412,18 @@ module.exports.addTests = function({testRunner, expect, CHROME}) {
|
|||||||
page.waitForNavigation()
|
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}) => {
|
it('should contain referer header', async({page, server}) => {
|
||||||
await page.setRequestInterception(true);
|
await page.setRequestInterception(true);
|
||||||
const requests = [];
|
const requests = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user