Snap for 8090552 from e8f8cd2f53 to tm-release
Change-Id: Ib8d35e780da3930f3aae1ba53fb36ef08fc201d3
This commit is contained in:
@@ -27,6 +27,7 @@ import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.LauncherState;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
import com.android.launcher3.util.LauncherBindableItemsContainer.ItemOperator;
|
||||
import com.android.launcher3.util.rule.ScreenRecordRule.ScreenRecord;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Test;
|
||||
@@ -73,6 +74,7 @@ public class PromiseIconUiTest extends AbstractLauncherUiTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenRecord // b/202985412
|
||||
public void testPromiseIcon_addedFromEligibleSession() throws Throwable {
|
||||
final String appLabel = "Test Promise App " + UUID.randomUUID().toString();
|
||||
final ItemOperator findPromiseApp = (info, view) ->
|
||||
@@ -95,6 +97,7 @@ public class PromiseIconUiTest extends AbstractLauncherUiTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@ScreenRecord // b/202985412
|
||||
public void testPromiseIcon_notAddedFromIneligibleSession() throws Throwable {
|
||||
final String appLabel = "Test Promise App " + UUID.randomUUID().toString();
|
||||
final ItemOperator findPromiseApp = (info, view) ->
|
||||
|
||||
@@ -430,12 +430,13 @@ public final class LauncherInstrumentation {
|
||||
{
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
|
||||
UiObject2 object = mDevice.findObject(By.res("android", "alertTitle"));
|
||||
UiObject2 object =
|
||||
mDevice.findObject(By.res("android", "alertTitle").pkg("android"));
|
||||
if (object != null) {
|
||||
sb.append("TITLE: ").append(object.getText());
|
||||
}
|
||||
|
||||
object = mDevice.findObject(By.res("android", "message"));
|
||||
object = mDevice.findObject(By.res("android", "message").pkg("android"));
|
||||
if (object != null) {
|
||||
sb.append(" PACKAGE: ").append(object.getApplicationPackage())
|
||||
.append(" MESSAGE: ").append(object.getText());
|
||||
|
||||
Reference in New Issue
Block a user