Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 285b749b authored by Sebastian Franco's avatar Sebastian Franco
Browse files

Wait in ReorderWidgets test for the workapce to load after changing it.

Fix: 252860608
Test: atest ReorderWidgets
Change-Id: Idf99188837a475d0327174e264ab1d23d646d75d
parent a57bff84
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ public class ReorderWidgets extends AbstractLauncherUiTest {
        FavoriteItemsTransaction transaction =
                new FavoriteItemsTransaction(mTargetContext, this);
        mWorkspaceBuilder.buildFromBoard(testCase.mStart, transaction).commit();

        waitForLauncherCondition("Workspace didn't finish loading", l -> !l.isWorkspaceLoading());
        Widget widget = mLauncher.getWorkspace().getWidgetAtCell(mainWidgetCellPos.x,
                mainWidgetCellPos.y);
        assertNotNull(widget);