Fixed
Status Update
Comments
pa...@google.com <pa...@google.com> #2
I'm also interested in this. Perhaps there could be some equivalent to TextOverflow
for how to handle when not all items fit, but with a Composable
arg for the ellipsis.
ap...@google.com <ap...@google.com> #3
Our team is also affected by this. Please keep us in the loop if you add this support into FlowRow!
Description
The text editing test APIs (e.g.
performTextInput
) currently take a parameter calledalreadyHasFocus
, and when it's false (the default) they click the middle of the text field before attempting to perform input. I find that for any non-trivial tests involving aTextField
I almost always have to explicitly set this totrue
, because clicking in the middle of the text field puts the cursor in an essentially arbitrary position.I think a better API would fetch the current state of the node and only focus it if isn't already focused (and probably set the selection to something well defined, like the end of the text). If it's important for the text field to already be focused the writer of the test can use
assertIsFocused()
.