Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
What steps will reproduce the problem?
1. launch a test that starts more than one activity and have the test rerun in the same invocation (e.g. an intent to HomeActivity starts a LogInActivity to show a password).
Expected:
The test should rerun without issues
Actual: the second time around, the test gets jammed with this exception: could not launch intent Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.Slack.debug/com.Slack.ui.HomeActivity } within 45 seconds.
The problem is that there's a dangling activity from the previous run.
It's solved with this gist:
Please fold this into the ActivityTestRule.