Convert more tests to TAPL
Bug: 110103162 Test: running these tests Change-Id: I76b145eb4d16aca20ce30a5abca8f4568e3297e4
This commit is contained in:
1 parent
b1513bd811
commit
fdd1905e27
7 files changed
+142
-144
No files matched your search
@@ -6,8 +6,6 @@ import android.content.pm.LauncherActivityInfo;
|
||||
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
import androidx.test.uiautomator.By;
|
||||
import androidx.test.uiautomator.Until;
|
||||
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.popup.ArrowPopup;
|
||||
@@ -49,9 +47,6 @@ public class ShortcutsLaunchTest extends AbstractLauncherUiTest {
|
||||
final AppIconMenuItem menuItem = menu.getMenuItem(1);
|
||||
final String itemName = menuItem.getText();
|
||||
|
||||
menuItem.launch();
|
||||
assertTrue(mDevice.wait(Until.hasObject(By.pkg(
|
||||
testApp.getComponentName().getPackageName())
|
||||
.text(itemName)), DEFAULT_UI_TIMEOUT));
|
||||
menuItem.launch(testApp.getComponentName().getPackageName(), itemName);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user