Make isInvisible optional

We don't always have an entry where the secondary activity is created and is invisible to could be visible as soon as it is created.

Bug: 24190005

Test: atest com.android.server.wm.flicker.activityembedding.open.OpenTrampolineActivityTest
Change-Id: I209921eae719f8583ada57c83586b0e2c91e4131
This commit is contained in:
Pablo Gamito
2023-07-26 10:51:27 +00:00
parent ff2c76b310
commit b10b289e27

View File

@@ -104,7 +104,8 @@ class OpenTrampolineActivityTest(flicker: LegacyFlickerTest) : ActivityEmbedding
flicker.assertWm {
notContains(ActivityEmbeddingAppHelper.SECONDARY_ACTIVITY_COMPONENT)
.then()
.isAppWindowInvisible(ActivityEmbeddingAppHelper.SECONDARY_ACTIVITY_COMPONENT)
.isAppWindowInvisible(ActivityEmbeddingAppHelper.SECONDARY_ACTIVITY_COMPONENT,
isOptional = true)
.then()
.isAppWindowVisible(ActivityEmbeddingAppHelper.SECONDARY_ACTIVITY_COMPONENT)
}