QA-952: Adding test tags for Toggle items (#4153)

This commit is contained in:
ifernandezdiaz 2024-10-25 12:53:48 -03:00 committed by GitHub
parent eb4ffebba0
commit 33a430419c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.semantics.toggleableState
@ -82,6 +83,7 @@ fun BitwardenWideSwitch(
} else {
BitwardenTheme.colorScheme.filledButton.foregroundDisabled
},
modifier = Modifier.testTag("SwitchText"),
)
description?.let {
Text(
@ -100,7 +102,8 @@ fun BitwardenWideSwitch(
Switch(
modifier = Modifier
.height(56.dp),
.height(56.dp)
.testTag("SwitchToggle"),
enabled = enabled,
checked = isChecked,
onCheckedChange = null,