Skip to content
RED SAG Skills
mediumStudy question · answer published in Automation Testing interview questions, so no pointsui-automationplaywrightnetwork-mocking

Changing a request on its way out

You want real API calls to go through, but with an extra header x-feature: beta. Which route handler does that?

await page.route('**/api/**', async (route) => {
  // ?
})
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions