Testing · Senior · Question 51 of 75
How can E2E tests run against recorded API traffic?
- ✓Correct answer: With
page.routeFromHAR- replay a recorded HAR file instead of calling the real backend - 2With
cy.fixturein Playwright - 3Playwright can't replay traffic
Explanation
It's a middle ground between full mocks and a live backend, but HAR files go stale with the API.