Ignore bubbles dialog in visible layer check
It may appear for 1 frame before animating. Fixes: 290619656 Test: atest WMShellFlickerTestsBubbles Change-Id: Iec2245d038657edea00d7502b179722502134fcd
This commit is contained in:
@@ -20,6 +20,7 @@ import android.content.Context
|
||||
import android.graphics.Point
|
||||
import android.platform.test.annotations.Presubmit
|
||||
import android.tools.common.flicker.subject.layers.LayersTraceSubject
|
||||
import android.tools.common.traces.component.ComponentNameMatcher
|
||||
import android.tools.device.flicker.junit.FlickerParametersRunnerFactory
|
||||
import android.tools.device.flicker.legacy.FlickerBuilder
|
||||
import android.tools.device.flicker.legacy.LegacyFlickerTest
|
||||
@@ -80,7 +81,8 @@ open class DragToDismissBubbleScreenTest(flicker: LegacyFlickerTest) : BaseBubbl
|
||||
override fun visibleLayersShownMoreThanOneConsecutiveEntry() {
|
||||
flicker.assertLayers {
|
||||
this.visibleLayersShownMoreThanOneConsecutiveEntry(
|
||||
LayersTraceSubject.VISIBLE_FOR_MORE_THAN_ONE_ENTRY_IGNORE_LAYERS + listOf(testApp)
|
||||
LayersTraceSubject.VISIBLE_FOR_MORE_THAN_ONE_ENTRY_IGNORE_LAYERS +
|
||||
listOf(testApp, ComponentNameMatcher(className = "Bubbles!#"))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user