Comments (2)
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:
int size()
T getItem(int index)
String getItemText(int index)
Component getItemComponent(int index)
<V> V getLitRendererPropertyValue(int index, String propertyName, Class<V> propertyClass)
void invokeLitRendererFunction(int index, String functionName)
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.
from testbench.
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.
from testbench.
Related Issues (20)
- Composite causes virtual children components to be fetched twice
- CheckboxElement#click() fails with TestBench 5.2.0 HOT 3
- TextFieldElement problem with setValue HOT 5
- Allow firing shortcut on components
- Add helper for navigation with query parameters in UI Unit Test
- Allow to set up initial target route in UI Unit Test
- Annotation ComponentTesterPackages should be inheritable
- @BrowserConfiguration not working with JUnit 5 @Nested annotation
- Add support for LitRenderers to GridTester
- stdout output
- Deprecate for removal AbstractBrowserTestBase::assertEquals(WebElement, WebElement)
- Support the clear() method on TestBenchElement.
- Unhelpfull exception, NullPointerException: text must not be null HOT 1
- Upload TestBenchElement sometimes fails to upload and times out
- Add missing row methods to VirtualListElement HOT 1
- MultiSelectComboBoxElement is missing HasSelectByText interface
- Add missing RouterLinkTester for RouterLink HOT 1
- Remove junit-platform.properties
- AnchorTester should support Anchors having query parameters
- ComponentEvent.isFromClient() is false despite using TestWrappers.test() in a SpringUIUnitTest HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testbench.