Unifying constant app names used in Tests
Bug: 298234173 Test: No-op changes, all test should pass Change-Id: I3cd4854b150d827393bff6eada7aa9a9201dadaa
This commit is contained in:
1 parent
461b65fa4e
commit
02a4fb41c7
13 files changed
+139
-106
No files matched your search
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.android.launcher3.appiconmenu;
|
||||
|
||||
import static com.android.launcher3.ui.TaplTestsLauncher3.APP_NAME;
|
||||
import static com.android.launcher3.util.TestConstants.AppNames.TEST_APP_NAME;
|
||||
import static com.android.launcher3.ui.TaplTestsLauncher3.initialize;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
@@ -64,7 +64,7 @@ public class TaplAppIconMenuTest extends AbstractLauncherUiTest {
|
||||
final AllApps allApps = mLauncher.getWorkspace().switchToAllApps();
|
||||
allApps.freeze();
|
||||
try {
|
||||
final AppIconMenu menu = allApps.getAppIcon(APP_NAME).openDeepShortcutMenu();
|
||||
final AppIconMenu menu = allApps.getAppIcon(TEST_APP_NAME).openDeepShortcutMenu();
|
||||
|
||||
executeOnLauncher(
|
||||
launcher -> assertTrue("Launcher internal state didn't switch to Showing Menu",
|
||||
@@ -89,9 +89,9 @@ public class TaplAppIconMenuTest extends AbstractLauncherUiTest {
|
||||
final HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps();
|
||||
allApps.freeze();
|
||||
try {
|
||||
allApps.getAppIcon(APP_NAME).dragToWorkspace(false, false);
|
||||
allApps.getAppIcon(TEST_APP_NAME).dragToWorkspace(false, false);
|
||||
final AppIconMenu menu = mLauncher.getWorkspace().getWorkspaceAppIcon(
|
||||
APP_NAME).openDeepShortcutMenu();
|
||||
TEST_APP_NAME).openDeepShortcutMenu();
|
||||
|
||||
executeOnLauncher(
|
||||
launcher -> assertTrue("Launcher internal state didn't switch to Showing Menu",
|
||||
|
||||
Reference in new issue
Block a user