mirror of
https://github.com/bitwarden/android.git
synced 2026-11-19 17:40:12 -06:00
SA-113: Update localization strings (#807)
This commit is contained in:
committed by
Álison Fernandes
parent
39e37eb7c7
commit
8cb28fc90e
+1
-1
@@ -84,7 +84,7 @@ class AutoFillScreenTest : BaseComposeTest() {
|
||||
.onAllNodesWithText(
|
||||
"We were unable to automatically open the Android autofill settings menu for " +
|
||||
"you. You can navigate to the autofill settings menu manually from Android " +
|
||||
"Settings>System>Languages and input>Advanced>Autofill service.",
|
||||
"Settings > System > Languages and input > Advanced > Autofill service.",
|
||||
)
|
||||
.filterToOne(hasAnyAncestor(isDialog()))
|
||||
.assertIsDisplayed()
|
||||
|
||||
+1
-1
@@ -99,7 +99,7 @@ class BlockAutoFillScreenTest : BaseComposeTest() {
|
||||
@Test
|
||||
fun `on FAB button click should send AddUriClick`() {
|
||||
composeTestRule
|
||||
.onNodeWithContentDescription("Add item")
|
||||
.onNodeWithContentDescription("Add Item")
|
||||
.performClick()
|
||||
|
||||
verify { viewModel.trySendAction(BlockAutoFillAction.AddUriClick) }
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ class FoldersScreenTest : BaseComposeTest() {
|
||||
|
||||
@Test
|
||||
fun `add folder button click should send AddFolderButtonClick`() {
|
||||
composeTestRule.onNodeWithContentDescription("Add item").performClick()
|
||||
composeTestRule.onNodeWithContentDescription("Add Item").performClick()
|
||||
verify {
|
||||
viewModel.trySendAction(FoldersAction.AddFolderButtonClick)
|
||||
}
|
||||
|
||||
@@ -191,22 +191,22 @@ class SendScreenTest : BaseComposeTest() {
|
||||
mutableStateFlow.update {
|
||||
it.copy(viewState = SendState.ViewState.Loading)
|
||||
}
|
||||
composeTestRule.onNodeWithContentDescription("Add item").assertDoesNotExist()
|
||||
composeTestRule.onNodeWithContentDescription("Add Item").assertDoesNotExist()
|
||||
|
||||
mutableStateFlow.update {
|
||||
it.copy(viewState = SendState.ViewState.Empty)
|
||||
}
|
||||
composeTestRule.onNodeWithContentDescription("Add item").assertIsDisplayed()
|
||||
composeTestRule.onNodeWithContentDescription("Add Item").assertIsDisplayed()
|
||||
|
||||
mutableStateFlow.update {
|
||||
it.copy(viewState = SendState.ViewState.Error("Fail".asText()))
|
||||
}
|
||||
composeTestRule.onNodeWithContentDescription("Add item").assertDoesNotExist()
|
||||
composeTestRule.onNodeWithContentDescription("Add Item").assertDoesNotExist()
|
||||
|
||||
mutableStateFlow.update {
|
||||
it.copy(viewState = DEFAULT_CONTENT_VIEW_STATE)
|
||||
}
|
||||
composeTestRule.onNodeWithContentDescription("Add item").assertIsDisplayed()
|
||||
composeTestRule.onNodeWithContentDescription("Add Item").assertIsDisplayed()
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -215,7 +215,7 @@ class SendScreenTest : BaseComposeTest() {
|
||||
it.copy(viewState = SendState.ViewState.Empty)
|
||||
}
|
||||
composeTestRule
|
||||
.onNodeWithContentDescription("Add item")
|
||||
.onNodeWithContentDescription("Add Item")
|
||||
.performClick()
|
||||
verify { viewModel.trySendAction(SendAction.AddSendClick) }
|
||||
}
|
||||
|
||||
+2
-2
@@ -293,7 +293,7 @@ class VaultItemListingScreenTest : BaseComposeTest() {
|
||||
@Test
|
||||
fun `floating action button click should send AddItemClick action`() {
|
||||
composeTestRule
|
||||
.onNodeWithContentDescription("Add item")
|
||||
.onNodeWithContentDescription("Add Item")
|
||||
.performClick()
|
||||
verify { viewModel.trySendAction(VaultItemListingsAction.AddVaultItemClick) }
|
||||
}
|
||||
@@ -486,7 +486,7 @@ class VaultItemListingScreenTest : BaseComposeTest() {
|
||||
mutableStateFlow.update { DEFAULT_STATE }
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithContentDescription("Add item")
|
||||
.onNodeWithContentDescription("Add Item")
|
||||
.assertIsDisplayed()
|
||||
|
||||
mutableStateFlow.update {
|
||||
|
||||
@@ -426,7 +426,7 @@ class VaultScreenTest : BaseComposeTest() {
|
||||
|
||||
@Test
|
||||
fun `floating action button should be shown or hidden according to the state`() {
|
||||
val fabDescription = "Add item"
|
||||
val fabDescription = "Add Item"
|
||||
|
||||
mutableStateFlow.update { it.copy(viewState = VaultState.ViewState.Loading) }
|
||||
composeTestRule.onNodeWithContentDescription(fabDescription).assertDoesNotExist()
|
||||
@@ -575,7 +575,7 @@ class VaultScreenTest : BaseComposeTest() {
|
||||
@Test
|
||||
fun `floating action button click should send AddItemClick action`() {
|
||||
mutableStateFlow.update { it.copy(viewState = VaultState.ViewState.NoItems) }
|
||||
composeTestRule.onNodeWithContentDescription("Add item").performClick()
|
||||
composeTestRule.onNodeWithContentDescription("Add Item").performClick()
|
||||
verify { viewModel.trySendAction(VaultAction.AddItemClick) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user