How to write tests for deep links in Android?
问题 I would like to write tests for Android app with deep link cases using UI testing framework (Espresso) - launch app using only ACTION_VIEW intent and check all views on opened screen. But looks like Espresso (even espresso-intents) doesn't have this functionality, and require to define Activity class. I tried this way, but it doesn't work properly, because launched app twice - standard launch using AppLauncherActivity (required by Espresso) and launch via deep link. @RunWith(AndroidJUnit4