You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modifying responses
As a tester I need to intercept and modify response to a request,
so that I can mock various error states handling on UI.
(eg.: How will application frontend handle error state 500? - it should show specific message to user, but in fully working application it is not easy to cause backend to fail)
Solution: New Page Route keyword
Based on playwright documentation it should be possible to intercept and modify HTTP and HTTPS requests/responses.
@mkorpela Is there any plan to integrate this to built in feature?
I would like to intercept request and response with recorded HAR file on staging serve.
Modifying responses
As a tester I need to intercept and modify response to a request,
so that I can mock various error states handling on UI.
(eg.: How will application frontend handle error state 500? - it should show specific message to user, but in fully working application it is not easy to cause backend to fail)
Solution: New
Page Route
keywordBased on playwright documentation it should be possible to intercept and modify HTTP and HTTPS requests/responses.
Playwright-python: page.route : Documentation
Playwright page.route for this.
This would be of great value for testing.
Thanks a lot for considering this,
regards,
Jan.
The text was updated successfully, but these errors were encountered: