Class NativeDetailsTester
java.lang.Object
com.vaadin.testbench.unit.ComponentTester<T>
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 TypeMethodDescriptionvoid
Get details content if the details is opened.Get the summary component of this Details element.Get the summary text.void
Toggle the open state of the component.Methods inherited from class com.vaadin.flow.component.html.testbench.HtmlComponentTester
getText, getTitle
Methods 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
click
in 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.
-