BIT-1679 Update test tags for VaultItemScreen (#973)

This commit is contained in:
Oleg Semenenko 2024-02-07 16:16:20 -06:00 committed by Álison Fernandes
parent 0ebddadcae
commit 1a9ed4d288
4 changed files with 5 additions and 4 deletions

View file

@ -54,6 +54,7 @@ fun VaultItemCardContent(
readOnly = true,
singleLine = false,
modifier = Modifier
.semantics { testTag = "ItemRow" }
.fillMaxWidth()
.padding(horizontal = 16.dp),
)
@ -233,7 +234,6 @@ fun VaultItemCardContent(
header = "${stringResource(id = R.string.date_updated)}: ",
text = commonState.lastUpdated,
modifier = Modifier
.semantics { testTag = "ItemRow" }
.fillMaxWidth()
.padding(horizontal = 16.dp),
)

View file

@ -47,6 +47,7 @@ fun VaultItemIdentityContent(
readOnly = true,
singleLine = false,
modifier = Modifier
.semantics { testTag = "ItemRow" }
.fillMaxWidth()
.padding(horizontal = 16.dp),
)
@ -263,7 +264,6 @@ fun VaultItemIdentityContent(
header = "${stringResource(id = R.string.date_updated)}: ",
text = commonState.lastUpdated,
modifier = Modifier
.semantics { testTag = "ItemRow" }
.fillMaxWidth()
.padding(horizontal = 16.dp),
)

View file

@ -66,6 +66,7 @@ fun VaultItemLoginContent(
readOnly = true,
singleLine = false,
modifier = Modifier
.semantics { testTag = "ItemRow" }
.fillMaxWidth()
.padding(horizontal = 16.dp),
)
@ -193,6 +194,7 @@ fun VaultItemLoginContent(
items(attachments) { attachmentItem ->
AttachmentItemContent(
modifier = Modifier
.semantics { testTag = "CipherAttachment" }
.fillMaxWidth()
.padding(start = 16.dp),
attachmentItem = attachmentItem,
@ -209,7 +211,6 @@ fun VaultItemLoginContent(
header = "${stringResource(id = R.string.date_updated)}: ",
text = commonState.lastUpdated,
modifier = Modifier
.semantics { testTag = "ItemRow" }
.fillMaxWidth()
.padding(horizontal = 16.dp),
)

View file

@ -51,6 +51,7 @@ fun VaultItemSecureNoteContent(
readOnly = true,
singleLine = false,
modifier = Modifier
.semantics { testTag = "ItemRow" }
.fillMaxWidth()
.padding(horizontal = 16.dp),
)
@ -131,7 +132,6 @@ fun VaultItemSecureNoteContent(
Spacer(modifier = Modifier.height(24.dp))
Row(
modifier = Modifier
.semantics { testTag = "ItemRow" }
.fillMaxWidth()
.padding(horizontal = 16.dp)
.semantics(mergeDescendants = true) { },