Revert "Fix replacesLayer assertion to account for splashscreen layer"

This reverts commit 43f5994b18.

Reason for revert: ag/21778200 makes this patch unnecessary

Change-Id: I5697d1e615fdcb3cdc5ae9135891c3d18c13458a
This commit is contained in:
Pablo Gamito
2023-03-04 12:43:38 +00:00
committed by Android (Google) Code Review
parent 43f5994b18
commit ced4abc82f

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)