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

Commit d59e0976 authored by Nataniel Borges's avatar Nataniel Borges Committed by Automerger Merge Worker
Browse files

Merge "Fix pip window visibility assertions" into sc-dev am: 8a26f00f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14327906

Change-Id: I5beae0497718de1d8740513fbd7d53d6e3196d7c
parents e8a8c94f 8a26f00f
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) {
    @Test
    fun pipLayerBecomesVisible() {
        testSpec.assertLayers {
            this.isVisible(pipApp.launcherName)
            this.isVisible(pipApp.windowName)
        }
    }

@@ -73,9 +73,11 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) {
    @Test
    fun pipWindowBecomesVisible() {
        testSpec.assertWm {
            invoke("pipWindowIsNotVisible") { !it.wmState.hasPipWindow() }
                .then()
                .invoke("pipWindowIsVisible") { it.wmState.hasPipWindow() }
            invoke("pipWindowIsNotVisible") {
                verify("Has no pip window").that(it.wmState.hasPipWindow()).isTrue()
            }.then().invoke("pipWindowIsVisible") {
                verify("Has pip window").that(it.wmState.hasPipWindow()).isTrue()
            }
        }
    }