feat(security&privacy) : add all tests for EditRoomAddress classes
This commit is contained in:
parent
c0c7d5b659
commit
876d06f510
10 changed files with 515 additions and 13 deletions
|
|
@ -15,6 +15,8 @@ import io.element.android.libraries.designsystem.preview.ElementPreview
|
|||
import io.element.android.libraries.designsystem.preview.PreviewsDayNight
|
||||
import io.element.android.libraries.designsystem.theme.components.Text
|
||||
import io.element.android.libraries.designsystem.theme.components.TextField
|
||||
import io.element.android.libraries.testtags.TestTags
|
||||
import io.element.android.libraries.testtags.testTag
|
||||
import io.element.android.libraries.ui.strings.CommonStrings
|
||||
|
||||
@Composable
|
||||
|
|
@ -28,7 +30,7 @@ fun RoomAddressField(
|
|||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
TextField(
|
||||
modifier = modifier,
|
||||
modifier = modifier.testTag(TestTags.roomAddressField),
|
||||
value = address,
|
||||
label = label,
|
||||
leadingIcon = {
|
||||
|
|
|
|||
|
|
@ -111,4 +111,11 @@ object TestTags {
|
|||
* Generic call to action.
|
||||
*/
|
||||
val callToAction = TestTag("call_to_action")
|
||||
|
||||
/**
|
||||
* Room address field.
|
||||
*
|
||||
*/
|
||||
val roomAddressField = TestTag("room_address_field")
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue