IKivan-kozenko -aqa
Try yourself as a QA tester
Back to topic

Quiz

Network

Check yourself

  1. 1.You want to test how your app handles a 500 error from /api/orders. What do you use?
  2. 2.Why should you set up page.waitForResponse() BEFORE the click that triggers the request?
  3. 3.Which method do you call inside a route handler to prevent a request from ever reaching the server?
  4. 4.You want to intercept /api/orders, get the real server response, add a field to the first item, and return the modified data to the page. Which combination achieves this?
  5. 5.You want to add an Authorization header to every request that goes to /api/**. Which approach is correct?
  6. 6.What does page.on('request') do compared to page.route()?
  7. 7.You want to record all network traffic during a complex checkout flow and replay it in CI without a real backend. Which Playwright feature supports this?
  8. 8.What is the difference between using page.route() and context.route() for request interception?