Merge "Make snapshot window optional in appWindowIsVisibleOnceLauncherWindowIsInvisible assertion"

This commit is contained in:
Pablo Gamito
2022-01-14 11:22:23 +00:00
committed by Android (Google) Code Review

View File

@@ -261,7 +261,7 @@ class QuickSwitchFromLauncherTest(private val testSpec: FlickerTestParameter) {
testSpec.assertWm {
this.isAppWindowOnTop(LAUNCHER_COMPONENT)
.then()
.isAppWindowVisible(FlickerComponentName.SNAPSHOT)
.isAppWindowVisible(FlickerComponentName.SNAPSHOT, isOptional = true)
.then()
.isAppWindowVisible(testApp.component)
}
@@ -342,4 +342,4 @@ class QuickSwitchFromLauncherTest(private val testSpec: FlickerTestParameter) {
)
}
}
}
}