Rename settings feature string resources

Updated string resource identifiers in the `SettingsDialogTest` to follow the `feature_settings_impl_` prefix convention. This aligns the test resources with the recent module renaming.
pull/2003/head
Don Turner 2 weeks ago
parent eae7a5bef5
commit 53cbbbf594

@ -48,7 +48,7 @@ class SettingsDialogTest {
} }
composeTestRule composeTestRule
.onNodeWithText(getString(R.string.feature_settings_loading)) .onNodeWithText(getString(R.string.feature_settings_impl_loading))
.assertExists() .assertExists()
} }
@ -71,17 +71,17 @@ class SettingsDialogTest {
} }
// Check that all the possible settings are displayed. // Check that all the possible settings are displayed.
composeTestRule.onNodeWithText(getString(R.string.feature_settings_brand_default)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_brand_default)).assertExists()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_brand_android)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_brand_android)).assertExists()
composeTestRule.onNodeWithText( composeTestRule.onNodeWithText(
getString(R.string.feature_settings_dark_mode_config_system_default), getString(R.string.feature_settings_impl_dark_mode_config_system_default),
).assertExists() ).assertExists()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dark_mode_config_light)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dark_mode_config_light)).assertExists()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dark_mode_config_dark)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dark_mode_config_dark)).assertExists()
// Check that the correct settings are selected. // Check that the correct settings are selected.
composeTestRule.onNodeWithText(getString(R.string.feature_settings_brand_android)).assertIsSelected() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_brand_android)).assertIsSelected()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dark_mode_config_dark)).assertIsSelected() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dark_mode_config_dark)).assertIsSelected()
} }
@Test @Test
@ -103,12 +103,12 @@ class SettingsDialogTest {
) )
} }
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_preference)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_preference)).assertExists()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_yes)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_yes)).assertExists()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_no)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_no)).assertExists()
// Check that the correct default dynamic color setting is selected. // Check that the correct default dynamic color setting is selected.
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_no)).assertIsSelected() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_no)).assertIsSelected()
} }
@Test @Test
@ -129,10 +129,10 @@ class SettingsDialogTest {
) )
} }
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_preference)) composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_preference))
.assertDoesNotExist() .assertDoesNotExist()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_yes)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_yes)).assertDoesNotExist()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_no)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_no)).assertDoesNotExist()
} }
@Test @Test
@ -153,10 +153,10 @@ class SettingsDialogTest {
) )
} }
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_preference)) composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_preference))
.assertDoesNotExist() .assertDoesNotExist()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_yes)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_yes)).assertDoesNotExist()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_dynamic_color_no)).assertDoesNotExist() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_dynamic_color_no)).assertDoesNotExist()
} }
@Test @Test
@ -177,9 +177,9 @@ class SettingsDialogTest {
) )
} }
composeTestRule.onNodeWithText(getString(R.string.feature_settings_privacy_policy)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_privacy_policy)).assertExists()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_licenses)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_licenses)).assertExists()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_brand_guidelines)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_brand_guidelines)).assertExists()
composeTestRule.onNodeWithText(getString(R.string.feature_settings_feedback)).assertExists() composeTestRule.onNodeWithText(getString(R.string.feature_settings_impl_feedback)).assertExists()
} }
} }

Loading…
Cancel
Save