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

Commit 84d80c52 authored by Orhan Uysal's avatar Orhan Uysal
Browse files

Fix enterDesktopWithDrag test

A previous change made this test to fail due to test app not being
launched. Use new enterDesktopMode method instead as it defaults to
enterDesktopWithDrag now.

Fix: 379662054
Test: atest EnterDesktopWithDragPortraitTest
Flag: EXEMPT Bugfix
Change-Id: If8025cd5d601be5c972c0fa5d002cf4a9ccc7837
parent 6c99a727
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -49,7 +49,8 @@ constructor(

    @Test
    open fun enterDesktopWithDrag() {
        testApp.enterDesktopModeWithDrag(wmHelper, device)
        // By default this method uses drag to desktop
        testApp.enterDesktopMode(wmHelper, device)
    }

    @After
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ open class DesktopModeAppHelper(private val innerHelper: IStandardAppHelper) :
    }

    /** Move an app to Desktop by dragging the app handle at the top. */
    fun enterDesktopModeWithDrag(
    private fun enterDesktopModeWithDrag(
        wmHelper: WindowManagerStateHelper,
        device: UiDevice,
        motionEventHelper: MotionEventHelper = MotionEventHelper(getInstrumentation(), TOUCH)