Closed simasch closed 2 years ago
The docs for _clickItem()
mention that only the ItemClickEvent
event is fired.
However, if the Grid itself fires a SelectionEvent
along with ItemClickEvent
upon item clicking, then it would make sense for Karibu-Testing to do the same. Can you please verify that Grid (in single select mode) fires both events?
Yes the Grid fires a SelectionEvent and a ItemClickEvent.
I often use the SelectionListener because the code in the listener should also run when I programmatically select an item
You're right! I can observe the selection events fired before item click events (at least on Vaadin 21.0.9). However, this really depends on the selection mode:
SelectionMode.NONE
no SelectionEvents should be fired.
I have a grid with a SelectionListener
Now I try to test this
But the event is not triggered.