Jerry Johns
09/27/2023, 2:07 AMExposedDropdownMenuBox
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:
composeTestRule.onAllNodes(hasContentDescription("Dropdown menu"))[0].performClick()
Nonetheless, I never see it expanded when I dump out the nodes:
| |-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?