Merge "Revert "Fix replacesLayer assertion to account for splashscreen layer"" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-03-30 12:00:22 +00:00
committed by Android (Google) Code Review

View File

@@ -317,8 +317,7 @@ fun FlickerTest.replacesLayer(
assertion.then().isVisible(ComponentNameMatcher.SNAPSHOT, isOptional = true)
}
if (ignoreSplashscreen) {
assertion.then().isSplashScreenVisibleFor(
ComponentNameMatcher(newLayer.packageName, className = ""), isOptional = true)
assertion.then().isSplashScreenVisibleFor(newLayer, isOptional = true)
}
assertion.then().isVisible(newLayer)