Has anyone been able to test a dropdown style control? We built a control with a card, that when you click on it would display a DropdownMenu for the user to pick items from (think the Spinner in the XML world). However, when i’m trying to test it in the robolectric environment with a ComposeTestRule, i can perform the click, but i can never do anything else, presumably because the idler things that compose is still doing something. As a result, it just sits there on the next call to
onNode
type functions. As a side note, it works in an espresso test, just not robolectric.
a
Alex Vanyo
05/19/2022, 8:02 PM
Which version of Compose are you using? I think there was a bug in this area fixed rather recently, let me find it…