Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: fix 'should fulfill with fetch result and overrides' test (#9252)

Max Schmitt1302e10637d4
diff --git a/tests/page/page-request-fulfill.spec.ts b/tests/page/page-request-fulfill.spec.ts
index 2f201ce47d..7f884d720e 100644
--- a/tests/page/page-request-fulfill.spec.ts
+++ b/tests/page/page-request-fulfill.spec.ts
@@ -225,6 +225,7 @@ it('should fulfill with fetch result and overrides', async ({ page, server, isEl
response,
status: 201,
headers: {
+ ...response.headers(),
'foo': 'bar'
}
});