test: set content-type to make test pass (#9331)

This commit is contained in:
Yury Semikhatsky 2021-10-05 18:30:07 -07:00 committed by GitHub
parent dbc3c11b8e
commit 0a7b54abc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,6 +273,7 @@ it('should fulfill with fetch response that has multiple set-cookie', async ({ p
it.fail(browserName === 'webkit', 'Response contained invalid HTTP headers');
server.setRoute('/empty.html', (req, res) => {
res.setHeader('Set-Cookie', ['a=b', 'c=d']);
res.setHeader('Content-Type', 'text/html');
res.end();
});
await page.route('**/empty.html', async route => {