I am working on an automation projects, the websit...
# help
k
I am working on an automation projects, the website is always down, i am being suggested to use mocking concepts to overcome this downtime. So how can i implement the mocking concepts in UI Based automation? technologies I am using - Javascript, Playwright, Typescript.
b
Well, you could mock the API calls made to the backend by the UI with WireMock, or just to that part of the backend that is unstable. If you’re using Playwright already, I would probably go for their built-in mocking capabilities first, and come back to WireMock if those don’t provide what you’re looking for. https://playwright.dev/docs/network#network-mocking
k
Thanks @Bas Dijkstra Will go with your suggestions.