Waiting for Launcher stop when dropping a widget that starts an activity
This will help to ensure that Launcher state has settled before continuing the test. Bug: 313926097 Flag: N/A Test: presubmit Change-Id: I810c3bd1da2839a482422396536acd664f3e4b82
This commit is contained in:
1 parent
0156324805
commit
4b3cc96ac2
6 files changed
+52
-34
No files matched your search
@@ -201,11 +201,8 @@ public final class OverviewTask {
|
||||
public LaunchedAppState open() {
|
||||
try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) {
|
||||
verifyActiveContainer();
|
||||
mLauncher.executeAndWaitForLauncherEvent(
|
||||
mLauncher.executeAndWaitForLauncherStop(
|
||||
() -> mLauncher.clickLauncherObject(mTask),
|
||||
event -> TestProtocol.LAUNCHER_ACTIVITY_STOPPED_MESSAGE
|
||||
.equals(event.getClassName().toString()),
|
||||
() -> "Launcher activity didn't stop",
|
||||
"clicking an overview task");
|
||||
if (mOverview.getContainerType()
|
||||
== LauncherInstrumentation.ContainerType.SPLIT_SCREEN_SELECT) {
|
||||
|
||||
Reference in new issue
Block a user