commit | 12a9f3f6e09d4975415533b0999fbc14dd577e83 | [log] [tgz] |
---|---|---|
author | Vadim Tryshev <vadimt@google.com> | Sat Feb 09 02:20:30 2019 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Sat Feb 09 02:20:30 2019 +0000 |
tree | d0f05cc61b174528b7ccf321bc78213c91233f87 | |
parent | 28616560842608808c7a321278a931cef5f13ac1 [diff] | |
parent | 2015b3bf652a4a66052f834fe53cd2b3ccd80a26 [diff] |
Merge "Waiting for the drop bar to go away after dragging an icon" into ub-launcher3-master
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index e20a89e..466bc5e 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java
@@ -350,7 +350,7 @@ return new AllAppsFromOverview(this); } - private void waitUntilGone(String resId) { + void waitUntilGone(String resId) { assertTrue("Unexpected launcher object visible: " + resId, mDevice.wait(Until.gone(getLauncherObjectSelector(resId)), WAIT_TIME_MS));
diff --git a/tests/tapl/com/android/launcher3/tapl/Workspace.java b/tests/tapl/com/android/launcher3/tapl/Workspace.java index f055c0c..587c712 100644 --- a/tests/tapl/com/android/launcher3/tapl/Workspace.java +++ b/tests/tapl/com/android/launcher3/tapl/Workspace.java
@@ -116,6 +116,7 @@ final Point dest = new Point( mLauncher.getDevice().getDisplayWidth(), workspace.getVisibleBounds().centerY()); app.getObject().drag(dest, ICON_DRAG_SPEED); + mLauncher.waitUntilGone("drop_target_bar"); verifyActiveContainer(); }