Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d51eab2c authored by Ming-Shin Lu's avatar Ming-Shin Lu
Browse files

Deflake CloseImeOnDismissPopupDialogTest

In imeLayerAndImeSnapshotVisibleOnScreen, add "isOptional = true" when
verifying IME snapshot isVisible, in case a false alarm flakiness
happens when the IME snapshot surface removed when the popup editor
dialog was dismissed.

Bug: 274653385
Test: atest FlickerTests:CloseImeOnDismissPopupDialogTest
--rerun-until-falure 10 passed on cuttlefish devices.

Change-Id: I61bf11a5b63b5a540e3693f33253b2a599c2142d
parent 7473649b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ open class CloseImeOnDismissPopupDialogTest(flicker: FlickerTest) : BaseTest(fli
        flicker.assertLayers {
            this.isVisible(ComponentNameMatcher.IME)
                .then()
                .isVisible(ComponentNameMatcher.IME_SNAPSHOT)
                .isVisible(ComponentNameMatcher.IME_SNAPSHOT, isOptional = true)
                .then()
                .isInvisible(ComponentNameMatcher.IME_SNAPSHOT, isOptional = true)
                .isInvisible(ComponentNameMatcher.IME)