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

Commit 8c8c48b9 authored by Mady Mellor's avatar Mady Mellor
Browse files

Disable user education from showing in bubble flicker tests

Bug: 296872193
Test: atest WMShellFlickerTestsBubbles com.android.wm.shell.flicker.bubble.OpenActivityFromBubbleOnLocksreenTest
Change-Id: I725817378c9d21257501948f97d52e3b22292c03
parent 3697f77a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import androidx.test.uiautomator.By
import androidx.test.uiautomator.UiObject2
import androidx.test.uiautomator.Until
import com.android.server.wm.flicker.helpers.LaunchBubbleHelper
import com.android.server.wm.flicker.helpers.MultiWindowUtils
import com.android.wm.shell.flicker.BaseTest
import org.junit.runners.Parameterized

@@ -56,6 +57,9 @@ abstract class BaseBubbleScreen(flicker: LegacyFlickerTest) : BaseTest(flicker)
    ): FlickerBuilder.() -> Unit {
        return {
            setup {
                MultiWindowUtils.executeShellCommand(
                        instrumentation,
                        "settings put secure force_hide_bubbles_user_education 1")
                notifyManager.setBubblesAllowed(
                    testApp.packageName,
                    uid,
@@ -67,6 +71,9 @@ abstract class BaseBubbleScreen(flicker: LegacyFlickerTest) : BaseTest(flicker)
            }

            teardown {
                MultiWindowUtils.executeShellCommand(
                        instrumentation,
                        "settings put secure force_hide_bubbles_user_education 0")
                notifyManager.setBubblesAllowed(
                    testApp.packageName,
                    uid,