[PM-25027] Rename "Ask to add login" to "Ask to add item" (#5758)

This commit is contained in:
Patrick Honkonen 2025-08-20 12:03:36 -04:00 committed by GitHub
parent b3528249e9
commit d8e319948c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View File

@ -302,8 +302,8 @@ private fun AutoFillScreenContent(
)
Spacer(modifier = Modifier.height(8.dp))
BitwardenSwitch(
label = stringResource(id = BitwardenString.ask_to_add_login),
supportingText = stringResource(id = BitwardenString.ask_to_add_login_description),
label = stringResource(id = BitwardenString.ask_to_add_item),
supportingText = stringResource(id = BitwardenString.ask_to_add_item_description),
isChecked = state.isAskToAddLoginEnabled,
onCheckedChange = autoFillHandlers.onAskToAddLoginClick,
cardStyle = CardStyle.Full,

View File

@ -405,23 +405,23 @@ class AutoFillScreenTest : BitwardenComposeTest() {
}
@Test
fun `on ask to add login toggle should send AskToAddLoginClick`() {
fun `on Ask to add item toggle should send AskToAddLoginClick`() {
composeTestRule
.onNodeWithText("Ask to add login")
.onNodeWithText("Ask to add item")
.performScrollTo()
.performClick()
verify { viewModel.trySendAction(AutoFillAction.AskToAddLoginClick(true)) }
}
@Test
fun `ask to add login should be toggled on or off according to state`() {
fun `Ask to add item should be toggled on or off according to state`() {
composeTestRule
.onNodeWithText("Ask to add login")
.onNodeWithText("Ask to add item")
.performScrollTo()
.assertIsOff()
mutableStateFlow.update { it.copy(isAskToAddLoginEnabled = true) }
composeTestRule
.onNodeWithText("Ask to add login")
.onNodeWithText("Ask to add item")
.performScrollTo()
.assertIsOn()
}

View File

@ -365,8 +365,8 @@ Scanning will happen automatically.</string>
<string name="exit_confirmation">Are you sure you want to exit Bitwarden?</string>
<string name="require_master_password_on_app_restart">Require master password on app restart?</string>
<string name="pin_require_master_password_restart">Do you want to require unlocking with your master password when the application is restarted?</string>
<string name="ask_to_add_login">Ask to add login</string>
<string name="ask_to_add_login_description">Ask to add an item if one isn\'t found in your vault.</string>
<string name="ask_to_add_item">Ask to add item</string>
<string name="ask_to_add_item_description">Ask to add an item if one isn\'t found in your vault.</string>
<string name="on_restart">On app restart</string>
<string name="capitalize">Capitalize</string>
<string name="include_number">Include number</string>