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

fix: prevent fetching virtual childred for Composite #1739

Closed mcollovati closed 7 months ago

mcollovati commented 8 months ago

Description

The Composite class overrides getChildren() to return a stream with the encapsulated component, but also getElement() returning the Element of the wrapped component. The latter causes the virtual children to be fetched as Composite direct children, thus duplicating any virtual children the encapsulated component might have.

Fixes #1738

Type of change

Checklist

Additional for Feature type of change