vaadin / testbench

Vaadin TestBench is a tool for automated user interface testing of Vaadin applications.
https://vaadin.com/testbench
Other
20 stars 22 forks source link

Add a Tester class for VirtualList component #1721

Closed mshabarov closed 4 months ago

mshabarov commented 9 months ago

Create a Tester class for VirtualList

joelpop commented 5 months ago

What methods should VirtualListTester support?

Because VirtualList is really just a display component (non-interactive), there won't be any methods to set, clear, or select things. Looking at the non-interactive methods of GridTester for inspiration, candidate methods to consider supporting are:

In order to support the latter two, VirtualList must be changed to implement and publicly expose a getRenderer method as Grid.Column does.

Please provide your thoughts on what methods should or shouldn't be provided by this tester, and if you have alternate suggestions for their names and/or parameter names.

MatthewVaadin commented 5 months ago

At least for the use cases we require, the last two methods would not be necessary. The rest of the API looks perfect for the tests we want to write.