How to surpass location enabler dialogue in UI testing Espresso android?
问题 I am using Espresso for UI testing android. I wanted to run a test with location off in the settings and I got stuck with the location enabler dialogue as it fails other test. I have mentioned my observations and what I have tried so far Used UiAutomator, it works only on single test case but it fails on complete run of test suite. Used Grant permission rule, it gave permission but the dialogue still exists. Used Roboelectric, it had no effect on the problem. Used Shadow operation, it had no