diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/platform/components/toggle/BitwardenWideSwitch.kt b/app/src/main/java/com/x8bit/bitwarden/ui/platform/components/toggle/BitwardenWideSwitch.kt index 226a618f887..a028a1830af 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/platform/components/toggle/BitwardenWideSwitch.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/platform/components/toggle/BitwardenWideSwitch.kt @@ -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,