'UI Tests not working after migration to new SplashScreen API
I am trying to run UI tests after migrating from my old SplashActivity method to the new SplashScreen API.
For some reason, it seems to me that the new SplashScreen is hindering the running of the apps.
My Activity Test rule used to be linked to my Splash Activity, but I have changed it to UnauthenticatedActivity (which is the new landing page)
@Rule
@JvmField
var activityTestRule = ActivityTestRule(UnauthenticatedActivity::class.java)
I have tried re-adding the SplashActivity class (which just starts UnauthenticatedActivity), commenting out installSplashScreen in UnauthenticatedActivity), using ActivityScenarioRule
The Error I get is
java.lang.RuntimeException: Could not launch intent Intent { act=android.intent.action.MAIN
flg=0x14000000 cmp=nz.co.kiwibank.espresso_sit_sim/com.example.unauthenticated.UnauthenticatedActivity }
within 45000 milliseconds.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
