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

Commit 09d0d87e authored by Toshiki Kikuchi's avatar Toshiki Kikuchi
Browse files

Fix launchAppFromTaskbar

This CL fixes the issue where launchAppFromTaskbar can’t find the app
icon object properly due to the recent updates on the taskbar view
hierarchy.

Flag: EXEMPT - test fix
Bug: 439726775
Test: WMShellSmokeTestsDesktopMode
Change-Id: I5ce805898358f43cf588e52977e58d4cf97b168a
parent f4b80367
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -538,7 +538,7 @@ class ConnectedDisplayCujSmokeTests {
    fun findDefaultDisplayObject(paneObject: UiObject2) = paneObject.children[1]

    fun launchAppFromTaskbar(displayId: Int, appHelper: StandardAppHelper) {
        val selector = By.text(appHelper.appName).hasParent(taskbarSelector(displayId))
        val selector = By.text(appHelper.appName).hasAncestor(taskbarSelector(displayId))
        val appName = appHelper.appName
        DeviceHelpers.waitForObj(selector) {
            "Can't find an app icon of $appName on taskbar on display#$displayId"