I have javascript application that i want to do UI test automation (with selenium for example). The application make requests to 3rd party api to get some data.
I want to test that my notification icon will show a badge with the number of unread notifications on it. The problem is that I can get 0 notifications from the api and the badge will not appear.
How can i make sure that the data is reaming the same for every request in a UI test? Should i create mock requests in my code, and if so what the proper approach? Does the tests mentioned above need to be part of the UI tests?
Aucun commentaire:
Enregistrer un commentaire