vide
11/21/2023, 8:45 AMonClick
is sometimes not called on a node, (seemingly) because the node is not displayed yet. However the test tag still exists. 🧵vide
11/21/2023, 8:46 AMW clicking...
W interaction: androidx.compose.foundation.interaction.PressInteraction$Press@b0db5ac
W interaction: androidx.compose.foundation.interaction.PressInteraction$Release@e1bea7b
[missing an onClick log here]
W ...clicked
and the code just looks like this
.clickable(
indication = null,
interactionSource = interactionSource,
onClick = {
logger.warn("onClick")
// other stuff
}
)
vide
11/21/2023, 8:46 AMtheapache64
11/21/2023, 8:58 AMvide
11/21/2023, 9:02 AMvide
11/21/2023, 9:29 AMtheapache64
11/21/2023, 9:30 AMvide
11/21/2023, 9:32 AMvide
11/21/2023, 9:32 AMtheapache64
11/21/2023, 9:32 AMthere’s another issue preventing upgrading at this pointooops.. which one ?
vide
11/21/2023, 9:33 AMvide
11/21/2023, 9:33 AMtheapache64
11/21/2023, 9:34 AMvide
11/21/2023, 9:47 AMvide
11/21/2023, 9:48 AMvide
11/21/2023, 9:48 AMcomposeTestRule.waitForIdle()
before trying to click, I would assume it would only continue after everything in the current recomposition is displayed etctheapache64
11/21/2023, 9:49 AMvide
11/21/2023, 9:49 AMassertIsDisplayed()
also fails the asserttheapache64
11/21/2023, 9:50 AMtheapache64
11/21/2023, 9:50 AMtheapache64
11/21/2023, 9:51 AMdevice.wait(
Until.hasObject(findBy()),
timeout.inWholeMilliseconds
)
should do the magicvide
11/21/2023, 10:28 AMvide
11/21/2023, 10:29 AMvide
11/21/2023, 10:35 AMvide
11/21/2023, 11:13 AMisPlaced=true,
isAttached=true,
boundsInWindow=Rect.fromLTRB(0.0, 0.0, 0.0, 0.0)
🤔Zach Klippenstein (he/him) [MOD]
11/21/2023, 1:08 PMvide
11/21/2023, 1:16 PMvide
11/21/2023, 5:14 PMwaitUntilNodeCount
also sometimes returns when the node isn't even attached yet 😅Zach Klippenstein (he/him) [MOD]
11/21/2023, 5:15 PM