Merge "Use Chrome instead of Camera for TwoPanelWorkspaceTest" into tm-dev

This commit is contained in:
Alex Chau
2022-03-31 16:15:55 +00:00
committed by Android (Google) Code Review
@@ -255,24 +255,24 @@ public class TwoPanelWorkspaceTest extends AbstractLauncherUiTest {
Workspace workspace = mLauncher.getWorkspace();
workspace.dragIcon(workspace.getWorkspaceAppIcon("Play Store"), 2);
workspace.dragIcon(workspace.getHotseatAppIcon("Camera"), 1);
workspace.dragIcon(workspace.getHotseatAppIcon("Chrome"), 1);
executeOnLauncher(launcher -> {
assertPagesExist(launcher, 0, 1, 2, 3);
assertItemsOnPage(launcher, 0, "Maps");
assertPageEmpty(launcher, 1);
assertItemsOnPage(launcher, 2, "Play Store");
assertItemsOnPage(launcher, 3, "Camera");
assertItemsOnPage(launcher, 3, "Chrome");
});
workspace.dragIcon(workspace.getWorkspaceAppIcon("Camera"), -1);
workspace.dragIcon(workspace.getWorkspaceAppIcon("Chrome"), -1);
workspace.flingForward();
workspace.dragIcon(workspace.getWorkspaceAppIcon("Play Store"), -2);
executeOnLauncher(launcher -> {
assertPagesExist(launcher, 0, 1);
assertItemsOnPage(launcher, 0, "Play Store", "Maps");
assertItemsOnPage(launcher, 1, "Camera");
assertItemsOnPage(launcher, 1, "Chrome");
});
}