Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: set content-type to make test pass (#9331)
Yury Semikhatsky0a7b54abc3b4
diff --git a/tests/page/page-request-fulfill.spec.ts b/tests/page/page-request-fulfill.spec.tsindex d9dd74c45f..3fab893ba0 100644--- a/tests/page/page-request-fulfill.spec.ts+++ b/tests/page/page-request-fulfill.spec.ts@@ -273,6 +273,7 @@ it('should fulfill with fetch response that has multiple set-cookie', async ({ pit.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 => {