@@ -47,6 +47,8 @@ import androidx.compose.ui.platform.LocalContext
4747import androidx.compose.ui.platform.testTag
4848import androidx.compose.ui.res.painterResource
4949import androidx.compose.ui.res.stringResource
50+ import androidx.compose.ui.semantics.semantics
51+ import androidx.compose.ui.semantics.testTagsAsResourceId
5052import androidx.compose.ui.unit.dp
5153import androidx.compose.ui.viewinterop.AndroidView
5254import androidx.lifecycle.Lifecycle
@@ -339,20 +341,26 @@ private fun Content(
339341 SecondaryButton (
340342 text = " Enter QRCode String" ,
341343 onClick = { showDialog = true },
342- modifier = Modifier .testTag(" ScanPrompt" )
344+ modifier = Modifier
345+ .semantics { testTagsAsResourceId = true }
346+ .testTag(" ScanPrompt" )
343347 )
344348 if (showDialog) {
345349 AppAlertDialog (
346350 title = " " ,
347351 confirmText = stringResource(R .string.common__yes_proceed),
348352 onConfirm = { onSubmitDebug(debugValue) },
349353 onDismiss = { showDialog = false },
350- modifier = Modifier .testTag(" QRDialog" )
354+ modifier = Modifier
355+ .semantics { testTagsAsResourceId = true }
356+ .testTag(" QRDialog" )
351357 ) {
352358 TextInput (
353359 value = debugValue,
354360 onValueChange = { debugValue = it },
355- modifier = Modifier .testTag(" QRInput" )
361+ modifier = Modifier
362+ .semantics { testTagsAsResourceId = true }
363+ .testTag(" QRInput" )
356364 )
357365 }
358366 }
0 commit comments