Merge "Fix pip window visibility assertions" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8a26f00f1f
@@ -65,7 +65,7 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) {
|
|||||||
@Test
|
@Test
|
||||||
fun pipLayerBecomesVisible() {
|
fun pipLayerBecomesVisible() {
|
||||||
testSpec.assertLayers {
|
testSpec.assertLayers {
|
||||||
this.isVisible(pipApp.launcherName)
|
this.isVisible(pipApp.windowName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,9 +73,11 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) {
|
|||||||
@Test
|
@Test
|
||||||
fun pipWindowBecomesVisible() {
|
fun pipWindowBecomesVisible() {
|
||||||
testSpec.assertWm {
|
testSpec.assertWm {
|
||||||
invoke("pipWindowIsNotVisible") { !it.wmState.hasPipWindow() }
|
invoke("pipWindowIsNotVisible") {
|
||||||
.then()
|
verify("Has no pip window").that(it.wmState.hasPipWindow()).isTrue()
|
||||||
.invoke("pipWindowIsVisible") { it.wmState.hasPipWindow() }
|
}.then().invoke("pipWindowIsVisible") {
|
||||||
|
verify("Has pip window").that(it.wmState.hasPipWindow()).isTrue()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user