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

Commit 3639086a authored by Charles Chen's avatar Charles Chen
Browse files

Verify bubble overflow with System UI Instumentation

Bug: 396020056
Test: atest WMShellExplicitFlickerTestsBubbles
Flag: TEST_ONLY
Change-Id: I8a0f74d078118a137f9f313113b09114a68a8d93
parent 6d6ec172
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ android_test {
        "flickerlib-trace_processor_shell",
        "flickertestapplib",
        "platform-test-annotations",
        "systemui-tapl",
        "systemui-helper",
        "wm-flicker-common-app-helpers",
        "wm-shell-flicker-utils",
    ],
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ package com.android.wm.shell.flicker.bubbles.utils

import android.app.Instrumentation
import android.graphics.Point
import android.platform.systemui_tapl.ui.Root
import android.tools.Rotation
import android.tools.device.apphelpers.StandardAppHelper
import android.tools.flicker.rules.ChangeDisplayOrientationRule
@@ -200,6 +201,8 @@ private fun waitAndAssertBubbleAppInExpandedState(
        .withTopVisibleApp(testApp)
        .withBubbleShown()
        .waitForAndVerify()

    Root.get().expandedBubbleStack.verifyBubbleOverflowIsVisible()
}

private fun waitAndAssertBubbleAppInCollapseState(wmHelper: WindowManagerStateHelper) {