Accordionvariable
Call this InteractorConstructor to initialize a accordion Interactor.
The accordion interactor can be used to interact with accordions on the page and
to assert on their state.
The accordion is located by the aria-label attribute or visible text on the accordion's summary in otherwise.
Example
await Accordion('Overview').toggle();
await Accordion('Overview').is({ expanded: true });
await Accordion({ id: 'overview-accordion', disabled: true }).exists();
Filters
title: string – Filter by titleid: string – Filter by idvisible: boolean – Filter by visibility. Defaults totrue. SeeisVisible.disabled: boolean – Filter by whether the accordion is disabled. Defaults tofalse.expanded: boolean – Filter by whether the accordion is expanded.
Actions
expand():Interaction– Expand the accordioncollapse():Interaction– Collapse the accordiontoggle():Interaction– Toggle the accordion