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

Commit 17ea0758 authored by Liran Binyamin's avatar Liran Binyamin Committed by Android (Google) Code Review
Browse files

Merge "Use Root in OpenActivityFromBubbleOnLocksreenTest" into main

parents b6eae9eb 1a7946b9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -69,6 +69,8 @@ java_defaults {
        "launcher-helper-lib",
        "platform-test-annotations",
        "platform-test-rules",
        "systemui-helper",
        "systemui-tapl",
        "wm-flicker-common-app-helpers",
        "wm-flicker-common-assertions",
        "wm-shell-flicker-utils",
+2 −6
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.wm.shell.flicker.bubble

import android.platform.systemui_tapl.ui.Root
import android.platform.test.annotations.Postsubmit
import android.tools.flicker.junit.FlickerParametersRunnerFactory
import android.tools.flicker.FlickerBuilder
@@ -79,12 +80,7 @@ class OpenActivityFromBubbleOnLockscreenTest(flicker: FlickerTest) :
                    device.wait(Until.findObject(By.text("BubbleChat")), FIND_OBJECT_TIMEOUT)
                notification?.click() ?: error("Notification not found")
                instrumentation.uiAutomation.syncInputTransactions()
                val showBubble =
                    device.wait(
                        Until.findObject(By.res(SYSTEM_UI_PACKAGE, BUBBLE_RES_NAME)),
                        FIND_OBJECT_TIMEOUT
                    )
                showBubble?.click() ?: error("Bubble notify not found")
                Root.get().bubble.click()
                instrumentation.uiAutomation.syncInputTransactions()
                val cancelAllBtn = waitAndGetCancelAllBtn()
                cancelAllBtn?.click() ?: error("Cancel widget not found")