Wait until notification pop up is gone

before trying to open the notification shade

Bug: 288341660
Test: atest OpenAppFromNotificationWarmTest
Change-Id: I2f2f4101408646d364827c78eecfdb12928ff29f
This commit is contained in:
Nataniel Borges
2023-07-24 10:46:37 +00:00
parent f36efc05a3
commit 3d088d84c2

View File

@@ -67,7 +67,10 @@ open class OpenAppFromNotificationWarmTest(flicker: LegacyFlickerTest) :
wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify()
testApp.postNotification(wmHelper)
device.pressHome()
wmHelper.StateSyncBuilder().withHomeActivityVisible().waitForAndVerify()
wmHelper.StateSyncBuilder()
.withHomeActivityVisible()
.withWindowSurfaceDisappeared(ComponentNameMatcher.NOTIFICATION_SHADE)
.waitForAndVerify()
}
transitions {