I am currently working on test and I would like to simulate a poor connection while I am testing with espresso. Is there any way to fake this in code?
In my app when there is a call api, I launch animations and I just would like to ensure that with a poor connection this animation will be running until all the data are received.
I am looking for an in code solution, I am aware of some of the different workaround or use of the emulator, I am really looking for something in code.