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.
Luca Del Puppo
@puppo
Microsoft MVP, Full Stack developer and javascript enthusiastic.
STORY’S CREDIBILITY
Code License
The code in this story is for educational purposes. The readers are solely responsible for whatever they build with it.