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

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

Fix SwitchImeWindowsFromGestureNavTest faluire on tablet devices

Use CL[1]'s new added quick-switch methods in TAPL to ignore taskbar
visibility verification for preventing false-alarm failure when
switching to the IME test activity on the tablet test.

[1]: Id0a35561523d733b8434acb702ec7dcaa466a1c2

Fix: 228012334
Test: atest FlickerTests:SwitchImeWindowsFromGestureNavTest
in tablet devices

Change-Id: I73813e7c54941cec5f8749b35e577164815b455a
parent 38be8a6d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ open class SwitchImeWindowsFromGestureNavTest(testSpec: FlickerTestParameter) :
    override val transition: FlickerBuilder.() -> Unit = {
        setup {
            tapl.setExpectedRotationCheckEnabled(false)
            tapl.setIgnoreTaskbarVisibility(true)
            this.setRotation(testSpec.startRotation)
            testApp.launchViaIntent(wmHelper)
            wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify()
@@ -78,14 +79,16 @@ open class SwitchImeWindowsFromGestureNavTest(testSpec: FlickerTestParameter) :
            imeTestApp.exit(wmHelper)
        }
        transitions {
            // [Step1]: Swipe right from imeTestApp to testApp task
            // [Step1]: Swipe right from testApp task to imeTestApp
            createTag(TAG_IME_VISIBLE)
            // Expect taskBar invisible when switching to imeTestApp on the large screen device.
            tapl.launchedAppState.quickSwitchToPreviousApp()
            wmHelper.StateSyncBuilder().withFullScreenApp(testApp).waitForAndVerify()
            createTag(TAG_IME_INVISIBLE)
        }
        transitions {
            // [Step2]: Swipe left to back to imeTestApp task
            // [Step2]: Swipe left to back to testApp task
            // Expect taskBar visible when switching to testApp on the large screen device.
            tapl.launchedAppState.quickSwitchToPreviousAppSwipeLeft()
            wmHelper.StateSyncBuilder().withFullScreenApp(imeTestApp).waitForAndVerify()
        }