mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 20:07:59 -06:00
[PM-25027] Rename "Ask to add login" to "Ask to add item" (#5758)
This commit is contained in:
parent
b3528249e9
commit
d8e319948c
@ -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,
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user