Cypress Test Cases Writing Take Aways.
Finally I setup Cypress for the project that I am working on in my company. After wrote several test cases, here is some take aways I want to share. Stub Network Before Visit When stubbing the requests for test cases, cypress need to know about the routes before the reqeusts being made from the app you are testing. This is crucial for the initial requests that your app will emit to load initial data used to boot up.