diff options
author | 2024-09-16 17:52:35 -0400 | |
---|---|---|
committer | 2024-09-17 16:37:51 +0000 | |
commit | 37b7cd5533ec11378c64d010b0798a68661ec54f (patch) | |
tree | deda2c7672de834405c586610cb4bd066a3fea97 | |
parent | ad0012cb0eb77a657352a707f4c638f7354246b6 (diff) |
Wait for keyguard showing rather than app not visible when going to sleep.
This was (only sometimes) causing the sleep transition to be cancelled, which then caused test flakes since we're asserting an ordering of app visibility states, not just a correct end state.
Bug: 278086361
Test: atest SystemUITests / this test
Flag: N/A
Change-Id: I3693feca80195a037fbbefd3bfff81988825a98f
-rw-r--r-- | tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/ShowImeOnUnlockScreenTest.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/ShowImeOnUnlockScreenTest.kt b/tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/ShowImeOnUnlockScreenTest.kt index 92b6b934874f..82e53c81daaa 100644 --- a/tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/ShowImeOnUnlockScreenTest.kt +++ b/tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/ShowImeOnUnlockScreenTest.kt @@ -54,7 +54,7 @@ class ShowImeOnUnlockScreenTest(flicker: LegacyFlickerTest) : BaseTest(flicker) } transitions { device.sleep() - wmHelper.StateSyncBuilder().withoutTopVisibleAppWindows().waitForAndVerify() + wmHelper.StateSyncBuilder().withKeyguardShowing().waitForAndVerify() UnlockScreenRule.unlockScreen(device) wmHelper.StateSyncBuilder().withImeShown().waitForAndVerify() } |