Class NativeDetailsTester
java.lang.Object
com.vaadin.testbench.unit.ComponentTester<NativeDetails>
com.vaadin.flow.component.html.testbench.HtmlComponentTester<NativeDetails>
com.vaadin.flow.component.html.testbench.NativeDetailsTester
- All Implemented Interfaces:
ClickHandler
-
Constructor Summary
ConstructorsConstructorDescriptionNativeDetailsTester(NativeDetails component) Wrap given component for testing. -
Method Summary
Modifier and TypeMethodDescriptionvoidGet details content if the details is opened.Get the summary component of this Details element.Get the summary text.voidToggle the open state of the component.Methods inherited from class com.vaadin.flow.component.html.testbench.HtmlComponentTester
getText, getTitleMethods inherited from class com.vaadin.testbench.unit.ComponentTester
ensureComponentIsUsable, ensureComponentIsUsable, ensureVisible, ensureVisible, find, findAllByQuery, findByQuery, fireDomEvent, fireDomEvent, fireDomEvent, getComponent, getField, getField, getMethod, getMethod, isUsable, isUsable, notUsableReasons, notUsableReasons, roundTrip, setModal, setValueAsUserMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.html.testbench.ClickHandler
click, click, middleClick, middleClick, rightClick, rightClick
-
Constructor Details
-
NativeDetailsTester
Wrap given component for testing.- Parameters:
component- target component
-
-
Method Details
-
click
- Specified by:
clickin interfaceClickHandler
-
getSummary
Get the summary component of this Details element.- Returns:
- summary component
-
getSummaryText
Get the summary text.- Returns:
- text in the summary element
-
getContent
Get details content if the details is opened.- Returns:
- details content
- Throws:
IllegalStateException- if content is not displayed
-
toggleContent
public void toggleContent()Toggle the open state of the component.
-