set Tracked Content
Sets content wrapped with Dejavu's inspection tables and sub-composition layout.
This is the tracked equivalent of ComposeUiTest.setContent. It provides LocalInspectionTables so that the Compose runtime populates androidx.compose.runtime.CompositionData for tag-to-function mapping, and uses SubcomposeLayout to create a sub-composition whose startRoot() reads the provided tables.
Usage:
runRecompositionTrackingUiTest {
setTrackedContent { MyComposable() }
waitForIdle()
onNodeWithTag("my_tag").assertStable()
}Content copied to clipboard
Parameters
content
The composable content to render under tracking.