Promote stable flicker tests

Change-Id: Ibdb17efe85a8a6cb8da16d96c1658720f53bd671
This commit is contained in:
Pablo Gamito
2022-03-10 11:19:06 +00:00
parent 99497f45bb
commit 19caa1d7d8
3 changed files with 27 additions and 3 deletions

View File

@@ -16,6 +16,7 @@
package com.android.wm.shell.flicker.bubble
import android.platform.test.annotations.Presubmit
import androidx.test.filters.FlakyTest
import androidx.test.filters.RequiresDevice
import androidx.test.uiautomator.By
@@ -24,6 +25,8 @@ 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.server.wm.flicker.helpers.isShellTransitionsEnabled
import org.junit.Assume
import org.junit.runner.RunWith
import org.junit.Test
import org.junit.runners.Parameterized
@@ -69,9 +72,19 @@ class LaunchBubbleFromLockScreen(testSpec: FlickerTestParameter) : BaseBubbleScr
}
}
@FlakyTest
@Presubmit
@Test
fun testAppIsVisibleAtEnd() {
Assume.assumeFalse(isShellTransitionsEnabled)
testSpec.assertLayersEnd {
this.isVisible(testApp.component)
}
}
@FlakyTest
@Test
fun testAppIsVisibleAtEnd_ShellTransit() {
Assume.assumeTrue(isShellTransitionsEnabled)
testSpec.assertLayersEnd {
this.isVisible(testApp.component)
}

View File

@@ -16,6 +16,7 @@
package com.android.wm.shell.flicker.bubble
import android.platform.test.annotations.Presubmit
import androidx.test.filters.FlakyTest
import android.platform.test.annotations.RequiresDevice
import com.android.server.wm.flicker.FlickerParametersRunnerFactory
@@ -57,9 +58,19 @@ open class LaunchBubbleScreen(testSpec: FlickerTestParameter) : BaseBubbleScreen
}
}
@FlakyTest(bugId = 218642026)
@Presubmit
@Test
open fun testAppIsAlwaysVisible() {
Assume.assumeFalse(isShellTransitionsEnabled)
testSpec.assertLayers {
this.isVisible(testApp.component)
}
}
@FlakyTest(bugId = 218642026)
@Test
open fun testAppIsAlwaysVisible_ShellTransit() {
Assume.assumeTrue(isShellTransitionsEnabled)
testSpec.assertLayers {
this.isVisible(testApp.component)
}

View File

@@ -74,7 +74,7 @@ open class OpenAppNonResizeableTest(testSpec: FlickerTestParameter)
* Checks that the nav bar layer starts invisible, becomes visible during unlocking animation
* and remains visible at the end
*/
@Postsubmit
@Presubmit
@Test
fun navBarLayerVisibilityChanges() {
testSpec.assertLayers {