Promote passing OpenAppNonResizeableTest tests

It's <0.5% flaky in presubmit for the past month

Bug: 203538234
Bug: 227143265
Bug: 227083463
Bug: 218470989
Test: atest FlickerTests
Change-Id: I563bbf8eac7391d1351f25e89aaa0533ae3d24a2
This commit is contained in:
Nataniel Borges
2023-04-14 10:46:36 +00:00
parent b6ea0ff366
commit 9081dc9247

View File

@@ -17,7 +17,6 @@
package com.android.server.wm.flicker.launch
import android.platform.test.annotations.FlakyTest
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.Presubmit
import android.tools.common.NavBar
import android.tools.common.Rotation
@@ -70,7 +69,7 @@ open class OpenAppNonResizeableTest(flicker: FlickerTest) : OpenAppFromLockTrans
* Checks that the [ComponentNameMatcher.NAV_BAR] layer starts invisible, becomes visible during
* unlocking animation and remains visible at the end
*/
@FlakyTest(bugId = 227083463)
@Presubmit
@Test
fun navBarLayerVisibilityChanges() {
Assume.assumeFalse(flicker.scenario.isTablet)
@@ -155,8 +154,19 @@ open class OpenAppNonResizeableTest(flicker: FlickerTest) : OpenAppFromLockTrans
@Ignore("Not applicable to this CUJ. Display starts off and app is full screen at the end")
override fun statusBarWindowIsAlwaysVisible() {}
/** {@inheritDoc} */
@Presubmit
@Test
override fun appWindowBecomesFirstAndOnlyTopWindow() =
super.appWindowBecomesFirstAndOnlyTopWindow()
/** {@inheritDoc} */
@Presubmit
@Test
override fun appWindowBecomesVisible() = super.appWindowBecomesVisible()
/** Checks the [ComponentNameMatcher.NAV_BAR] is visible at the end of the transition */
@Postsubmit
@Presubmit
@Test
fun navBarLayerIsVisibleAtEnd() {
Assume.assumeFalse(flicker.scenario.isTablet)
@@ -185,18 +195,11 @@ open class OpenAppNonResizeableTest(flicker: FlickerTest) : OpenAppFromLockTrans
super.appLayerBecomesVisible()
}
/** {@inheritDoc} */
@FlakyTest @Test override fun entireScreenCovered() = super.entireScreenCovered()
@FlakyTest(bugId = 218470989)
@Presubmit
@Test
override fun visibleWindowsShownMoreThanOneConsecutiveEntry() =
super.visibleWindowsShownMoreThanOneConsecutiveEntry()
@FlakyTest(bugId = 227143265)
@Test
override fun appWindowBecomesTopWindow() = super.appWindowBecomesTopWindow()
@FlakyTest(bugId = 251217585)
@Test
override fun focusChanges() {