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

Commit 4c58eb16 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Set correct TAPL rotation expectation

Bug: 244414110

Test: atest FlickerTests
Change-Id: I298a6b6d71454641de27386ebb5768c6efb7e48b
parent 45b62d4b
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -62,19 +62,23 @@ class OpenAppColdFromIcon(
        get() = {
            super.transition(this)
            setup {
                if (testSpec.isTablet) {
                    tapl.setExpectedRotation(testSpec.startRotation)
                } else {
                    tapl.setExpectedRotation(Surface.ROTATION_0)
                }
                RemoveAllTasksButHomeRule.removeAllTasksButHome()
                this.setRotation(testSpec.startRotation)
            }
            teardown {
                testApp.exit(wmHelper)
            }
            transitions {
                tapl.goHome()
                    .switchToAllApps()
                    .getAppIcon(testApp.launcherName)
                    .launch(testApp.`package`)
            }
            teardown {
                testApp.exit(wmHelper)
            }
        }

    /** {@inheritDoc} */