com.vaadin.flow.component.accordion.
Class AccordionTester<T extends Accordion>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the panel with the summary.
boolean
Check if a panel for summary exists in accordion.
boolean
Check if accordion with the summary is open.
void
openDetails
(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
-
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 panelThrows:
IllegalArgumentException
- if no dropdown panel found for summary -
isOpen
Check if accordion with the summary is open.
Parameters:
summary
- summary of accordion panelReturns:
true
if panel is open -
getPanel
Get the panel with the summary. Throws if panel is not open.
Parameters:
summary
- summary of accordion panelReturns:
AccordionPanel
for the given summary -
hasPanel
Check if a panel for summary exists in accordion.
Parameters:
summary
- summary of accordion panelReturns:
true
if panel exists
-