Skip to content

Commit

Permalink
QA-952: Adding test tags for Toggle items (#4153)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifernandezdiaz authored Oct 25, 2024
1 parent eb4ffeb commit 33a4304
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -82,6 +83,7 @@ fun BitwardenWideSwitch(
} else {
BitwardenTheme.colorScheme.filledButton.foregroundDisabled
},
modifier = Modifier.testTag("SwitchText"),
)
description?.let {
Text(
Expand All @@ -100,7 +102,8 @@ fun BitwardenWideSwitch(

Switch(
modifier = Modifier
.height(56.dp),
.height(56.dp)
.testTag("SwitchToggle"),
enabled = enabled,
checked = isChecked,
onCheckedChange = null,
Expand Down

0 comments on commit 33a4304

Please sign in to comment.