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

Commit 0eaa0f1c authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Ensure apps not running on cold launch test

Currently the only test is not stopping existing apps and may be affected by previous runs on the same device.

Now, ensure all apps are closed when launching the test

Bug: 167521849
Test: atest FlickerTests:com.android.server.wm.flicker.launch
Change-Id: Ib29fb4835cd728e5855ae66452ff1ac9333499ed
parent ba720758
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import com.android.server.wm.flicker.FlickerTestParameterFactory
import com.android.server.wm.flicker.helpers.setRotation
import com.android.server.wm.flicker.startRotation
import com.android.server.wm.flicker.dsl.FlickerBuilder
import com.android.server.wm.flicker.rules.RemoveAllTasksButHomeRule.Companion.removeAllTasksButHome
import org.junit.FixMethodOrder
import org.junit.Test
import org.junit.runner.RunWith
@@ -44,6 +45,7 @@ class OpenAppColdTest(testSpec: FlickerTestParameter) : OpenAppTransition(testSp
            super.transition(this, it)
            setup {
                eachRun {
                    removeAllTasksButHome()
                    this.setRotation(testSpec.config.startRotation)
                }
            }