From a1cad7d704bc3693948c8503b4b8f36acc21390a Mon Sep 17 00:00:00 2001 From: Ming-Shin Lu Date: Wed, 21 Sep 2022 01:54:03 +0800 Subject: [PATCH] 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 --- .../wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt index 02b3b1398e505..0ca6457379e1c 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/ime/SwitchImeWindowsFromGestureNavTest.kt @@ -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() }