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

Commit 5675734d authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Waiting for Split Select state after tapping split menu item

Bug: 313926097
Flag: N/A
Test: presubmit
Change-Id: I54edb4e2b79c5dae0acedecae0f0b858a2ed0ddb
parent f0b1ddc0
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.launcher3.tapl;

import static com.android.launcher3.testing.shared.TestProtocol.OVERVIEW_MODAL_TASK_STATE_ORDINAL;
import static com.android.launcher3.testing.shared.TestProtocol.OVERVIEW_SPLIT_SELECT_ORDINAL;

import androidx.annotation.NonNull;
import androidx.test.uiautomator.By;
@@ -42,8 +43,11 @@ public class OverviewTaskMenu {
        try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck();
             LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
                     "tap split menu item")) {
            mLauncher.clickLauncherObject(
                    mLauncher.findObjectInContainer(mMenu, By.textStartsWith("Split")));
            mLauncher.runToState(() -> mLauncher.clickLauncherObject(
                            mLauncher.findObjectInContainer(mMenu, By.textStartsWith("Split"))),
                    OVERVIEW_SPLIT_SELECT_ORDINAL,
                    "tapping split menu item"
            );

            try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(
                    "tapped split menu item")) {