summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mateusz Cicheński <mateuszc@google.com> 2024-02-05 19:50:52 +0000
committer Mateusz Cicheński <mateuszc@google.com> 2024-02-05 19:50:52 +0000
commit677a8fd23f780a477e5f8e7f7969567b189d043d (patch)
treed3a11d9f837635de034fb3e98578a1a22e520504
parent1bbf379bc41e0f0a0411ac6a48fff5ab0a530467 (diff)
Relax the assertion for MapsEnterPipTest for UI mode change
Going from fullscreen Maps to PiP goes through UI mode change that adds a snapshot overlay during the transition. Relax the assertion to test only the start/end state. Bug: 314838452 Test: atest MapsEnterPipTest Change-Id: I8e3175c80d65770c5b44f9617221c843b7ec9679
-rw-r--r--libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/apps/MapsEnterPipTest.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/apps/MapsEnterPipTest.kt b/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/apps/MapsEnterPipTest.kt
index e272958d78f8..4c2eff3b6ce4 100644
--- a/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/apps/MapsEnterPipTest.kt
+++ b/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/apps/MapsEnterPipTest.kt
@@ -137,6 +137,16 @@ open class MapsEnterPipTest(flicker: LegacyFlickerTest) : AppsEnterPipTransition
override val thisTransition: FlickerBuilder.() -> Unit = { transitions { tapl.goHome() } }
+ /** Checks [standardAppHelper] layer remains visible throughout the animation */
+ @Postsubmit
+ @Test
+ override fun pipAppLayerAlwaysVisible() {
+ // For Maps the transition goes through the UI mode change that adds a snapshot overlay so
+ // we assert only start/end layers matching the app instead.
+ flicker.assertLayersStart { this.isVisible(standardAppHelper.packageNameMatcher) }
+ flicker.assertLayersEnd { this.isVisible(standardAppHelper.packageNameMatcher) }
+ }
+
@Postsubmit
@Test
override fun focusChanges() {