goku
05/05/2023, 6:13 AMassertIsDisplayed
works fine for Content1
and Content2
but it fails for Content3
• I tried with useUnmergedTree=true/false
, no luck
• assertExists
works and I can see the node in the printed debug tree.
• Making the column scrollable also works, but not sure if that’s the best way to approach this.
• I debugged into SemanticsNodeInteraction.checkIsDisplayed()
and node.boundsInWindow
is 0 for Content3
Thank you!
Column(
verticalArrangement = Arrangement.spacedBy(8.dp),
modifier = Modifier
.background(Color.White)
) {
Content1(modifier = Modifier.testTag("content1"))
Content2(modifier = Modifier.testTag("content2"))
Content3(modifier = Modifier.testTag("content3"))
}
Venkataramanan Parameswaran
05/05/2023, 9:27 AMgoku
05/05/2023, 9:28 AMjolo
05/05/2023, 2:29 PMgoku
05/05/2023, 2:31 PMboundsInWindow
is 0.jolo
05/05/2023, 2:32 PMgoku
05/05/2023, 2:34 PM