mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
QA-952: Adding test tags for Toggle items (#4153)
This commit is contained in:
parent
eb4ffebba0
commit
33a430419c
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue