From 836eb795f095a08e8bcf2a7d0b7806baab681df6 Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Thu, 13 Jan 2022 18:09:27 +0100 Subject: [PATCH] Make snapshot window optional in appWindowIsVisibleOnceLauncherWindowIsInvisible assertion Test: atest FlickerTests:QuickSwitchFromLauncherTest Fixes: 214350643 Change-Id: I8c4c167035471f6590bcee9021e8edc1b45bc7d4 --- .../wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt index dcb5c86f32ada..8f2803e97986f 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/quickswitch/QuickSwitchFromLauncherTest.kt @@ -261,7 +261,7 @@ class QuickSwitchFromLauncherTest(private val testSpec: FlickerTestParameter) { testSpec.assertWm { this.isAppWindowOnTop(LAUNCHER_COMPONENT) .then() - .isAppWindowVisible(FlickerComponentName.SNAPSHOT) + .isAppWindowVisible(FlickerComponentName.SNAPSHOT, isOptional = true) .then() .isAppWindowVisible(testApp.component) } @@ -342,4 +342,4 @@ class QuickSwitchFromLauncherTest(private val testSpec: FlickerTestParameter) { ) } } -} \ No newline at end of file +}