Merge "Asking the test to wait for launcher to commit the uninstall transaction before opening all apps." into tm-qpr-dev am: f905365e5a am: ff70e24a50 am: ce0c9d4a12

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21961037

Change-Id: Iabea9206ca5e308f8ced5573b9c1a89a1740140f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Andrew Cole
2023-03-13 22:56:32 +00:00
committed by Automerger Merge Worker
@@ -520,7 +520,6 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
@Test
@PortraitLandscape
@ScreenRecord // (b/256659409)
public void testUninstallFromAllApps() throws Exception {
installDummyAppAndWaitForUIUpdate();
try {
@@ -529,6 +528,8 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
allApps.freeze();
try {
workspace = allApps.getAppIcon(DUMMY_APP_NAME).uninstall();
// After the toast clears, then the model tries to commit the uninstall transaction
mLauncher.waitForModelQueueCleared();
} finally {
allApps.unfreeze();
}