setTrackedContent

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()
}

Parameters

content

The composable content to render under tracking.

See also