Merge "Check for stopped state after launching AlwaysExpandActivity over the main activity in addition to paused" into main
This commit is contained in:
@@ -171,12 +171,15 @@ constructor(
|
||||
wmHelper
|
||||
.StateSyncBuilder()
|
||||
.withActivityState(ALWAYS_EXPAND_ACTIVITY_COMPONENT, PlatformConsts.STATE_RESUMED)
|
||||
.withActivityState(MAIN_ACTIVITY_COMPONENT, PlatformConsts.STATE_PAUSED)
|
||||
.withActivityState(MAIN_ACTIVITY_COMPONENT, PlatformConsts.STATE_PAUSED,
|
||||
PlatformConsts.STATE_STOPPED)
|
||||
.waitForAndVerify()
|
||||
}
|
||||
|
||||
private fun launchSecondaryActivityFromButton(
|
||||
wmHelper: WindowManagerStateHelper, buttonName: String) {
|
||||
wmHelper: WindowManagerStateHelper,
|
||||
buttonName: String
|
||||
) {
|
||||
val launchButton =
|
||||
uiDevice.wait(Until.findObject(By.res(getPackage(), buttonName)), FIND_TIMEOUT)
|
||||
require(launchButton != null) {
|
||||
|
||||
Reference in New Issue
Block a user