mirror of
https://github.com/bitwarden/android.git
synced 2026-03-11 20:54:58 -05:00
PM-14179: Update internal placement of test tags for the BitwardenTextField (#4612)
This commit is contained in:
@@ -224,7 +224,6 @@ fun BitwardenTextField(
|
||||
Box(modifier = modifier.defaultMinSize(minHeight = 60.dp)) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.testTag(textFieldTestTag.orEmpty())
|
||||
.onGloballyPositioned { widthPx = it.size.width }
|
||||
.onFocusEvent { focusState -> hasFocused = focusState.hasFocus }
|
||||
.focusRequester(focusRequester)
|
||||
@@ -269,7 +268,9 @@ fun BitwardenTextField(
|
||||
keyboardOptions = KeyboardOptions.Default.copy(keyboardType = keyboardType),
|
||||
isError = isError,
|
||||
visualTransformation = visualTransformation,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
modifier = Modifier
|
||||
.run { textFieldTestTag?.let { testTag(tag = it) } ?: this }
|
||||
.fillMaxWidth(),
|
||||
)
|
||||
supportingTextContent?.let {
|
||||
Spacer(modifier = Modifier.height(height = 8.dp))
|
||||
|
||||
Reference in New Issue
Block a user