QA-948: Adding missing testTags on SSO/TDE views (#4145)

This commit is contained in:
ifernandezdiaz 2024-10-23 16:28:03 -03:00 committed by GitHub
parent ef1e8403e1
commit 6217532237
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -167,7 +167,8 @@ private fun EnterpriseSignOnScreenContent(
BitwardenTextField(
modifier = Modifier
.padding(horizontal = 16.dp)
.fillMaxWidth(),
.fillMaxWidth()
.testTag("OrgSSOIdentifierEntry"),
value = state.orgIdentifierInput,
onValueChange = onOrgIdentifierInputChange,
label = stringResource(id = R.string.org_identifier),

View file

@ -128,6 +128,7 @@ private fun TrustedDeviceScaffold(
isChecked = state.isRemembered,
onCheckedChange = handlers.onRememberToggle,
modifier = Modifier
.testTag("RememberThisDeviceSwitch")
.padding(horizontal = 16.dp)
.fillMaxWidth(),
)
@ -149,6 +150,7 @@ private fun TrustedDeviceScaffold(
label = stringResource(id = R.string.approve_with_my_other_device),
onClick = handlers.onApproveWithDeviceClick,
modifier = Modifier
.testTag("ApproveWithOtherDeviceButton")
.padding(horizontal = 16.dp)
.fillMaxWidth(),
)
@ -161,7 +163,8 @@ private fun TrustedDeviceScaffold(
onClick = handlers.onApproveWithAdminClick,
modifier = Modifier
.padding(horizontal = 16.dp)
.fillMaxWidth(),
.fillMaxWidth()
.testTag("RequestAdminApprovalButton"),
)
Spacer(modifier = Modifier.height(12.dp))
}
@ -171,6 +174,7 @@ private fun TrustedDeviceScaffold(
label = stringResource(id = R.string.approve_with_master_password),
onClick = handlers.onApproveWithPasswordClick,
modifier = Modifier
.testTag("ApproveWithMasterPasswordButton")
.padding(horizontal = 16.dp)
.fillMaxWidth(),
)