Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43f5994b authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Fix replacesLayer assertion to account for splashscreen layer

Bug: 271553459

Test: atest FlickerTests
Change-Id: Ie399c7333dc7af8c31a144e5e497c7abd96c5d6e
parent dd6e25cd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)