Wait for correct surface to disappear on transition

Waiting for the wrong surface makes the transition crash

Fixes: 227308870
Test: atest ExitPipViaExpandButtonClickTest
Change-Id: I3be2da3c344301586cc61201b962ffce3937e77d
This commit is contained in:
Nataniel Borges
2022-03-29 13:37:03 +00:00
parent 94d1958df5
commit 9b6e35749e

View File

@@ -74,7 +74,7 @@ class ExitPipViaExpandButtonClickTest(
// This will bring PipApp to fullscreen
pipApp.expandPipWindowToApp(wmHelper)
// Wait until the other app is no longer visible
wmHelper.waitForSurfaceAppeared(testApp.component)
wmHelper.waitForWindowSurfaceDisappeared(testApp.component)
}
}