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

Commit 7e4ae567 authored by Antonella Dellanzo's avatar Antonella Dellanzo
Browse files

Add presubmit tag for OpenAppToSplitScreenTest

The test OpenAppToSplitScreenTest was marked as flaky as it doesn't run because of b/161435597 when being on 90 degrees. So we are removing the flaky annotation and marking the test to only run on 0 degrees. Also adding the presubmit annotation. This test is similar to one of the test inside EnterSplitScreenTest that's been running with no problem.

Test: atest WMShellFlickerTests
Change-Id: I4e9496286210805e0a8d15d7905cf6fbbc28a4ed
parent bb6b04ca
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
package com.android.wm.shell.flicker.splitscreen

import android.platform.test.annotations.Presubmit
import androidx.test.filters.FlakyTest
import android.view.Surface
import androidx.test.filters.RequiresDevice
import androidx.test.platform.app.InstrumentationRegistry
import com.android.server.wm.flicker.DOCKED_STACK_DIVIDER
@@ -54,7 +54,6 @@ import org.junit.runners.Parameterized
@RequiresDevice
@RunWith(Parameterized::class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
@FlakyTest(bugId = 161435597)
class OpenAppToSplitScreenTest(
    testName: String,
    flickerSpec: Flicker
@@ -67,7 +66,8 @@ class OpenAppToSplitScreenTest(
            val testApp = StandardAppHelper(instrumentation,
                "com.android.wm.shell.flicker.testapp", "SimpleApp")

            return FlickerTestRunnerFactory(instrumentation)
            // b/161435597 causes the test not to work on 90 degrees
            return FlickerTestRunnerFactory(instrumentation, listOf(Surface.ROTATION_0))
                .buildTest { configuration ->
                    withTestName {
                        buildTestTag("appToSplitScreen", testApp, configuration)