Merge "Fix Bubble test error problem"

This commit is contained in:
Vincent Wang
2021-11-09 02:35:47 +00:00
committed by Android (Google) Code Review

View File

@@ -48,9 +48,11 @@ class LaunchBubbleFromLockScreen(testSpec: FlickerTestParameter) : BaseBubbleScr
eachRun {
val addBubbleBtn = waitAndGetAddBubbleBtn()
addBubbleBtn?.click() ?: error("Bubble widget not found")
device.sleep()
wmHelper.waitFor("noAppWindowsOnTop") {
it.wmState.topVisibleAppWindow.isEmpty()
}
device.wakeUp()
}
}
transitions {