This story was originally published on HackerNoon at:
https://hackernoon.com/harmageddon-is-cancelled-how-we-taught-playwright-to-replay-har-with-dynamic-parameters.
We taught Playwright to find the correct HAR entry even when query/body values change and prevented reusing entities with dynamic identifiers.
Check more stories related to programming at:
https://hackernoon.com/c/programming.
You can also check exclusive content about
#cicd,
#playwright,
#har,
#ci-cd-solutions,
#e2e,
#e2e-testing,
#correct-har-entry,
#good-company, and more.
This story was written by:
@socialdiscoverygroup. Learn more about this writer by checking
@socialdiscoverygroup's about page,
and for more stories, please visit
hackernoon.com.
Playwright is a tool for mocking the network using a HAR file. HAR is a file that contains: all page requests request parameters server responses. HAR files can be used to test the network state without starting the backend.