Align the background color component name from shell and flicker test.

The background color layer in DefaultTransitionHandler was renamed to
animation-background, update the component name in TransitionTest to
make they align.

Bug: 289408547
Test: atest FlickerTests:TaskTransitionTest
Change-Id: I3d3af08880c5f2b94b17933fec04901c16e59c62
This commit is contained in:
wilsonshih
2023-07-03 12:44:56 +08:00
committed by Wei Sheng Shih
parent b698508cb3
commit 40f4ec916c

View File

@@ -121,7 +121,7 @@ class TaskTransitionTest(flicker: LegacyFlickerTest) : BaseTest(flicker) {
@FlakyTest(bugId = 265007895)
@Test
fun transitionHasColorBackground() {
val backgroundColorLayer = ComponentNameMatcher("", "Animation Background")
val backgroundColorLayer = ComponentNameMatcher("", "animation-background")
val displayBounds = WindowUtils.getDisplayBounds(flicker.scenario.startRotation)
flicker.assertLayers {
this.invoke("LAUNCH_NEW_TASK_ACTIVITY coversExactly displayBounds") {