Skip to content

Commit

Permalink
Add login input test tag
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Nov 16, 2023
1 parent 3ef753c commit ceb5711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import net.mullvad.mullvadvpn.compose.state.LoginError
import net.mullvad.mullvadvpn.compose.state.LoginState
import net.mullvad.mullvadvpn.compose.state.LoginState.*
import net.mullvad.mullvadvpn.compose.state.LoginUiState
import net.mullvad.mullvadvpn.compose.test.LOGIN_INPUT_TEST_TAG
import net.mullvad.mullvadvpn.compose.test.LOGIN_TITLE_TEST_TAG
import net.mullvad.mullvadvpn.compose.textfield.mullvadWhiteTextFieldColors
import net.mullvad.mullvadvpn.compose.util.accountTokenVisualTransformation
Expand Down Expand Up @@ -183,6 +184,7 @@ private fun LoginContent(
right = FocusRequester.Cancel
}
.fillMaxWidth()
.testTag(LOGIN_INPUT_TEST_TAG)
.let {
if (!expandedDropdown || uiState.lastUsedAccount == null) {
it.clip(MaterialTheme.shapes.small)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ const val NOTIFICATION_BANNER_ACTION = "notification_banner_action"
const val PLAY_PAYMENT_INFO_ICON_TEST_TAG = "play_payment_info_icon_test_tag"

const val LOGIN_TITLE_TEST_TAG = "login_title_test_tag"
const val LOGIN_INPUT_TEST_TAG = "login_input_test_tag"

0 comments on commit ceb5711

Please sign in to comment.