Blog83.9K views4,193 votes1 reply1 comment3,861 following
Mocking APIs in Playwright E2E Tests with route() and fulfill()
Playwright's route() and fulfill() let you mock HTTP responses in cross-browser E2E tests, while browser contexts and serial() isolate state and prevent interference.