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

Commit 27b134cc authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Ignore bubbles dialog in visible layer check

It may appear for 1 frame before animating.

Fixes: 290619656
Test: atest WMShellFlickerTestsBubbles
Change-Id: Iec2245d038657edea00d7502b179722502134fcd
parent 6aa93228
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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!#"))
            )
        }
    }