mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: set content-type to make test pass (#9331)
This commit is contained in:
parent
dbc3c11b8e
commit
0a7b54abc3
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user