From 3d088d84c2111803c3d584faa384af722d6e6ca1 Mon Sep 17 00:00:00 2001 From: Nataniel Borges Date: Mon, 24 Jul 2023 10:46:37 +0000 Subject: [PATCH] Wait until notification pop up is gone before trying to open the notification shade Bug: 288341660 Test: atest OpenAppFromNotificationWarmTest Change-Id: I2f2f4101408646d364827c78eecfdb12928ff29f --- .../flicker/notification/OpenAppFromNotificationWarmTest.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/notification/OpenAppFromNotificationWarmTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/notification/OpenAppFromNotificationWarmTest.kt index a6cf8eebf0639..0e33390353e92 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/notification/OpenAppFromNotificationWarmTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/notification/OpenAppFromNotificationWarmTest.kt @@ -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 {