01
How do you mock an API response?
Show answer
await page.route('**/api/users', route =>
route.fulfill({ status: 200, json: [{ id: 1, name: 'Test' }] })
);
3 API Testing questions with answers for playwright roles. Tick what you have solved to track your progress.