summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ming-Shin Lu <lumark@google.com> 2022-04-15 21:25:52 +0800
committer Ming-Shin Lu <lumark@google.com> 2022-04-18 20:58:25 +0800
commit26780b4d6da2e49c556034ee91fc77b1bf2997bd (patch)
tree44dd10a72b144e771fa384422ee629f0dd444413
parentddd9dc84b8edca4bcd1d6e183d8bcc6525a50f01 (diff)
Fix imeLayerAndImeSnapshotVisibleOnScreen flaky
In case IME-snapshot removed and the assertion can't verify IME-snapshot visible from the next frame, fix the assertion by verifying both IME-snapshot and IME are invisible in the end. Fix: 228947097 Test: atest FlickerTests:CloseImeEditorPopupDialogTest \ --rerun-until-failure 20 Change-Id: I1d945cd10761af1c7dad9154a550e69bf4d481ee
-rw-r--r--tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeEditorPopupDialogTest.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeEditorPopupDialogTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeEditorPopupDialogTest.kt
index bff099e2e7a1..6257484be9bd 100644
--- a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeEditorPopupDialogTest.kt
+++ b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/CloseImeEditorPopupDialogTest.kt
@@ -91,6 +91,7 @@ class CloseImeEditorPopupDialogTest(private val testSpec: FlickerTestParameter)
.then()
.isVisible(FlickerComponentName.IME_SNAPSHOT)
.then()
+ .isInvisible(FlickerComponentName.IME_SNAPSHOT)
.isInvisible(FlickerComponentName.IME)
}
}