mirror of
https://github.com/bitwarden/android.git
synced 2025-02-16 20:09:59 +03:00
BIT-2122: Add ElementID's to Add/Edit views (Card) (#1203)
This commit is contained in:
parent
367367bd33
commit
11d862664d
1 changed files with 13 additions and 2 deletions
|
@ -52,6 +52,7 @@ fun LazyListScope.vaultAddEditCardItems(
|
|||
value = commonState.name,
|
||||
onValueChange = commonHandlers.onNameTextChange,
|
||||
modifier = Modifier
|
||||
.semantics { testTag = "ItemNameEntry" }
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 16.dp),
|
||||
)
|
||||
|
@ -63,6 +64,7 @@ fun LazyListScope.vaultAddEditCardItems(
|
|||
value = cardState.cardHolderName,
|
||||
onValueChange = cardHandlers.onCardHolderNameTextChange,
|
||||
modifier = Modifier
|
||||
.semantics { testTag = "CardholderNameEntry" }
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 16.dp),
|
||||
)
|
||||
|
@ -74,8 +76,10 @@ fun LazyListScope.vaultAddEditCardItems(
|
|||
value = cardState.number,
|
||||
onValueChange = cardHandlers.onNumberTextChange,
|
||||
modifier = Modifier
|
||||
.semantics { testTag = "CardNumberEntry" }
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 16.dp),
|
||||
showPasswordTestTag = "ShowCardNumberButton",
|
||||
)
|
||||
}
|
||||
item {
|
||||
|
@ -95,7 +99,9 @@ fun LazyListScope.vaultAddEditCardItems(
|
|||
.first { it.longName.toString(resources) == selectedString },
|
||||
)
|
||||
},
|
||||
modifier = Modifier.padding(horizontal = 16.dp),
|
||||
modifier = Modifier
|
||||
.semantics { testTag = "CardBrandPicker" }
|
||||
.padding(horizontal = 16.dp),
|
||||
)
|
||||
}
|
||||
item {
|
||||
|
@ -115,7 +121,9 @@ fun LazyListScope.vaultAddEditCardItems(
|
|||
.first { it.value.toString(resources) == selectedString },
|
||||
)
|
||||
},
|
||||
modifier = Modifier.padding(horizontal = 16.dp),
|
||||
modifier = Modifier
|
||||
.semantics { testTag = "CardExpirationMonthPicker" }
|
||||
.padding(horizontal = 16.dp),
|
||||
)
|
||||
}
|
||||
item {
|
||||
|
@ -126,6 +134,7 @@ fun LazyListScope.vaultAddEditCardItems(
|
|||
onValueChange = cardHandlers.onExpirationYearTextChange,
|
||||
keyboardType = KeyboardType.Number,
|
||||
modifier = Modifier
|
||||
.semantics { testTag = "CardExpirationYearEntry" }
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 16.dp),
|
||||
)
|
||||
|
@ -138,8 +147,10 @@ fun LazyListScope.vaultAddEditCardItems(
|
|||
onValueChange = cardHandlers.onSecurityCodeTextChange,
|
||||
keyboardType = KeyboardType.NumberPassword,
|
||||
modifier = Modifier
|
||||
.semantics { testTag = "CardSecurityCodeEntry" }
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 16.dp),
|
||||
showPasswordTestTag = "CardShowSecurityCodeButton",
|
||||
)
|
||||
}
|
||||
item {
|
||||
|
|
Loading…
Add table
Reference in a new issue