How to Use Mock API in Playwrightby@puppo

How to Use Mock API in Playwright

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

Today I want to talk about how to mock API with Playwright. To do that, I add a new feature to the usual example. When one of the players wins, the system sends a POST request to the URL http://localhost:3001/api/winners to save the history of the results of the games.
featured image - How to Use Mock API in Playwright
Luca Del Puppo HackerNoon profile picture

@puppo

Luca Del Puppo

Credibility

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa