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

Commit 1e6b569c authored by Nataniel Borges's avatar Nataniel Borges
Browse files

9/ Fix TAPL on app close

When pressing home, TAPL expects the orientation to remain constant. However, when closing a landscape app back to a portrait-only launcher this causes an error in verifyActiveContainer();

Bug: 235792328
Test: atest FlickerTests:OpenAppColdFromIcon
Change-Id: I6a7b14171cf1b3be8f08da28b30429ad3cf03248
parent 2f771c7d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -68,7 +68,11 @@ class CloseAppHomeButtonTest(testSpec: FlickerTestParameter) : CloseAppTransitio
        get() = {
            super.transition(this)
            transitions {
                tapl.goHome()
                // Can't use TAPL at the moment because of rotation test issues
                // When pressing home, TAPL expects the orientation to remain constant
                // However, when closing a landscape app back to a portrait-only launcher
                // this causes an error in verifyActiveContainer();
                device.pressHome()
                wmHelper.StateSyncBuilder()
                    .withHomeActivityVisible()
                    .waitForAndVerify()
+3 −0
Original line number Diff line number Diff line
@@ -50,6 +50,9 @@ abstract class CloseAppTransition(protected val testSpec: FlickerTestParameter)
     */
    protected open val transition: FlickerBuilder.() -> Unit = {
        setup {
            test {
                tapl.setExpectedRotation(testSpec.startRotation)
            }
            eachRun {
                testApp.launchViaIntent(wmHelper)
                this.setRotation(testSpec.startRotation)