Merge "Wait until notification pop up is gone" into main

This commit is contained in:
Nataniel Borges
2023-07-24 18:16:48 +00:00
committed by Android (Google) Code Review

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 {