I have an `ExposedDropdownMenuBox` that contains w...
# compose
j
I have an
ExposedDropdownMenuBox
that contains within it, an
OutlinedTextField
, a
ExposedDropdownmenu
containing `DropdownMenuItem`s. I have just one of these in my view. In my Jetpack test, I do:
Copy code
composeTestRule.onAllNodes(hasContentDescription("Dropdown menu"))[0].performClick()
Nonetheless, I never see it expanded when I dump out the nodes:
Copy code
|  |-Node #230 at (l=26.0, t=426.0, r=119.0, b=442.0)px
|  | Text = '[Startup OnOff]'
|  | Actions = [SetTextSubstitution, ShowTextSubstitution, ClearTextSubstitution, GetTextLayoutResult]
|  |-Node #237 at (l=139.0, t=406.0, r=300.0, b=462.0)px
|  | EditableText = 'Off'
|  | TextSelectionRange = 'TextRange(3, 3)'
|  | ImeAction = 'Default'
|  | Focused = 'true'
|  | StateDescription = 'Collapsed'
|  | ContentDescription = '[Dropdown menu]'
|  | Actions = [GetTextLayoutResult, SetText, InsertTextAtCursor, SetSelection, PerformImeAction, OnClick, OnLongClick, RequestFocus]
|  | MergeDescendants = 'true'
|  |  |-Node #244 at (l=155.0, t=427.0, r=248.0, b=441.0)px
|  |    Actions = [MagnifierPositionInRoot]
Any ideas why?