How to Use Mock API in Playwright
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.