Fix replacesLayer assertion to account for splashscreen layer
Bug: 271553459 Test: atest FlickerTests Change-Id: Ie399c7333dc7af8c31a144e5e497c7abd96c5d6e
This commit is contained in:
@@ -317,7 +317,8 @@ fun FlickerTest.replacesLayer(
|
||||
assertion.then().isVisible(ComponentNameMatcher.SNAPSHOT, isOptional = true)
|
||||
}
|
||||
if (ignoreSplashscreen) {
|
||||
assertion.then().isSplashScreenVisibleFor(newLayer, isOptional = true)
|
||||
assertion.then().isSplashScreenVisibleFor(
|
||||
ComponentNameMatcher(newLayer.packageName, className = ""), isOptional = true)
|
||||
}
|
||||
|
||||
assertion.then().isVisible(newLayer)
|
||||
|
||||
Reference in New Issue
Block a user