Update the proper App battery usage string on App info page

Bug: 278045681
Test: visual
Change-Id: I4da671615f11554e2cd64f3a801252df5c0ba6f4
This commit is contained in:
Yanting Yang
2023-04-19 00:43:57 +08:00
parent 2c5359dd0b
commit 3be454f967
3 changed files with 4 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ class AppBatteryPreferenceTest {
setContent(notInstalledApp)
composeTestRule.onNode(hasTextExactly(context.getString(R.string.app_battery_usage_title)))
composeTestRule.onNode(hasTextExactly(context.getString(R.string.battery_details_title)))
.assertIsDisplayed()
.assertIsNotEnabled()
}
@@ -114,7 +114,7 @@ class AppBatteryPreferenceTest {
composeTestRule.onNode(
hasTextExactly(
context.getString(R.string.app_battery_usage_title),
context.getString(R.string.battery_details_title),
context.getString(R.string.no_battery_summary),
),
).assertIsDisplayed().assertIsEnabled()