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

Commit ba142e00 authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Demote flaky flicker tests from presubmit

The test flakiness is significantly slowing down presubmit

Bug: 209843622
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I096e9f69e6de8ff73d527db533e76e8da44fdcb0
parent 2c54922c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -24,6 +24,9 @@ import com.android.server.wm.flicker.FlickerParametersRunnerFactory
import com.android.server.wm.flicker.FlickerTestParameter
import com.android.server.wm.flicker.annotation.Group4
import com.android.server.wm.flicker.dsl.FlickerBuilder
import com.android.wm.shell.flicker.helpers.BaseAppHelper
import org.junit.Assume
import org.junit.Before
import org.junit.runner.RunWith
import org.junit.Test
import org.junit.runners.Parameterized
@@ -59,6 +62,12 @@ class ExpandBubbleScreen(testSpec: FlickerTestParameter) : BaseBubbleScreen(test
            }
        }

    @Before
    fun setup() {
        // This test doesn't work in shell transitions because of b/205288792
        Assume.assumeFalse(BaseAppHelper.isShellTransitionsEnabled())
    }

    @Presubmit
    @Test
    fun testAppIsAlwaysVisible() {
+9 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@ import com.android.server.wm.flicker.FlickerParametersRunnerFactory
import com.android.server.wm.flicker.FlickerTestParameter
import com.android.server.wm.flicker.annotation.Group4
import com.android.server.wm.flicker.dsl.FlickerBuilder
import com.android.wm.shell.flicker.helpers.BaseAppHelper
import org.junit.Assume
import org.junit.Before
import org.junit.runner.RunWith
import org.junit.Test
import org.junit.runners.Parameterized
@@ -67,6 +70,12 @@ class MultiBubblesScreen(testSpec: FlickerTestParameter) : BaseBubbleScreen(test
            }
        }

    @Before
    fun setup() {
        // This test doesn't work in shell transitions because of b/205288792
        Assume.assumeFalse(BaseAppHelper.isShellTransitionsEnabled())
    }

    @Presubmit
    @Test
    fun testAppIsAlwaysVisible() {
+5 −0
Original line number Diff line number Diff line
@@ -82,6 +82,11 @@ class ExitPipViaExpandButtonClickTest(
    @Test
    override fun statusBarLayerRotatesScales() = super.statusBarLayerRotatesScales()

    /** {@inheritDoc}  */
    @FlakyTest(bugId = 197726610)
    @Test
    override fun pipLayerExpands() = super.pipLayerExpands()

    companion object {
        /**
         * Creates the test configurations.
+5 −0
Original line number Diff line number Diff line
@@ -101,6 +101,11 @@ class ExitPipViaIntentTest(testSpec: FlickerTestParameter) : ExitPipToAppTransit
    @Test
    override fun statusBarLayerRotatesScales() = super.statusBarLayerRotatesScales()

    /** {@inheritDoc}  */
    @FlakyTest(bugId = 197726610)
    @Test
    override fun pipLayerExpands() = super.pipLayerExpands()

    companion object {
        /**
         * Creates the test configurations.
+5 −0
Original line number Diff line number Diff line
@@ -90,6 +90,11 @@ class ExitPipWithDismissButtonTest(testSpec: FlickerTestParameter) : ExitPipTran
    @Test
    override fun statusBarLayerRotatesScales() = super.statusBarLayerRotatesScales()

    /** {@inheritDoc}  */
    @FlakyTest(bugId = 215869110)
    @Test
    override fun focusDoesNotChange() = super.focusDoesNotChange()

    companion object {
        /**
         * Creates the test configurations.
Loading