playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Bug]: PUT request replay (HAR) should match payload body

Open kocgo opened this issue 7 months ago • 1 comments

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 avatar Jun 11 '25 09:06 kocgo

@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.

dgozman avatar Jun 11 '25 12:06 dgozman

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.

dgozman avatar Jun 16 '25 08:06 dgozman