mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Update tests for ENABLE_TWOLINE_ALLAPPS and ENABLE_TWOLINE_DEVICESEARCH
PM said we can enable ENABLE_TWOLINE_ALLAPPS and ENABLE_TWOLINE_DEVICESEARCH flags. Since I am enabling two-line text for all apps, it's possible that the text would have other texts within the app name itself. For example, if a title of an app is long for example "Amazon Shopping" the title can now be like "Amazon\nShopping". For tests to recognize its "Amazon shopping", I am resorting to identifying the app title based on the content description. Turn on the two feature flags in another CL bug: 287307252 test: manual Change-Id: I8bdc3db710514c9098ccb5d9781a100ac9b35eab
This commit is contained in:
@@ -683,8 +683,8 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest {
|
||||
HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps();
|
||||
allApps.freeze();
|
||||
try {
|
||||
HomeAppIcon icon = allApps.getAppIcon(APP_NAME);
|
||||
assertEquals("Wrong app icon name.", icon.getIconName(), APP_NAME);
|
||||
// getAppIcon() already verifies that the icon is not null and is the correct icon name.
|
||||
allApps.getAppIcon(APP_NAME);
|
||||
} finally {
|
||||
allApps.unfreeze();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user