We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.html.testbench.
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:
-
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.
-