Make snapshot window optional in appWindowIsVisibleOnceLauncherWindowIsInvisible assertion

Test: atest FlickerTests:QuickSwitchFromLauncherTest

Fixes: 214350643
Change-Id: I8c4c167035471f6590bcee9021e8edc1b45bc7d4
This commit is contained in:
Pablo Gamito
2022-01-13 18:09:27 +01:00
parent 4304ac0abc
commit 836eb795f0

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) {
)
}
}
}
}