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
This commit is contained in:
Ming-Shin Lu
2022-04-15 21:25:52 +08:00
parent ddd9dc84b8
commit 26780b4d6d

View File

@@ -91,6 +91,7 @@ class CloseImeEditorPopupDialogTest(private val testSpec: FlickerTestParameter)
.then()
.isVisible(FlickerComponentName.IME_SNAPSHOT)
.then()
.isInvisible(FlickerComponentName.IME_SNAPSHOT)
.isInvisible(FlickerComponentName.IME)
}
}