commit | 2015b3bf652a4a66052f834fe53cd2b3ccd80a26 | [log] [tgz] |
---|---|---|
author | Vadim Tryshev <vadimt@google.com> | Tue Feb 05 08:37:17 2019 -0800 |
committer | vadimt <vadimt@google.com> | Thu Feb 07 10:43:43 2019 -0800 |
tree | 8bd36b1fc789f88a66dc0d19ea1649fda9e90249 | |
parent | fa8df691d12f99543bc760ae74a0e3f6125369b0 [diff] |
Waiting for the drop bar to go away after dragging an icon This should remove test flakes like: https://sponge.corp.google.com/target?show=FAILED&sortBy=STATUS&id=2c560d05-9d50-4fad-9798-dc77858f2d11&target=com.android.launcher3.tests Test: AOSP TAPL tests Change-Id: I01899bec349ed507a03fd02196a35990c48fd46b
diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index 444f3bd..c223ea5 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 5e6ad4d..966aff9 100644 --- a/tests/tapl/com/android/launcher3/tapl/Workspace.java +++ b/tests/tapl/com/android/launcher3/tapl/Workspace.java
@@ -115,6 +115,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(); }