Merge "Fix flaky assertion"

This commit is contained in:
Pablo Gamito
2021-12-03 20:08:02 +00:00
committed by Android (Google) Code Review

View File

@@ -107,9 +107,13 @@ class SwitchImeWindowsFromGestureNavTest(private val testSpec: FlickerTestParame
fun imeAppWindowVisibility() {
testSpec.assertWm {
isAppWindowVisible(imeTestApp.component)
.then()
.isAppSnapshotStartingWindowVisibleFor(testApp.component, isOptional = true)
.then()
.isAppWindowVisible(testApp.component)
.then()
.isAppSnapshotStartingWindowVisibleFor(imeTestApp.component, isOptional = true)
.then()
.isAppWindowVisible(imeTestApp.component)
}
}