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:
Brandon Dayauon
2023-06-13 10:55:35 -07:00
parent 3ce64d592b
commit df4dfdba4d
6 changed files with 72 additions and 8 deletions

View File

@@ -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();
}