Closed TinoChen105 closed 3 months ago
Thanks @TinoChen105 ! I made a test demonstrating the issue https://github.com/NoamGaash/playwright-advanced-har/pull/21 And now we can do test-driven-development and fix it.
However, there's a performance tradeoff. If we'll read the content of all of the entries before calling the compare functions, it will hurt performance.
Maybe we should export the parseContent
function instead? This way, the developer will have control over when they want the file content to be parsed
Thanks! Sounds good to me.
Great! I made a little fix to allow the matcher to be async. Would you like to be a code reviewer for this PR? #21
If a request is stored in HAR and only utilizes postData._file for storage, it cannot be accessed when using a customMatcher.
For example:
A HAR file:
80cfc9ca2ceb7ebb0da70500393558554ef433da.dat :
product=%22SEARCH%22&searchInfo=false
When using customMatcher:
How to access entry's postData? When recording the HAR, only certain requests are saved to _file without any information in text or params. The workaround for this is to use updateContent: 'embed' to avoid it.