Merge "Ignore bubbles dialog in visible layer check" into main

This commit is contained in:
Nataniel Borges
2023-07-11 11:25:50 +00:00
committed by Android (Google) Code Review

View File

@@ -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
@@ -78,7 +79,8 @@ class DragToDismissBubbleScreenTest(flicker: LegacyFlickerTest) : BaseBubbleScre
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!#"))
)
}
}