Class AccordionTester<T extends Accordion>
java.lang.Object
com.vaadin.testbench.unit.ComponentTester<T>
com.vaadin.flow.component.accordion.AccordionTester<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the panel with the summary.booleanCheck if a panel for summary exists in accordion.booleanCheck if accordion with the summary is open.voidopenDetails(String summary) Open the accordion with the given summary.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, setValueAsUser
-
Constructor Details
-
AccordionTester
Wrap given component for testing.- Parameters:
component- target component
-
-
Method Details
-
openDetails
Open the accordion with the given summary.- Parameters:
summary- summary of accordion panel- Throws:
IllegalArgumentException- if no dropdown panel found for summary
-
isOpen
Check if accordion with the summary is open.- Parameters:
summary- summary of accordion panel- Returns:
trueif panel is open
-
getPanel
Get the panel with the summary. Throws if panel is not open.- Parameters:
summary- summary of accordion panel- Returns:
AccordionPanelfor the given summary
-
hasPanel
Check if a panel for summary exists in accordion.- Parameters:
summary- summary of accordion panel- Returns:
trueif panel exists
-