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

Commit 677a8fd2 authored by Mateusz Cicheński's avatar Mateusz Cicheński
Browse files

Relax the assertion for MapsEnterPipTest for UI mode change

Going from fullscreen Maps to PiP goes through UI mode change that adds
a snapshot overlay during the transition. Relax the assertion to test
only the start/end state.

Bug: 314838452
Test: atest MapsEnterPipTest
Change-Id: I8e3175c80d65770c5b44f9617221c843b7ec9679
parent 1bbf379b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -137,6 +137,16 @@ open class MapsEnterPipTest(flicker: LegacyFlickerTest) : AppsEnterPipTransition

    override val thisTransition: FlickerBuilder.() -> Unit = { transitions { tapl.goHome() } }

    /** Checks [standardAppHelper] layer remains visible throughout the animation */
    @Postsubmit
    @Test
    override fun pipAppLayerAlwaysVisible() {
        // For Maps the transition goes through the UI mode change that adds a snapshot overlay so
        // we assert only start/end layers matching the app instead.
        flicker.assertLayersStart { this.isVisible(standardAppHelper.packageNameMatcher) }
        flicker.assertLayersEnd { this.isVisible(standardAppHelper.packageNameMatcher) }
    }

    @Postsubmit
    @Test
    override fun focusChanges() {