From f7b884f59b408ba4cf7f0904d2f6bd0eee444d3c Mon Sep 17 00:00:00 2001 From: Yanting Yang Date: Wed, 1 Apr 2020 20:13:59 +0800 Subject: [PATCH] Fix SupportDashboardActivityTest Since the screen title of SupportDashboardActivity was changed to page_tab_title_support string for fixing breadcrumb before. We need to correct the test case to fix the test function fail. Bug: 147851992 Test: robotests Change-Id: I14e30ac2a5210bb2d89657cff5772c06c6e8fe5a --- .../settings/support/SupportDashboardActivityTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/robotests/src/com/android/settings/support/SupportDashboardActivityTest.java b/tests/robotests/src/com/android/settings/support/SupportDashboardActivityTest.java index 8a7d1b510ad..0124551740e 100644 --- a/tests/robotests/src/com/android/settings/support/SupportDashboardActivityTest.java +++ b/tests/robotests/src/com/android/settings/support/SupportDashboardActivityTest.java @@ -55,7 +55,8 @@ public class SupportDashboardActivityTest { final SearchIndexableRaw value = indexables.get(0); assertThat(value.title).isEqualTo(mContext.getString(R.string.page_tab_title_support)); - assertThat(value.screenTitle).isEqualTo(mContext.getString(R.string.settings_label)); + assertThat(value.screenTitle).isEqualTo( + mContext.getString(R.string.page_tab_title_support)); assertThat(value.intentTargetPackage).isEqualTo(mContext.getPackageName()); assertThat(value.intentTargetClass).isEqualTo(SupportDashboardActivity.class.getName()); assertThat(value.intentAction).isEqualTo(Intent.ACTION_MAIN); @@ -67,7 +68,7 @@ public class SupportDashboardActivityTest { // Intent action used by setup wizard to start support settings Intent intent = new Intent("com.android.settings.action.SUPPORT_SETTINGS"); ResolveInfo resolveInfo = - packageManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); + packageManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); assertThat(resolveInfo).isNotNull(); assertThat(resolveInfo.activityInfo.name) .isEqualTo(SupportDashboardActivity.class.getName());