Merge "Change title to aspect ratio (experimental)" into udc-qpr-dev am: f1c7bf3440
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24799914 Change-Id: Ic630fd0179a9fd06a03df3a9b85ec38b021ac665 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -145,7 +145,7 @@ class UserAspectRatioAppPreferenceTest {
|
||||
|
||||
composeTestRule.onNode(
|
||||
hasTextExactly(
|
||||
context.getString(R.string.aspect_ratio_title),
|
||||
context.getString(R.string.aspect_ratio_experimental_title),
|
||||
context.getString(R.string.user_aspect_ratio_app_default)
|
||||
),
|
||||
).assertIsDisplayed().assertIsEnabled()
|
||||
|
@@ -60,7 +60,7 @@ class UserAspectRatioAppsPageProviderTest {
|
||||
@Test
|
||||
fun injectEntry_title() {
|
||||
setInjectEntry()
|
||||
composeTestRule.onNodeWithText(context.getString(R.string.aspect_ratio_title))
|
||||
composeTestRule.onNodeWithText(context.getString(R.string.aspect_ratio_experimental_title))
|
||||
.assertIsDisplayed()
|
||||
}
|
||||
|
||||
@@ -75,7 +75,8 @@ class UserAspectRatioAppsPageProviderTest {
|
||||
@Test
|
||||
fun injectEntry_onClick_navigate() {
|
||||
setInjectEntry()
|
||||
composeTestRule.onNodeWithText(context.getString(R.string.aspect_ratio_title)).performClick()
|
||||
composeTestRule.onNodeWithText(context.getString(R.string.aspect_ratio_experimental_title))
|
||||
.performClick()
|
||||
assertThat(fakeNavControllerWrapper.navigateCalledWith).isEqualTo("UserAspectRatioAppsPage")
|
||||
}
|
||||
|
||||
@@ -93,7 +94,7 @@ class UserAspectRatioAppsPageProviderTest {
|
||||
UserAspectRatioAppList {}
|
||||
}
|
||||
|
||||
composeTestRule.onNodeWithText(context.getString(R.string.aspect_ratio_title))
|
||||
composeTestRule.onNodeWithText(context.getString(R.string.aspect_ratio_experimental_title))
|
||||
.assertIsDisplayed()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user