blob: f0f76e5afb34a98f5d0ba24000b6e3c8ede312eb [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
import { MatExpansionPanelHarness } from './expansion-harness';
import { AccordionHarnessFilters, ExpansionPanelHarnessFilters } from './expansion-harness-filters';
/** Harness for interacting with a standard mat-accordion in tests. */
export declare class MatAccordionHarness extends ComponentHarness {
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for an accordion
* with specific attributes.
* @param options Options for narrowing the search.
* @return a `HarnessPredicate` configured with the given options.
*/
static with(options?: AccordionHarnessFilters): HarnessPredicate<MatAccordionHarness>;
/** Gets all expansion panels which are part of the accordion. */
getExpansionPanels(filter?: ExpansionPanelHarnessFilters): Promise<MatExpansionPanelHarness[]>;
/** Whether the accordion allows multiple expanded panels simultaneously. */
isMulti(): Promise<boolean>;
}