Loading tests/tapl/com/android/launcher3/tapl/OverviewTaskMenu.java +9 −2 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ import androidx.annotation.NonNull; import androidx.test.uiautomator.By; import androidx.test.uiautomator.UiObject2; import com.android.launcher3.testing.shared.TestProtocol; /** Represents the menu of an overview task. */ public class OverviewTaskMenu { Loading Loading @@ -59,8 +61,13 @@ public class OverviewTaskMenu { try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); LauncherInstrumentation.Closable c = mLauncher.addContextLayer( "before tapping the app info menu item")) { mLauncher.clickLauncherObject( mLauncher.findObjectInContainer(mMenu, By.text("App info"))); mLauncher.executeAndWaitForLauncherEvent( () -> mLauncher.clickLauncherObject( mLauncher.findObjectInContainer(mMenu, By.text("App info"))), event -> TestProtocol.LAUNCHER_ACTIVITY_STOPPED_MESSAGE .equals(event.getClassName().toString()), () -> "Launcher activity didn't stop", "tapped app info menu item"); try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( "tapped app info menu item")) { Loading Loading
tests/tapl/com/android/launcher3/tapl/OverviewTaskMenu.java +9 −2 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ import androidx.annotation.NonNull; import androidx.test.uiautomator.By; import androidx.test.uiautomator.UiObject2; import com.android.launcher3.testing.shared.TestProtocol; /** Represents the menu of an overview task. */ public class OverviewTaskMenu { Loading Loading @@ -59,8 +61,13 @@ public class OverviewTaskMenu { try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); LauncherInstrumentation.Closable c = mLauncher.addContextLayer( "before tapping the app info menu item")) { mLauncher.clickLauncherObject( mLauncher.findObjectInContainer(mMenu, By.text("App info"))); mLauncher.executeAndWaitForLauncherEvent( () -> mLauncher.clickLauncherObject( mLauncher.findObjectInContainer(mMenu, By.text("App info"))), event -> TestProtocol.LAUNCHER_ACTIVITY_STOPPED_MESSAGE .equals(event.getClassName().toString()), () -> "Launcher activity didn't stop", "tapped app info menu item"); try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( "tapped app info menu item")) { Loading