Merge "Demote flaky tests"

This commit is contained in:
TreeHugger Robot
2022-10-06 03:55:31 +00:00
committed by Android (Google) Code Review
6 changed files with 85 additions and 10 deletions

View File

@@ -143,4 +143,10 @@ class LaunchBubbleFromLockScreen(testSpec: FlickerTestParameter) : BaseBubbleScr
@Test
override fun visibleWindowsShownMoreThanOneConsecutiveEntry() =
super.visibleWindowsShownMoreThanOneConsecutiveEntry()
@FlakyTest(bugId = 251217773)
@Test
override fun entireScreenCovered() {
super.entireScreenCovered()
}
}

View File

@@ -92,7 +92,7 @@ class AutoEnterPipOnGoToHomeTest(testSpec: FlickerTestParameter) : EnterPipTest(
}
/** Checks that [pipApp] window is animated towards default position in right bottom corner */
@Presubmit
@FlakyTest(bugId = 251135384)
@Test
fun pipLayerMovesTowardsRightBottomCorner() {
// in gestural nav the swipe makes PiP first go upwards

View File

@@ -141,6 +141,12 @@ class EnterPipToOtherOrientationTest(
@Test
fun entireScreenCoveredAtStartAndEnd() = testSpec.entireScreenCovered(allStates = false)
@FlakyTest(bugId = 251219769)
@Test
override fun entireScreenCovered() {
super.entireScreenCovered()
}
/**
* Checks [pipApp] window remains visible and on top throughout the transition
*/

View File

@@ -16,6 +16,7 @@
package com.android.wm.shell.flicker.pip
import android.platform.test.annotations.FlakyTest
import android.platform.test.annotations.Presubmit
import android.view.Surface
import androidx.test.filters.RequiresDevice
@@ -81,7 +82,7 @@ class ExitPipViaExpandButtonClickTest(
override fun entireScreenCovered() = super.entireScreenCovered()
/** {@inheritDoc} */
@Presubmit
@FlakyTest(bugId = 197726610)
@Test
override fun pipLayerExpands() = super.pipLayerExpands()

View File

@@ -16,7 +16,7 @@
package com.android.server.wm.flicker.ime
import android.platform.test.annotations.Presubmit
import android.platform.test.annotations.FlakyTest
import android.view.Surface
import androidx.test.filters.RequiresDevice
import com.android.server.wm.flicker.BaseTest
@@ -61,7 +61,7 @@ open class ReOpenImeWindowTest(testSpec: FlickerTestParameter) : BaseTest(testSp
}
/** {@inheritDoc} */
@Presubmit
@FlakyTest(bugId = 251214932)
@Test
override fun visibleLayersShownMoreThanOneConsecutiveEntry() {
// depends on how much of the animation transactions are sent to SF at once
@@ -79,7 +79,7 @@ open class ReOpenImeWindowTest(testSpec: FlickerTestParameter) : BaseTest(testSp
}
/** {@inheritDoc} */
@Presubmit
@FlakyTest(bugId = 251214932)
@Test
override fun visibleWindowsShownMoreThanOneConsecutiveEntry() {
val component = ComponentNameMatcher("", "RecentTaskScreenshotSurface")
@@ -95,7 +95,7 @@ open class ReOpenImeWindowTest(testSpec: FlickerTestParameter) : BaseTest(testSp
}
}
@Presubmit
@FlakyTest(bugId = 251214932)
@Test
fun launcherWindowBecomesInvisible() {
testSpec.assertWm {
@@ -105,9 +105,11 @@ open class ReOpenImeWindowTest(testSpec: FlickerTestParameter) : BaseTest(testSp
}
}
@Presubmit @Test fun imeWindowIsAlwaysVisible() = testSpec.imeWindowIsAlwaysVisible()
@FlakyTest(bugId = 251214932)
@Test
fun imeWindowIsAlwaysVisible() = testSpec.imeWindowIsAlwaysVisible()
@Presubmit
@FlakyTest(bugId = 251214932)
@Test
fun imeAppWindowIsAlwaysVisible() {
// the app starts visible in live tile, and stays visible for the duration of entering
@@ -117,13 +119,13 @@ open class ReOpenImeWindowTest(testSpec: FlickerTestParameter) : BaseTest(testSp
testSpec.assertWm { this.isAppWindowVisible(testApp) }
}
@Presubmit
@FlakyTest(bugId = 251214932)
@Test
fun imeLayerBecomesVisible() {
testSpec.assertLayers { this.isVisible(ComponentNameMatcher.IME) }
}
@Presubmit
@FlakyTest(bugId = 251214932)
@Test
fun appLayerReplacesLauncher() {
testSpec.assertLayers {
@@ -135,6 +137,60 @@ open class ReOpenImeWindowTest(testSpec: FlickerTestParameter) : BaseTest(testSp
}
}
@FlakyTest(bugId = 251214932)
@Test
override fun navBarLayerPositionAtStartAndEnd() {
super.navBarLayerPositionAtStartAndEnd()
}
@FlakyTest(bugId = 251214932)
@Test
override fun navBarWindowIsAlwaysVisible() {
super.navBarWindowIsAlwaysVisible()
}
@FlakyTest(bugId = 251214932)
@Test
override fun statusBarLayerIsVisibleAtStartAndEnd() {
super.statusBarLayerIsVisibleAtStartAndEnd()
}
@FlakyTest(bugId = 251214932)
@Test
override fun entireScreenCovered() {
super.entireScreenCovered()
}
@FlakyTest(bugId = 251214932)
@Test
override fun navBarLayerIsVisibleAtStartAndEnd() {
super.navBarLayerIsVisibleAtStartAndEnd()
}
@FlakyTest(bugId = 251214932)
@Test
override fun statusBarLayerPositionAtStartAndEnd() {
super.statusBarLayerPositionAtStartAndEnd()
}
@FlakyTest(bugId = 251214932)
@Test
override fun statusBarWindowIsAlwaysVisible() {
super.statusBarWindowIsAlwaysVisible()
}
@FlakyTest(bugId = 251214932)
@Test
override fun taskBarLayerIsVisibleAtStartAndEnd() {
super.taskBarLayerIsVisibleAtStartAndEnd()
}
@FlakyTest(bugId = 251214932)
@Test
override fun taskBarWindowIsAlwaysVisible() {
super.taskBarWindowIsAlwaysVisible()
}
companion object {
@Parameterized.Parameters(name = "{0}")
@JvmStatic

View File

@@ -197,6 +197,12 @@ open class OpenAppNonResizeableTest(testSpec: FlickerTestParameter) :
@Test
override fun appWindowBecomesTopWindow() = super.appWindowBecomesTopWindow()
@FlakyTest(bugId = 251217585)
@Test
override fun focusChanges() {
super.focusChanges()
}
companion object {
/**
* Creates the test configurations.