playwright
playwright copied to clipboard
[Bug]: PUT request replay (HAR) should match payload body
Version
1.49.1
Steps to reproduce
Steps:
- I record a PUT request as HAR file.
- I replay the HAR file during a test.
- I change only the payload/body of "PUT" request
Expected behavior
- I expect to see an error. It shouldnt match the response anymore. This should ideally work just like POST requests.
Actual behavior
It matches the response payload.
Additional context
https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/server/harBackend.ts
Payload match is only being applied for POST requests currently.
Environment
System:
Windows 10
@kocgo We need more information to act on this issue. Could you please provide a repro that we can run locally? See this guide for helpful tips.
Closing because we lack the information to act on this issue. If you can provide a full repro, please file a new issue by filling the "Bug Report" template, and link to this one.